html{
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
}

.top-navbar, .sub-navbar {
    width: 100vw;
}

.top-navbar {
    background-color: white;
    padding: 20px 0; /* Increased height */
}

.top-navbar nav a, .top-navbar nav select, .sub-navbar nav a {
    color: #003d56;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    
}

.sub-navbar {
    background-color: #003d56;
    padding: 20px 0; /* Increased height */
    display: flex;
    justify-content: space-between;
    
}

#sub-navbar {
    position: relative; /* Posición inicial no fija */
    width: 100%; /* Asegura que la barra ocupe todo el ancho */
    z-index: 1000;
    transition: top 0.6s ease;
}

.fixed-subnavbar {
    position: fixed;
    top: 0; /* Fija la subnavbar en la parte superior de la ventana del navegador */
    z-index: 1000;
}

.sub-navbar .nav-links {
    display: flex;
    align-items: center;
}

.sub-navbar .nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px; /* Adjust spacing between links */
}

.sub-navbar .nav-links a:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: white;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    color: white;
    font-size: 24px; /* Adjust based on your preference */
    margin-left: 6rem;
}

.sub-navbar a:hover {
    opacity: 0.8;
}


.top-navbar nav a:hover, .top-navbar nav select:hover {
    color: #005a7d;
}

.logo {
    display: flex;
    justify-content: center; /* Centers the logo horizontally */
    align-items: center; /* Centers the logo vertically */
    padding: 5px 0; /* Adds some space above and below the logo */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff; /* White background to make the logo stand out */
}

/* Styling the logo image */
.logo img {
    width: auto; /* Keeps the logo's aspect ratio intact */
    height: 50px; /* Adjust this value to scale the logo to your preference */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    .logo img {
        height: 80px; /* Adjusts the logo size for better fit on smaller devices */
    }
}

.hero-section {
    position: relative;
    height: 80vh;
    background-image: url('playa.jpg');
    background-size: cover;
    background-position: center;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
    align-items: center; /* Alinea el contenido verticalmente */
}

.hero-content {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    width: 80%; 
    max-width: 1200px; 
    text-align: left;
}


.hero-text {
    display: flex;
    flex-direction: column;
    color: #f4eae0;
}

.hero-small-image {
    margin-left: auto;
    width: 300px;
    transition: transform 0.3s ease; /* Aplica transición a la transformación */
    animation: enterFromRight 1s ease-out forwards; /* Define la animación */
    position: relative; /* Asegúrate de que sea posicionable */
    right: -50%; /* Inicia fuera de la pantalla hacia la derecha */
}

@keyframes enterFromRight {
    from {
        right: -50%;
        transform: scale(0.5); /* Comienza más pequeño */
    }
    to {
        right: 0;
        transform: scale(1); /* Escala a tamaño normal */
    }
}

.hero-small-image img {
    width: 100%;
    border-radius: 15px;
    height: auto; /* Mantiene la proporción de la imagen */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9); /* Ajusta la opacidad de la sombra si es necesario */
    transition: transform 0.3s ease; /* Transición suave para la transformación */
}

/* Para aplicar el efecto de escala suavemente al pasar el mouse */
.hero-small-image img:hover {
    transform: scale(1.05); /* Aumenta ligeramente el tamaño */
}




.hero-content h1, .hero-content p {
    margin: 0 0 1rem 0; 
    font-size: 2.5rem; 
    color: #dab88b; 
    font-family: 'Times New Roman', Times, serif; 
}

.hero-button {
    padding: 12px 24px;
    background-color: #003d56; 
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem; 
    border: none;
    width: 125px; 
    cursor: pointer;
    border-radius: 5px; 
    transition: background-color 0.3s ease; 
    font-weight: bold; 
}

.hero-button:hover {
    background-color: #926c43; 
}

.hero-button-book {
    padding: 12px 24px;
    background-color: #d7e3e7; 
    color: #020250;
    text-decoration: none;
    font-size: 1.1rem; 
    border: 1px solid #020250;
    width: 160px; 
    cursor: pointer;
    transition: background-color 0.3s ease; 
    font-weight: bold; 
    position: absolute;
    top: 0%;
    right: 12rem;
}

.hero-button-book:hover {
    background-color: #003d56; 
    color: hsl(257, 30%, 95%);
}


.filter-section {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.filter-section h2 {
    font-size: 36px;
    color: #003d56;
    margin-bottom: 20px;
}

.underline {
    border-bottom: 4px solid #4CAF50;
    padding-bottom: 5px;
    color: #4CAF50;
}

.filter-section p {
    margin-bottom: 30px;
    color: #555;
    font-size: 18px;
    line-height: 1.6;
}

.filter-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.filter-inputs input {
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 250px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 16px;
}

.filter-inputs input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.4);
}

.filter-btn {
    padding: 12px 24px;
    background-color: #003d56;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #54d119;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 5.5rem;
}

.gallery-item {
    position: relative;
    flex: 0 0 calc(33.333% - 30px); /* Adjusted for 3 items per row considering the margin */
    margin-bottom: 2rem; /* Margin between rows */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth effect */
    transition: transform 0.3s ease-in-out; /* Smooth transition */
    overflow: hidden; /* Hide any overflow from child elements */
    border-radius: 8px; /* Rounded corners */
}

.suite{
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px); /* Lift on hover */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block; /* Ensure image does not have extra space below */
    object-fit: cover; /* Ensure image covers its container */
}

.hotel-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    color: gold;
    background-color: rgba(0, 0, 0, 0.8); /* Darker background */
    padding: 5px;
    font-size: 1rem;
    border-radius: 5px; /* Rounded corners for star container */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Shadow for depth effect */
}

.room-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 2; /* Ensure info appears above overlay */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth transition for opacity */
}

.gallery-item:hover .room-info {
    opacity: 1; /* Show info on hover */
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(49, 8, 126, 0.382); /* Semi-transparent overlay color */
    z-index: 1; /* Ensure overlay appears above the image */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth transition for opacity */
}

.gallery-item:hover::before {
    opacity: 1; /* Show overlay on hover */
}



.subscribe-section {
    background-color: #F4F4F4;
    padding: 40px;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    height: auto; /* Allow section height to adjust */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.subscribe-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #003d56; /* Set text color */
}

.subscribe-section p {
    font-size: 16px;
    margin: 0;
    color: #666;
    margin-bottom: 30px;
    text-align: center; /* Center-align paragraph */
}

.subscribe-section form {
    width: 100%; /* Form spans full width */
    max-width: 400px; /* Limit form width */
    display: flex;
    justify-content: center;
    align-items: center;
}

.subscribe-section input[type="text"],
.subscribe-section input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 16px;
}

.subscribe-section button {
    background-color: #003d56; /* Set button background color */
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}


.footer {
    position: relative;
    padding: 50px 0;
    display: flex;
    justify-content: space-around;
    color: #fff;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero.jpg');
    background-size: cover;
    background-blend-mode: multiply; /* Blend with background image */
    background-color: #003d56; /* Semi-transparent background color */
    z-index: -1;
}

.footer-column {
    width: 20%;
    text-align: center; /* Center align content */
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #fff; /* Set link color */
    text-decoration: none;
    transition: color 0.3s ease; /* Add transition to link color */
}

.footer-column ul li a:hover {
    text-decoration: underline;
    color: #54d119; 
}

.social-icons {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    align-items: center; /* Align icons vertically */
}

.social-icons li {
    margin-right: 15px; /* Increased margin for better spacing */
}

.social-icons a {
    display: inline-flex; /* Ensure icon links are inline-flex */
    justify-content: center; /* Center align icon */
    align-items: center; /* Center align icon */
    width: 40px; /* Set a fixed width for each icon container */
    height: 40px; /* Set a fixed height for each icon container */
    background-color: #fff; /* Set background color for icon container */
    border-radius: 50%; /* Make the icon container round */
    transition: background-color 0.3s ease; /* Add transition effect on hover */
}

.social-icons a:hover {
    background-color: #f0f0f0; /* Change background color on hover */
}

.social-icons i {
    font-size: 20px; /* Set icon size */
    color: #003d56; /* Set icon color */
}


.footer-logo {
    width: 100px; /* Set width of the logo */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%; /* Make the logo round */
    border: 2px solid #fff; /* Add a white border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.subfooter {
    background-color: #003d56;
    color: #54d119;
    text-align: center;
    padding: 25px 0;
    position: relative;
}

.whatsapp-logo {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
}

.subfooter a {
    color: #54d119;
    text-decoration: none;
}

.services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 5rem;
    margin-top: -35%;
    color: #003d56;
    margin-left: 5rem;
    font-size: 36px;
    position: relative; /* Set the position to relative to allow absolute positioning of the image */
}

.services-section h2 img {
    position: absolute;
    margin-top: 2rem;
    top: 100%;
    left: 50%;
    border-radius: 10px;
    transform: translateX(-50%);
    width: 180%; /* Adjust the width of the image as needed */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.service-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service-item i {
    font-size: 48px;
    color: #003d56;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-item:hover i {
    color: #54d119;
}

.service-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.service-item:hover h3 {
    color: #003d56;
}

.service-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.special-offers-section {
    padding: 80px 0;
    background-color: #95d0fa;
    text-align: center; /* Center align the entire section */
}

.special-offers-section h2 {
    margin-bottom: 50px;
    color: #003d56;
    font-size: 36px;
}

.special-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.special-offer-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.special-offer-item img {
    width: 100%;
    display: block;
    border-radius: 10px 10px 0 0;
}

.offer-details {
    padding: 20px;
    background-color: #fff;
}

.offer-details h3 {
    font-size: 24px;
    color: #003d56;
    margin-bottom: 10px;
}

.offer-details p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #003d56;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #54d119;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 70px;
    background-color: #1591c2; /* Color de fondo */
    color: white; /* Color del texto */
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    display: none; /* Oculto inicialmente */
    z-index: 100; /* Asegura que esté sobre otros contenidos */
}

#back-to-top:hover {
    background-color: #002840; /* Color más oscuro al pasar el mouse */
}


.modal {
    display: none; /* Inicialmente oculto, se manejará con JS */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    opacity: 0; /* Inicialmente transparente */
    visibility: hidden; /* Inicialmente oculto */
    transition: opacity 0.4s, visibility 0.4s; /* Transición suave */
}


/* Contenido del modal */
.modal-content {
    background-color: #fff;
    margin: 10% auto; /* Margen para centrar el modal */
    padding: 20px;
    border-radius: 5px;
    width: 80%; /* Ancho del modal */
    max-width: 600px; /* Máximo ancho */
}

/* Estilos para el botón de cerrar */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos para el formulario dentro del modal */
#quote-form {
    display: flex;
    flex-direction: column;
}

#quote-form input[type="text"],
#quote-form input[type="tel"],
#quote-form input[type="email"],
#quote-form select,
#quote-form input[type="number"] {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#quote-form button[type="submit"] {
    background-color: #003d56; /* Color temático */
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#quote-form button[type="submit"]:hover {
    background-color: #002840;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro semi-transparente */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px; /* Ajusta según el contenido */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-out;
    transform: scale(0.9); /* Efecto de 'pop' inicial */
}

.modal-content h2 {
    font-size: 24px; /* Tamaño de título */
    color: #003d56; /* Color temático del hotel */
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc; /* Bordes sutiles */
    font-size: 16px; /* Legibilidad */
}

button[type="submit"] {
    font-size: 16px;
    padding: 10px;
    background-color: #4CAF50; /* Botón destacado */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #367c39; /* Oscurecer al pasar el ratón */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    color: #666;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

/* Animación al abrir el modal */
.modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
