/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* BODY */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f4c75, #1fa97a);
    background-attachment: fixed;
}

/* LAYOUT */
.contenedor {
    display: flex;
    min-height: 100vh;
}

/* MENÚ */
.menu {
    width: 220px;
    padding: 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 15px;

    position: sticky;
    top: 0;
    height: 100vh;
}

.menu a {
    text-decoration: none;
    padding: 12px;
    border-radius: 25px;
    text-align: center;
    background: linear-gradient(#ffffff, #dbefff);
    color: #003366;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.menu a:hover {
    transform: scale(1.05);
}

.menu a.activo {
    background: linear-gradient(#ffd369, #ffb703);
    color: #000;
}

/* CONTENIDO */
.contenido {
    flex: 1;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.contenido > div {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    max-width: 1000px;
    width: 100%;

    animation: aparecer 0.6s ease;
}

/* TÍTULOS */
.contenido h1 {
    font-size: 38px;
    margin-bottom: 30px;
    color: #0f4c75;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contenido h2 {
    margin-top: 50px;
    margin-bottom: 15px;
    color: #1fa97a;
    font-size: 24px;
}

/* TEXTO */
.contenido p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

/* LISTAS (MEJORADAS) */
.contenido ul {
    margin-left: 0;
    margin-top: 10px;
    padding-left: 0;
    list-style: none;
}

.contenido ul li {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contenido ul li::before {
    content: "📍";
}

/* IMÁGENES */
.contenido img {
    width: 100%;
    max-width: 700px;
    display: block;
    margin: 0 auto 30px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* SIN ZOOM (solo brillo suave) */
.contenido img:hover,
.galeria img:hover {
    transform: none;
    filter: brightness(1.05);
}

/* GALERÍA */
.galeria {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* GALERÍA 2x2 */
.galeria-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.galeria-2x2 figure {
    margin: 0;
    text-align: center;
}

.galeria-2x2 img {
    width: 100%;
    display: block;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.galeria-2x2 figcaption {
    margin-top: 5px;
    font-size: 16px;
    color: #555;
}

/* MAPA */
.mapa {
    width: 100%;
    height: 400px;
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: white !important;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-whatsapp:hover {
    background-color: #128c7e; /* Un verde más oscuro al pasar el ratón */
    transform: translateY(-2px);
}

/* BOTONES DE RESERVAS Y PLATAFORMAS */

.botones-reservas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-plataforma {
    display: inline-block;
    padding: 12px 20px;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-plataforma:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Colores de marca */
.btn-whatsapp { background-color: #25d366; }
.btn-whatsapp:hover { background-color: #128c7e; }

.btn-booking { background-color: #003580; }
.btn-booking:hover { background-color: #00224f; }

.btn-airbnb { background-color: #FF5A5F; }
.btn-airbnb:hover { background-color: #d13d42; }

/* Ajuste para la lista de contacto */
.lista-contacto {
    list-style: none !important;
    padding-left: 0 !important;
}

.lista-contacto li {
    margin-bottom: 15px;
}

.lista-contacto li::before {
    content: "" !important; /* Quitamos el pin de mapa para esta lista */
}

/* ANIMACIÓN */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .contenedor {
        flex-direction: column;
    }

    .menu {
        width: 100%;
        height: auto;
        position: relative; /* Para que no bloquee la pantalla al hacer scroll */
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 15px;
    }

    /* ARREGLO PARA EL LOGO EN MÓVIL */
    .menu .galeria {
        width: 100%;       /* Obliga al logo a ocupar su propia fila arriba */
        order: -1;         /* Lo posiciona antes que los botones */
        margin-top: 0;
        margin-bottom: 5px;
        display: flex;
        justify-content: center;
    }

    .menu .galeria img {
        width: 80px;       /* Tamaño pequeño para móvil */
        height: auto;
        max-width: 80px;
    }

    .menu a {
        font-size: 14px;
        padding: 8px 12px;
        flex: 1 1 auto;    /* Los botones se reparten el ancho */
        min-width: 120px;
    }

    .contenido {
        padding: 15px;     /* Menos margen lateral para que el texto quepa mejor */
    }

    .contenido > div {
        padding: 20px;
        border-radius: 10px;
    }

    .contenido h1 {
        font-size: 26px;
        text-align: center;
    }

    .contenido p {
        font-size: 16px;
    }

    .galeria {
        flex-direction: column;
        align-items: center;
    }

    /* Botones de Booking/Airbnb a pantalla completa para que sean fáciles de pulsar */
    .btn-plataforma {
        width: 100%;
    }
}

/* Estilo para el botón de YouTube */
/* --- ESTILOS PARA EL VIDEO INCRUSTADO (RESPONSIVO) --- */

.contenedor-video-incrustado {
    margin: 30px 0 50px 0; /* Espaciado superior e inferior */
    text-align: center;
    max-width: 800px; /* Ancho máximo para que no se vea gigante en PC */
    margin-left: auto; /* Centrado horizontal */
    margin-right: auto;
    background-color: #f9f9f9; /* Un fondo sutil para destacarlo */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contenedor-video-incrustado h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4rem;
}

/* Truco de CSS para mantener la proporción 16:9 del video */
.proporcion-video {
    position: relative;
    padding-bottom: 56.25%; /* Esto crea la proporción 16:9 (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    border-radius: 8px; /* Bordes redondeados para el video */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.proporcion-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* El video ocupa todo el ancho de su contenedor */
    height: 100%; /* El video ocupa todo el alto de su contenedor */
    border: 0;
}

/* Ajustes para móviles */
@media (max-width: 600px) {
    .contenedor-video-incrustado {
        padding: 10px; /* Menos padding en móvil */
        margin: 20px 0 40px 0;
    }
    .contenedor-video-incrustado h3 {
        font-size: 1.2rem;
    }
}