/* =========================
   RESET BÁSICO
========================= */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f7f9fb;
    color: #1b2a3a;
    line-height: 1.6;
}

/* =========================
   HEADER
========================= */
header {
    position: relative;
    z-index: 1000;
    background: #1e88e5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header .container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
}

header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: #ffffff;
}

.subtitulo {
    font-size: 13px;
    color: #cfd8dc;
}

/* =========================
   NAV
========================= */
nav {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    color: #e6eaee;
    text-decoration: none;
    font-size: 14px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

nav a:hover {
    color: #ffffff;
    border-bottom: 2px solid #9fbad6;
}

/* =========================
   CONTENEDOR
========================= */
.container {
    max-width: 1150px;
    margin: auto;
    padding: 30px 20px;
}

/* =========================
   HERO (HOME)
========================= */
.home-hero {
    width: 100%;
    height: 70vh;
    background-image: url('/web/assets/img/hero-aeroclub.jpg');
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* =========================
   INSTAGRAM
========================= */
.home-instagram {
    padding: 50px 20px;
    text-align: center;
}

.home-instagram h2 {
    margin-bottom: 20px;
}

.instagram-wrapper {
    max-width: 560px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: #ffffff;
}

.instagram-wrapper iframe {
    width: 100%;
    height: 520px;
    border: none;
}

.btn-instagram {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 18px;
    background: #e1306c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
}

/* =========================
   VUELOS BAUTISMO
========================= */
.home-bautismo-img {
    position: relative;
    margin: 60px 20px;
    min-height: 50vh;
    background-image: url('/web/assets/img/bautismo.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.bautismo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.bautismo-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 20px;
}

.bautismo-content h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.bautismo-content p {
    font-size: 1.1rem;
}

.btn-bautismo {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 26px;
    background: #1e88e5;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
}

.btn-bautismo:hover {
    background: #1565c0;
}

/* =========================
   GALERÍA (SWIPE EN CELU)
========================= */
.home-gallery-section {
    padding: 40px 0 70px;
    text-align: center;
}

.gallery-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 16px;
}

.gallery-grid img {
    flex: 0 0 82%;
    max-width: 82%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    scroll-snap-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

/* =========================
   GALERÍA DESKTOP
========================= */
@media (min-width: 900px) {
    .gallery-grid {
        max-width: 1100px;
        margin: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }

    .gallery-grid img {
        max-width: 100%;
        height: 240px;
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    header h2 {
        font-size: 28px;
    }

    .home-hero {
        height: 60vh;
    }

    .instagram-wrapper iframe {
        height: 460px;
    }

    .bautismo-content h2 {
        font-size: 1.7rem;
    }
}
/* =========================
   FIX GALERÍA PISTAS
========================= */
.infra-gallery {
    max-width: 1150px;
    margin: 20px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.infra-gallery img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.infra-gallery figure {
    margin: 0;
    overflow: hidden;
}

.infra-gallery figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6b7a88;
    text-align: center;
}

/* =========================
   LIGHTBOX – FIX IMAGEN GRANDE
========================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* =========================
   FIX FOOTER
========================= */
footer {
    width: 100%;
    background-color: #1e88e5;
    color: #ffffff;
    text-align: center;
    padding: 25px 20px;
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

footer p {
    margin: 0;
    font-size: 13px;
}

/* =========================
   ANÁLISIS DE VIENTO POR PISTA
========================= */
.wind-runway {
    padding: 12px 0;
    border-bottom: 1px dashed #d6dde5;
}

.wind-runway:last-child {
    border-bottom: none;
}

.runway {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #0b1c2d;
}

.wind-type {
    display: block;
    font-size: 0.95rem;
    color: #1e88e5;
    margin-top: 2px;
}

.wind-values {
    display: block;
    font-size: 0.9rem;
    color: #5a6a79;
    margin-top: 4px;
}

/* =========================
   BOTÓN PROCEDIMIENTOS
========================= */
.btn-procedimientos {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background-color: #1e88e5;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-procedimientos:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}
/* ===== NAVEGACIÓN UNIFICADA 2026 ===== */
.site-header { background:#167ed1; color:#fff; position:relative; z-index:1000; }
.site-header .site-header-inner { max-width:1250px; padding:13px 20px; display:flex; flex-direction:row; gap:16px; justify-content:space-between; align-items:center; }
.site-brand {display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;min-width:0;flex-shrink:0}
.site-brand img {width:49px;height:49px;object-fit:cover;border-radius:50%;border:2px solid rgba(255,255,255,.65);background:#fff}
.site-brand-text {display:flex;flex-direction:column;line-height:1.25;gap:4px}
.site-brand-text strong {font-size:21px;letter-spacing:.1px}
.site-brand-text small {font-size:11px;color:#e4f1ff}
.site-header .site-nav {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px;margin:0}
.site-header .site-nav a {color:#f0f7ff;text-decoration:none;border:0;padding:9px 11px;border-radius:9px;font-size:14px;white-space:nowrap;transition:background .2s}
.site-header .site-nav a:hover,.site-header .site-nav a.active {color:#fff;background:rgba(255,255,255,.20);border:0}
.site-menu-toggle {display:none;cursor:pointer;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.13);border-radius:10px;padding:11px;width:45px;height:43px;flex-direction:column;justify-content:center;align-items:center;gap:5px}
.site-menu-toggle span {display:block;width:21px;height:2px;background:#fff;border-radius:3px}
.site-quick-links {display:none}
@media(max-width:900px){
 .site-header .site-header-inner {padding:10px 14px;flex-direction:row;gap:10px}
 .site-brand img {width:43px;height:43px}
 .site-brand-text strong {font-size:18px}
 .site-brand-text small {font-size:10px}
 .site-menu-toggle {display:flex;flex-shrink:0}
 .site-header .site-nav {display:none;position:absolute;top:100%;left:10px;right:10px;background:#fff;border-radius:12px;box-shadow:0 15px 35px rgba(10,40,65,.25);padding:8px;flex-direction:column;align-items:stretch;gap:2px;z-index:1002}
 .site-header .site-nav.is-open {display:flex}
 .site-header .site-nav a {color:#1c3c54;font-size:15px;padding:13px 15px;border:0}
 .site-header .site-nav a:hover,.site-header .site-nav a.active {background:#e8f3fc;color:#096ba8;border:0}
 .site-quick-links {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;background:#f3f8fd;padding:9px 10px;border-bottom:1px solid #dbe7f0}
 .site-quick-links a {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;text-decoration:none;color:#31536c;background:#fff;border:1px solid #e0e9f1;border-radius:9px;padding:5px 2px;font-size:12px;font-weight:600;min-width:0}
 .site-quick-links a span {font-size:21px;line-height:1.25;color:#167ed1}
 .site-quick-links a.active {background:#dceefd;color:#0867a8;border-color:#b4d8f2}
}
@media(max-width:370px){.site-brand-text strong{font-size:16px}.site-brand-text small{font-size:9px}}
