/* ===================== RESET ===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ===================== VARIABLES ===================== */

:root {
    --navbar-height: clamp(60px, 5vw, 90px);
}


/* ===================== BODY ===================== */

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}


/* ===================== NAVBAR ===================== */

.navbar {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 clamp(20px, 4vw, 50px);
    background: black;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.left {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 30px);
}

.navbar a {
    color: white;
    text-decoration: none;
}


/* ===================== LOGO ===================== */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: clamp(35px, 3vw, 65px);
}

.logo span {
    font-weight: bold;
    font-size: clamp(16px, 1.5vw, 24px);
}


/* ===================== BOTÓN MENU ===================== */

.menu-btn {
    font-size: clamp(20px, 2vw, 28px);
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}


/* ===================== SIDEBAR ===================== */

.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: clamp(240px, 18vw, 320px);
    height: calc(100% - var(--navbar-height));
    background: #111;
    color: white;
    padding: clamp(20px, 2vw, 30px);
    transform: translateX(-100%);
    /* oculto */
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar.active {
    transform: translateX(0);
}


/* ===================== LINKS ===================== */

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    margin: clamp(10px, 1.2vw, 16px) 0;
    font-size: clamp(14px, 1.2vw, 18px);
}

.sidebar a:hover {
    background: #333;
    padding-left: 5px;
}


/* ===================== GRUPO ===================== */

.menu-group {
    margin-top: 15px;
}


/* ===================== TITULO ===================== */

.menu-title {
    font-weight: bold;
    color: #aaa;
    margin-bottom: 5px;
    font-size: clamp(13px, 1vw, 16px);
}


/* ===================== SUBMENU ===================== */

.submenu a {
    padding-left: 15px;
    font-size: clamp(13px, 1vw, 16px);
    color: #ccc;
}

.submenu a:hover {
    color: white;
}


/* ===================== HERO ===================== */

.hero {
    height: clamp(300px, 45vh, 600px);
    min-height: 300px;
    background-image: url('/static/images/portada_oasis.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}


/* ===================== OVERLAY ===================== */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay h1 {
    font-size: clamp(22px, 3vw, 42px);
}

.overlay p {
    font-size: clamp(14px, 1.2vw, 18px);
}


/* ===================== TEXTO HERO ===================== */

.overlay h1 {
    font-size: 28px;
    color: white;
}

.overlay p {
    font-size: 14px;
    color: white;
}


/* ===================== MENU GRID ===================== */

.menu-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 80px 20px;
}

.menu-item {
    background: white;
    padding: 12px;
    border-radius: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.menu-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.menu-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item p {
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #2c2c2c;
}

.menu-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* ===================== CONTENEDOR ===================== */

.container {
    padding: 20px;
}


/* ===================== SWIPER ===================== */

.swiper {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    padding-bottom: 50px;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.swiper-slide img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
}

.swiper-slide p {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #222;
    letter-spacing: 0.5px;
}

.swiper-pagination {
    position: relative !important;
    margin-top: 20px !important;
}


/* ===================== MAP SECTION ===================== */

.map-section {
    padding: clamp(40px, 6vw, 80px) 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.map-section h2 {
    font-size: clamp(22px, 2.5vw, 32px);
    margin-bottom: 10px;
}

.map-section p {
    color: #666;
    margin-bottom: 30px;
    font-size: clamp(13px, 1.2vw, 16px);
}


/* Contenedor del mapa */

.map-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}


/* Iframe responsive REAL */

.map-container iframe {
    width: 100%;
    height: clamp(260px, 45vh, 500px);
    border: 0;
}


/* ===================== SOLICITUDES INTRO ===================== */

.solicitudes-intro {
    max-width: 800px;
    margin: 0 auto;
    /* ← esto centra TODO el bloque */
    text-align: center;
    padding: 0 clamp(16px, 3vw, 24px);
}

.solicitudes-intro h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 12px;
}

.solicitudes-intro p {
    font-size: clamp(14px, 1.2vw, 16px);
    color: #555;
    margin-bottom: 10px;
}


/* ===================== FORMULARIO ===================== */

.solicitudes-form {
    display: flex;
    justify-content: center;
}

.form-wrapper {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.form-wrapper iframe {
    width: 100%;
    height: clamp(600px, 80vh, 900px);
    border: none;
    background: white;
    padding: 8px;
}


/* ===================== NOTAS ===================== */

.solicitudes-notas {
    display: flex;
    justify-content: center;
}

.notas-box {
    max-width: 800px;
    background: #f8f8f8;
    padding: clamp(16px, 2vw, 24px);
    border-radius: 12px;
}

.notas-box h3 {
    font-size: clamp(18px, 2vw, 22px);
    margin-bottom: 10px;
}

.notas-box ul {
    padding-left: 18px;
}

.notas-box li {
    font-size: clamp(14px, 1.2vw, 16px);
    margin-bottom: 6px;
}


/* ===================== RESPONSIVE ===================== */


/* 📱 MÓVIL */

@media (max-width: 768px) {
    .hero {
        height: 220px;
    }
    .overlay h1 {
        font-size: 20px;
        text-align: center;
    }
    .overlay p {
        font-size: 12px;
        text-align: center;
        padding: 0 10px;
    }
    .menu-grid {
        grid-template-columns: 1fr;
        padding: 40px 15px;
        gap: 25px;
    }
    .sidebar {
        width: 220px;
    }
    .swiper {
        padding: 0 10px;
        padding-bottom: 50px;
    }
    .swiper-slide img {
        height: 380px;
    }
    .swiper-slide p {
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .swiper-pagination {
        position: relative;
        margin-top: 15px;
    }
}


/* ===================== TRANSPARENCIA ===================== */

.transparencia-section {
    padding: clamp(50px, 7vw, 100px) clamp(16px, 5vw, 80px);
    background: #f5f5f5;
}


/* ===================== TITULOS ===================== */

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(14px, 1.5vw, 18px);
    margin-bottom: clamp(40px, 5vw, 80px);
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* ===================== CATEGORIA ===================== */

.doc-category {
    margin-bottom: clamp(60px, 8vw, 110px);
}

.doc-category h3 {
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: clamp(20px, 3vw, 30px);
    padding-left: 5px;
}


/* ===================== CAROUSEL ===================== */

.doc-carousel {
    display: flex;
    gap: clamp(20px, 2.5vw, 28px);
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}


/* Scroll */

.doc-carousel::-webkit-scrollbar {
    height: 6px;
}

.doc-carousel::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
}


/* ===================== CARD ===================== */

.doc-card {
    min-width: clamp(260px, 26vw, 300px);
    flex-shrink: 0;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.25s ease;
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}


/* ===================== PREVIEW ===================== */

.doc-preview {
    height: 160px;
    background: linear-gradient(135deg, #ececec, #e2e2e2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.doc-preview span {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #777;
}


/* ===================== INFO ===================== */

.doc-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-info p {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.doc-link {
    font-size: 13px;
    color: #007BFF;
    font-weight: 600;
}


/* ===================== MODAL ===================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    /* ← reemplaza top/left/width/height */
    background: rgba(0, 0, 0, 0.7);
    /* 🔥 CENTRADO REAL */
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}


/* contenido del modal */

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    /* 👇 esto ayuda al centrado visual */
    display: flex;
    flex-direction: column;
}


/* iframe */

#docFrame {
    width: 100%;
    height: 100%;
    border: none;
}


/* botón cerrar */

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.doc-carousel-wrapper {
    display: flex;
    justify-content: center;
}

.doc-carousel {
    display: flex;
    gap: clamp(20px, 2.5vw, 28px);
    overflow-x: auto;
    padding-bottom: 15px;
    max-width: 1100px;
    width: 100%;
}


/* ===================== REGLAMENTO FIX ===================== */

.reglamento-container {
    width: 100%;
    max-width: clamp(600px, 80vw, 1000px);
    margin: clamp(30px, 5vw, 60px) auto;
    padding: clamp(20px, 4vw, 40px);
}


/* intro */

.intro {
    text-align: center;
    font-size: clamp(14px, 1.2vw, 18px);
    margin-bottom: clamp(20px, 3vw, 30px);
    color: #555;
}


/* acordeón base */

.accordion {
    display: block;
    /* 🔥 fuerza a que no se rompa */
    background: #fff;
    border-radius: 12px;
    margin-bottom: clamp(12px, 2vw, 20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eee;
    /* 🔥 ayuda visual */
}


/* summary */

.accordion summary {
    cursor: pointer;
    padding: clamp(14px, 2vw, 18px);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 600;
    color: #1e66d0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}


/* quitar flecha default */

.accordion summary::-webkit-details-marker {
    display: none;
}


/* flecha */

.accordion summary::after {
    content: "▾";
    transition: transform 0.25s ease;
}


/* rotación */

.accordion[open] summary::after {
    transform: rotate(180deg);
}


/* contenido */

.accordion ul {
    padding: 0 clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px);
    margin: 0;
}

.accordion li {
    margin-bottom: clamp(10px, 1.5vw, 14px);
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.6;
    color: #333;
}


/* ===================== COMITE DETALLE ===================== */

.comite-detalle {
    width: 100%;
    max-width: clamp(600px, 70vw, 900px);
    margin: clamp(40px, 6vw, 80px) auto;
    padding: clamp(20px, 4vw, 40px);
}


/* nombre */

.nombre {
    text-align: center;
    font-size: clamp(24px, 2.5vw, 32px);
    color: #1e66d0;
    margin-bottom: clamp(30px, 4vw, 50px);
}


/* bloques */

.bloque {
    padding: clamp(18px, 2.5vw, 24px);
    margin-bottom: clamp(15px, 2vw, 25px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}


/* títulos */

.bloque h3 {
    font-size: clamp(18px, 2vw, 22px);
    color: #1e66d0;
    margin-bottom: 10px;
}


/* texto */

.bloque p {
    font-size: clamp(14px, 1.2vw, 17px);
    color: #333;
    line-height: 1.6;
}


/* ===================== SEGURIDAD ===================== */

.seguridad-container {
    width: 100%;
    max-width: clamp(600px, 75vw, 1000px);
    margin: clamp(40px, 6vw, 80px) auto;
    padding: clamp(20px, 4vw, 40px);
}


/* intro */

.seguridad-intro {
    text-align: center;
    font-size: clamp(14px, 1.2vw, 18px);
    color: #555;
    margin-bottom: clamp(30px, 4vw, 50px);
}


/* bloque */

.seguridad-bloque {
    background: white;
    border-radius: 14px;
    padding: clamp(20px, 3vw, 30px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}


/* titulo */

.seguridad-bloque h2 {
    font-size: clamp(20px, 2vw, 26px);
    color: #1e66d0;
    margin-bottom: 15px;
}


/* texto */

.seguridad-texto {
    font-size: clamp(14px, 1.2vw, 17px);
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}


/* video responsive */

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* 🔥 importante: evita estilo plano */

details>*:not(summary) {
    padding-top: 10px;
}


/* 📲 TABLET */

@media (min-width: 769px) and (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .swiper-slide img {
        height: 300px;
    }
}


/* 💻 DESKTOP */

@media (min-width: 1025px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 🖥️ GRANDES */

@media (min-width: 1200px) {
    .swiper {
        max-width: 1200px;
    }
    .swiper-slide img {
        height: 560px;
    }
    .menu-grid {
        grid-template-columns: repeat(3, 2fr);
    }
}

@media (min-width: 1400px) {
    .swiper {
        max-width: 1400px;
    }
    .swiper-slide img {
        height: 560px;
    }
    .menu-grid {
        grid-template-columns: repeat(3, 2fr);
    }
}