/* =============================================
   AEROCLUB SANTA FE — Global Styles
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@300;400;500;600&display=swap");

/* ---- Variables ---- */
:root {
    --blue: #235b86;
    --blue-dark: #1a4468;
    --blue-light: #e8f0f8;
    --red: #cf3b24;
    --red-dark: #b03020;
    --white: #ffffff;
    --off-white: #f7f9fc;
    --gray-100: #f0f4f8;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --font-display: "Syne", sans-serif;
    --font-body: "Inter", sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(35, 91, 134, 0.12);
    --shadow-lg: 0 12px 40px rgba(35, 91, 134, 0.15);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
    --nav-h: 96px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}

/* ---- Utilities ---- */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    line-height: 1.7;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}
.btn-outline-blue {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn-outline-blue:hover {
    background: var(--blue);
    color: var(--white);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--blue);
}
.nav-logo img {
    height: 72px;
    width: auto;
}
.nav-logo-text span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-top: -2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    border-radius: 0;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}
.nav-links a:hover {
    color: var(--gray-900);
    background: none;
}
.nav-links a:hover::after {
    transform: scaleX(1);
}
.nav-links a.active {
    color: var(--blue);
    background: none;
}
.nav-links a.active::after {
    transform: scaleX(1);
    background: var(--blue);
}
.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius) !important;
}
.nav-cta:hover {
    background: var(--red-dark) !important;
    color: var(--white) !important;
}
.nav-cta::after {
    display: none !important;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(
            160deg,
            rgba(26, 68, 104, 0.85) 0%,
            rgba(35, 91, 134, 0.75) 55%,
            rgba(45, 122, 191, 0.6) 100%
        ),
        url("../img/hero.jpg") center 60% / cover no-repeat fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.5) 0%,
        transparent 50%
    );
}
.hero-plane-silhouette {
    position: absolute;
    right: -60px;
    bottom: 60px;
    opacity: 0.06;
    font-size: 28vw;
    line-height: 1;
    color: white;
    transform: scaleX(-1);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}
.hero-badge::before {
    content: "✈";
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 20px;
}
.hero h1 em {
    font-style: normal;
    color: #ffd166;
}
.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: calc(var(--nav-h) + 56px) 0 56px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 12px;
}
.page-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a:hover {
    color: var(--white);
}
.breadcrumb span {
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SECTIONS — General
   ============================================ */
section {
    padding: 96px 0;
}
.section-header {
    margin-bottom: 56px;
}
.section-header.centered {
    text-align: center;
}
.section-header.centered .section-subtitle {
    margin: 0 auto;
}

/* ============================================
   HOME — About Teaser
   ============================================ */
.about-teaser {
    background: var(--off-white);
}
.about-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image-wrap {
    position: relative;
}
.about-image-wrap .img-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.4);
    overflow: hidden;
}
.about-image-wrap .img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.about-badge-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.about-badge-float strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--blue);
}
.about-badge-float span {
    font-size: 0.8rem;
    color: var(--gray-500);
}
.about-features {
    margin: 28px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.feature-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
}

/* ============================================
   COURSES
   ============================================ */
.courses-section {
    background: var(--off-white);
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.course-card-header {
    padding: 28px 24px 22px;
    position: relative;
}
.course-header-ppl {
    background: linear-gradient(135deg, #1a4468 0%, #235b86 100%);
}
.course-header-cpl {
    background: linear-gradient(135deg, #0f3d5c 0%, #1a6492 100%);
}
.course-header-ifr {
    background: linear-gradient(135deg, #1e2d40 0%, #2c4a6e 100%);
}
.course-header-inst {
    background: linear-gradient(135deg, #7a1a10 0%, #cf3b24 100%);
}

.course-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
}
.course-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}
.course-abbr {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
    margin: 0;
}
.course-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.course-tag.destacado {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}
.course-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.course-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 20px;
}
.course-details {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
    flex: 1;
}
.course-detail {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--gray-600);
}
.course-detail svg {
    flex-shrink: 0;
    color: var(--blue);
}
.course-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: all var(--transition);
    background: var(--white);
}
.course-btn:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}
.course-btn span {
    transition: transform 0.2s;
}
.course-btn:hover span {
    transform: translateX(4px);
}

/* ============================================
   COURSE DETAIL BLOCKS (cursos.html)
   ============================================ */
.course-detail-block {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    transition: all var(--transition);
}
.course-detail-block:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.course-detail-header {
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.course-detail-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.course-detail-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.course-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 4px;
}
.course-detail-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin: 0 0 4px;
    line-height: 1.2;
}
.course-detail-abbr {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    letter-spacing: 0.04em;
}
.course-detail-stats {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
}
.course-stat {
    text-align: center;
}
.course-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}
.course-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.course-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
}
.course-detail-desc {
    padding: 36px 40px;
    border-right: 1px solid var(--gray-100);
}
.course-detail-desc p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}
.course-detail-desc p:last-child {
    margin-bottom: 0;
}
.course-detail-requirements {
    padding: 36px 40px;
    background: var(--off-white);
}
.course-detail-requirements h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 16px;
}
.course-detail-requirements ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.course-detail-requirements ul li {
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 10px;
}
.course-detail-requirements ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

/* ============================================
   FLEET
   ============================================ */
.fleet-section {
    background: var(--off-white);
}
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.plane-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}
.plane-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.plane-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--blue-light) 0%, #b8d4ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--blue);
    position: relative;
    overflow: hidden;
}
.plane-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.plane-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--blue);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
}
.plane-info {
    padding: 24px;
}
.plane-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.plane-info .plane-model {
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.plane-info p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
}
.plane-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}
.plane-spec {
    text-align: center;
}
.plane-spec-val {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue);
    font-family: var(--font-display);
}
.plane-spec-key {
    font-size: 0.72rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
    padding: 96px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    margin-top: 36px;
}
.about-text h2:first-child {
    margin-top: 0;
}
.about-text p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}
.values-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.value-item {
    display: flex;
    gap: 16px;
}
.value-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.value-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.value-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}
.team-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.team-avatar {
    width: 72px;
    height: 72px;
    background: var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 12px;
}
.team-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
}
.team-card span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
    background: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 12px;
}
.gallery-item {
    background: linear-gradient(135deg, var(--blue-light), #b8d4ec);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}
.gallery-item.tall {
    grid-row: span 2;
}
.gallery-item.wide {
    grid-column: span 2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 91, 134, 0.55);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
    background: var(--off-white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}
.contact-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 36px;
    line-height: 1.7;
}
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}
.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}
.contact-item p {
    font-size: 0.93rem;
    color: var(--gray-500);
}
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 28px;
}
.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
input,
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--white);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
    outline: none;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(35, 91, 134, 0.1);
}
textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
}
.form-success {
    display: none;
    text-align: center;
    padding: 24px;
}
.form-success .success-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.form-success p {
    color: var(--gray-500);
}

/* ============================================
   MAP
   ============================================ */
.map-section {
    padding: 0;
}
.map-section iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: none;
    filter: saturate(0.8);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: "✈";
    position: absolute;
    font-size: 22rem;
    color: rgba(255, 255, 255, 0.03);
    right: -4rem;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}
.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--white);
    margin-bottom: 16px;
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    font-size: 1.05rem;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}
.footer-brand .nav-logo {
    margin-bottom: 16px;
    color: white;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 260px;
}
.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col ul a {
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col ul a:hover {
    color: var(--white);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a:hover {
    color: var(--white);
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
    color: rgba(255, 255, 255, 0.6);
}
.social-link:hover {
    background: var(--blue);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-teaser-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-badge-float {
        right: 20px;
    }
}
@media (max-width: 768px) {
    :root {
        --nav-h: 80px;
    }
    .hero {
        background-attachment: scroll;
    }
    section {
        padding: 64px 0;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-md);
        gap: 4px;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 10px 16px;
        border-radius: var(--radius);
        width: 100%;
    }
    .hamburger {
        display: flex;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    .fleet-grid,
    .courses-grid {
        grid-template-columns: 1fr 1fr;
    }
    .course-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .course-detail-stats {
        gap: 20px;
    }
    .course-detail-body {
        grid-template-columns: 1fr;
    }
    .course-detail-desc {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
        padding: 28px 24px;
    }
    .course-detail-requirements {
        padding: 28px 24px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .gallery-item.tall {
        grid-row: span 2;
    }
    .gallery-item.wide {
        grid-column: span 2;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .contact-form-wrap {
        padding: 28px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
    }
    .gallery-item.wide {
        grid-column: span 2;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .hero-actions {
        flex-direction: column;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    cursor: pointer;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}
.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: var(--gray-900);
    color: white;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: all 0.2s ease;
}
.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right: none;
    border-left-color: var(--gray-900);
}
.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 88px;
    right: 28px;
    width: 52px;
    height: 52px;
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    color: var(--gray-700);
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.scroll-top svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes fadeUpFallback {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-up {
    animation: fadeUpFallback 0s 1.2s forwards;
}
.fade-up.visible {
    animation: none;
    opacity: 1;
    transform: translateY(0);
}

.breadcrumb {
    display: none;
}

/* ============================================
   PLANE DETAIL BLOCKS (flota.html)
   ============================================ */
.plane-detail-block {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    transition: all var(--transition);
}
.plane-detail-block:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.plane-detail-header {
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.plane-detail-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.plane-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
}
.plane-detail-image {
    overflow: hidden;
    min-height: 300px;
}
.plane-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.plane-detail-info {
    padding: 36px 40px;
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.plane-detail-info p {
    font-size: 0.93rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 14px;
}
.plane-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 28px;
}
.plane-feature {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--gray-600);
}
.plane-feature svg {
    color: var(--blue);
    flex-shrink: 0;
}

/* Maintenance block */
.maintenance-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 12px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}
.maintenance-text h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}
.maintenance-text p {
    font-size: 0.93rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 640px;
}
.maintenance-stat {
    text-align: center;
    background: var(--blue-light);
    padding: 24px 36px;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}
.maintenance-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 6px;
}
.maintenance-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ============================================
   NOSOTROS — About main grid
   ============================================ */
.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.about-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.about-main-text .section-title {
    margin-bottom: 16px;
}
.about-main-text p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-stats-row {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-100);
}
.about-stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 4px;
}
.about-stat-lbl {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Mission / Vision cards */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}
.mv-card {
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mv-card-blue {
    background: linear-gradient(135deg, #1a4468, #235b86);
    color: white;
}
.mv-card-dark {
    background: linear-gradient(135deg, #1e2d40, #2c4a6e);
    color: white;
}
.mv-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.mv-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
}
.mv-card p {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin: 0;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.value-card-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-light);
    border: 1.5px solid var(--blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 16px;
}
.value-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}
.value-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
}

/* Team grid upgrade */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--blue-light);
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--blue);
}
.team-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.team-card span {
    font-size: 0.82rem;
    color: var(--gray-400);
}

/* ============================================
   MOBILE — 768px (tablet / mobile landscape)
   ============================================ */
@media (max-width: 768px) {
    /* Fix hero badge too close to navbar */
    .hero {
        padding-top: calc(var(--nav-h) + 32px);
        align-items: flex-start;
        padding-bottom: 48px;
    }
    .hero-content {
        padding-top: 16px;
    }

    /* --- Fleet (flota.html) --- */
    .plane-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px 24px;
    }
    .plane-detail-body {
        grid-template-columns: 1fr;
    }
    .plane-detail-image {
        min-height: 220px;
    }
    .plane-detail-info {
        padding: 28px 24px;
    }
    .maintenance-block {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
    }
    .maintenance-stat {
        width: 100%;
        text-align: center;
    }

    /* --- Nosotros --- */
    .about-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-main-image {
        aspect-ratio: 16/9;
    }
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* --- Index hero --- */
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .hero-stats {
        gap: 16px;
    }

    /* --- Page hero (inner pages) --- */
    .page-hero h1 {
        font-size: 2rem;
    }

    /* --- Features (index about teaser) --- */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* --- Courses section (index) --- */
    .courses-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .course-card {
        min-height: auto;
    }

    /* --- Section headers --- */
    .section-title {
        font-size: 1.8rem;
    }
}

/* ============================================
   MOBILE — 480px (phones portrait)
   ============================================ */
@media (max-width: 480px) {
    section {
        padding: 48px 0;
    }

    /* --- Hero --- */
    .hero-content h1 {
        font-size: 1.9rem;
        line-height: 1.15;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }
    .hero-stat {
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius);
        padding: 12px;
        text-align: center;
    }

    /* --- Page hero --- */
    .page-hero {
        padding: 48px 0 36px;
    }
    .page-hero h1 {
        font-size: 1.7rem;
    }
    .page-hero p {
        font-size: 0.9rem;
    }

    /* --- Section titles --- */
    .section-title {
        font-size: 1.5rem;
    }

    /* --- Courses (index) --- */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    /* --- Courses detail (cursos.html) --- */
    .course-detail-header {
        padding: 24px 20px;
        gap: 16px;
    }
    .course-detail-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    .course-stat {
        min-width: 70px;
    }
    .course-detail-title {
        font-size: 1.4rem;
    }

    /* --- Fleet (flota.html) --- */
    .plane-detail-header {
        padding: 24px 20px;
    }
    .plane-detail-header-inner {
        gap: 14px;
    }
    .plane-detail-info {
        padding: 24px 20px;
    }
    .course-detail-stats {
        gap: 10px;
    }
    .maintenance-block {
        padding: 24px 20px;
    }
    .maintenance-stat-value {
        font-size: 2rem;
    }

    /* --- Nosotros --- */
    .about-stats-row {
        gap: 20px;
    }
    .about-stat-num {
        font-size: 1.5rem;
    }
    .mv-card {
        padding: 28px 24px;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    .value-card {
        padding: 24px 20px;
    }

    /* --- Gallery --- */
    .gallery-filters {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .filter-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    /* --- CTA banner --- */
    .cta-banner h2 {
        font-size: 1.6rem;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-brand p {
        font-size: 0.88rem;
    }

    /* --- Buttons --- */
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .hero-actions,
    .cta-actions {
        width: 100%;
    }
}
