/* =========================
   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);
}