/* =========================================
   1. FUENTES Y CONFIGURACIÓN
========================================= */
@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');

:root {
    --color-principal: #1a2a6c;
    --color-acento: #25d366; /* Verde WhatsApp */
    --ancho-maximo: 1200px;  
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f5f7;
    color: #333;
}

/* =========================================
   2. HEADER (MENÚ PRINCIPAL)
   Estilo: Limpio, Blanco y se queda arriba
========================================= */
header {
    background-color: #ffffff;
    width: 100%;
    padding: 15px 0;
    /* Sombra muy sutil para separarlo del contenido */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    
    /* IMPORTANTE: 'relative' hace que el menú NO te persiga. 
       Esto evita que tape las fotos o se vea el corte feo. */
    position: relative; 
    z-index: 100;
}

.contenedor-header {
    width: 92%;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.marca-header {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.marca-header:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 65px; 
    width: auto;
}

.marca-header .nombre-hotel {
    color: var(--color-principal);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =========================================
   3. NAVEGACIÓN Y DROPDOWN
========================================= */
.menu-navegacion {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-navegacion a, 
.menu-desplegable summary {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    transition: color 0.3s ease;
}

.menu-navegacion a:hover, 
.menu-desplegable summary:hover {
    color: #c6a75e; /* Color dorado al pasar mouse */
}

/* Ocultar flecha nativa */
.menu-desplegable summary::-webkit-details-marker {
    display: none;
}

/* Cuadro flotante de "Quiénes Somos" */
.menu-desplegable {
    position: relative;
}

.cuadro-desplegable {
    position: absolute;
    top: 180%; /* Distancia del menú */
    right: -20px;
    background-color: white;
    width: 320px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 200;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    animation: aparecer 0.3s ease forwards;
}

/* Triángulo decorativo del cuadro */
.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 aparecer {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. PORTADA (HERO)
========================================= */
.hero {
    width: 100%;
    height: 75vh; /* Altura de la imagen */
    background-image: url('fotos-hotel/banner.webp'); /* Asegúrate del nombre */
    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: 3.5rem;
    margin: 0;
    font-weight: 700;
}

.hero-content p {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-top: 15px;
}

/* =========================================
   5. GALERÍA DE HOTELES
========================================= */
.contenedor {
    width: 92%;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
}

.seccion-galeria {
    background-color: #ffffff;
    padding: 80px 0;
}

.galeria-hoteles {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.seccion-hotel {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.seccion-hotel:hover {
    transform: translateY(-7px);
}

.seccion-hotel img {
    width: 100%;
    height: 250px; /* Altura uniforme para las fotos */
    object-fit: cover; 
}

.info {
    padding: 25px;
    text-align: center;
}

.info h2 {
    margin: 0 0 10px 0;
    color: var(--color-principal);
    font-size: 1.4rem;
    font-weight: 700;
}

.info p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* =========================================
   6. UBICACIÓN Y CONTACTO
========================================= */
.seccion-ubicacion {
    padding: 80px 0;
    background-color: #eef1f5;
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* Mapa más ancho que el texto */
    gap: 30px;
    max-width: 1300px;
    width: 92%;
    margin: 0 auto 40px auto;
}

.caja {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mapa-caja iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    border: none;
}

.info-caja h2 {
    font-family: 'Playfair Display', serif;
    color: #c6a75e;
    font-size: 2rem;
    margin-top: 0;
}

.info-caja p {
    color: #555;
    line-height: 1.8;
}

/* Caja de contacto final */
.whatsapp-caja {
    background-color: white;
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 40px 30px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-acento);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: 50px;
    margin-top: 18px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

/* =========================================
   7. BOTÓN FLOTANTE WHATSAPP (CORREGIDO)
========================================= */
.btn-whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--color-acento); /* Verde #25d366 */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.btn-whatsapp-flotante:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/* =========================================
   8. DISEÑO RESPONSIVO (CELULARES)
========================================= */
@media (max-width: 900px) {

    /* Ajuste Header */
    .contenedor-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-img { height: 55px; }
    
    .marca-header .nombre-hotel { font-size: 1.5rem; }

    .menu-navegacion {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    /* Ajuste Hero */
    .hero-content h1 { font-size: 2.5rem; }

    /* Ajuste Cuadro Desplegable */
    .cuadro-desplegable {
        position: static;
        width: 100%;
        max-width: 300px;
        margin-top: 15px;
        background-color: #f9f9f9;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .cuadro-desplegable::before { display: none; }

    /* Ajuste Grillas (Todo a 1 columna) */
    .galeria-hoteles, 
    .ubicacion-grid {
        grid-template-columns: 1fr;
    }

    .mapa-caja iframe { height: 300px; }

    /* Botón flotante más pequeño */
    .btn-whatsapp-flotante {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================
   9. PIE DE PAGINA
========================================= */
.pie-pagina {
    background-color: var(--color-principal);
    color: #e8eaf0;
    padding: 35px 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.8;
}

.pie-pagina p { margin: 4px 0; }

.pie-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px !important;
}

.pie-pagina a {
    color: var(--color-acento);
    text-decoration: none;
    font-weight: 600;
}

.pie-pagina a:hover { text-decoration: underline; }

.whatsapp-caja h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-principal);
    font-size: 1.6rem;
    margin-top: 0;
}
