/* =========================================
   IMPORTACIÓN DE FUENTES
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');


/* =========================================
   CONFIGURACIÓN PRINCIPAL
========================================= */
:root {
    --color-principal: #1a2a6c;
    --color-acento: #25d366; 
    --ancho-maximo: 1200px;  
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f5f7;
    color: #333;
}


/* =========================================
   HEADER
========================================= */
header {
    background-color: white;
    color: #1a2a6c;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e5e5;
}

.contenedor-header {
    width: 92%;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.marca-header {
    color: #1a2a6c;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.marca-header:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 70px; 
    width: auto;
}

.marca-header h1 {
    text-decoration: none;
    color: #1a2a6c;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}


/* =========================================
   MENÚ Y DROPDOWN
========================================= */
.menu-navegacion {
    color: #1a2a6c;
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-navegacion a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu-navegacion a:hover {
    color: #c6a75e;
    border-bottom: 2px solid #c6a75e;
}

.menu-desplegable {
    position: relative;
}

.menu-desplegable summary {
    color: #000;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    list-style: none;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    outline: none;
}

.menu-desplegable summary::-webkit-details-marker {
    display: none;
}

.menu-desplegable summary:hover {
    color: #c6a75e;
    border-bottom: 2px solid #c6a75e;
}

.cuadro-desplegable {
    position: absolute;
    top: 180%;
    right: -20px;
    background-color: white;
    color: #555;
    width: 350px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    z-index: 200;
    text-align: center;
    line-height: 1.7;
    animation: aparecerDropdown 0.3s ease forwards;
    cursor: default;
}

.cuadro-desplegable::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 45px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

@keyframes aparecerDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =========================================
   HERO
========================================= */
.hero {
    width: 100%;
    height: 75vh;
    background-image: url('fotos-hotel/banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(
        rgba(10, 20, 40, 0.45),
        rgba(10, 20, 40, 0.45)
    );
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 4rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-content p {
    font-family: 'Poppins', sans-serif;
    color: #dcdcdc;
    font-size: 1.4rem;
    margin: 20px 0 30px 0;
}


/* =========================================
   CONTENEDOR GENERAL
========================================= */
.contenedor {
    width: 92%;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
}


/* =========================================
   GALERÍA
========================================= */
.seccion-galeria {
    background-color: #ffffff;
    padding: 100px 0;
}

.galeria-hoteles {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 50px;
}

.seccion-hotel {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.seccion-hotel:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.seccion-hotel img {
    width: 100%;
    height: auto; 
    object-fit: contain; 
    background-color: #f9f9f9;
}

.info {
    padding: 25px;
    text-align: center;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info h2 {
    margin: 0;
    color: var(--color-principal);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.info p {
    color: #666;
    line-height: 1.5;
    font-size: 1.05rem;
}


/* =========================================
   SECCIÓN UBICACIÓN
========================================= */
.seccion-ubicacion {
    padding: 90px 0;
    background-color: #eef1f5;
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    max-width: 1300px;
    width: 92%;
    margin: 0 auto 60px auto;
}

.caja {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.mapa-caja {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-caja iframe {
    width: 100%;
    height: 420px;
    border-radius: 10px;
}

.info-caja h2 {
    font-family: 'Playfair Display', serif;
    color: #c6a75e;
    font-size: 2.1rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.info-caja p {
    color: #555;
    line-height: 1.7;
}


/* =========================================
   BOTÓN WHATSAPP (SECCIÓN INFERIOR)
========================================= */
.btn-whatsapp {
    background-color: var(--color-acento);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-caja {
    background-color: #ffffff;
    border: none;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}


/* =========================================
   SECCIÓN CONTACTO
========================================= */

.seccion-contacto {
    background-color: #f4f5f7;
    padding: 110px 0;
}

.contacto-header {
    text-align: center;
    margin-bottom: 70px;
}

.contacto-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: #c6a75e;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.contacto-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.contacto-item {
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.contacto-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.icono-contacto {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    background: #eef1f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.contacto-item:hover .icono-contacto {
    background: #c6a75e;
    color: white;
}

.contacto-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-principal);
    font-weight: 600;
}

.contacto-item p {
    color: #555;
    font-size: 1rem;
    margin: 0;
}

/* =========================================
   ICONOS PNG CONTACTO
========================================= */

.icono-contacto img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.contacto-item:hover .icono-contacto img {
    transform: scale(1.1);
}

/* =========================================
   CONTACTO COMO BOTONES
========================================= */

.contacto-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contacto-item h3,
.contacto-item p {
    text-decoration: none;
}

.contacto-item:hover {
    cursor: pointer;
}

/* =========================================
   TARJETA AIRBNB CLICABLE
========================================= */

.seccion-airbnb {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.seccion-airbnb:hover {
    cursor: pointer;
}

.seccion-airbnb .info h2,
.seccion-airbnb .info p {
    text-decoration: none;
}

/* =========================================
   ¡AQUÍ ESTÁ LA CORRECCIÓN DEL BOTÓN! 🟢
   WHATSAPP FLOTANTE
========================================= */

.btn-whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background-color: #25d366; /* Verde WhatsApp */
    color: white; /* Color del ícono SVG */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.btn-whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background-color: #128C7E;
}


/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {

    .contenedor-header {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }

    .marca-header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-img {
        height: 60px;
    }

    .menu-navegacion {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 1rem;
    }

    .cuadro-desplegable {
        position: static;
        width: 100%;
        max-width: 300px;
        margin-top: 15px;
        background-color: rgba(0,0,0,0.05); /* Fondo para que se lea en el header blanco */
        color: #333;
        box-shadow: none;
        padding: 15px;
    }
    
    .cuadro-desplegable p {
        color: #333;
    }

    .cuadro-desplegable::before {
        display: none;
    }

    .galeria-hoteles {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .ubicacion-grid {
        grid-template-columns: 1fr;
    }

    .mapa-caja iframe {
        height: 350px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contacto-item {
        padding: 40px 20px;
    }

    /* Versión móvil del botón WhatsApp */
    .btn-whatsapp-flotante {
        width: 58px;
        height: 58px;
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================
   CONTACTO EN UNA FILA EN MÓVIL PEQUEÑO
========================================= */

@media (max-width: 400px) {

    .contacto-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .contacto-item {
        padding: 25px 10px;
    }

    .contacto-item h3 {
        font-size: 0.95rem;
    }

    .contacto-item p {
        font-size: 0.85rem;
    }

    .icono-contacto {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }

    .icono-contacto img {
        width: 26px;
        height: 26px;
    }
}