/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
    --dark: #00182f;
    /* texto oscuro principal */
    --green: #00482f;
    /* acento verde / separadores secundarios */
    --white: #ffffff;
    --off-white: #f6f8f6;
    --a1: #3d007d;
    /* púrpura */
    --a2: #700056;
    /* fucsia oscuro */
    --a3: #ff6400;
    /* naranja */
    --grad: linear-gradient(135deg, var(--a1) 0%, var(--a2) 50%, var(--a3) 100%);
    --grad-h: linear-gradient(135deg, var(--a3) 0%, var(--a2) 50%, var(--a1) 100%);
    --font: 'Inter', sans-serif;
    --nav-h: 72px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 20px 60px rgba(0, 24, 47, 0.10);
    --shadow-lg: 0 30px 90px rgba(0, 24, 47, 0.16);
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    padding: 0 2.5rem;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(0, 24, 47, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.nav-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.06em;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.nav-brand.visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-brand:hover {
    opacity: 0.75;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--grad);
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 999px;
    font-weight: 700 !important;
    transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.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);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 24, 47, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.9rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

/* ─────────────────────────────────────────────
   SCROLL SNAP CONTAINER
───────────────────────────────────────────── */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.snap-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--grad);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 100, 0, 0.3);
}

.btn-primary:hover {
    background: var(--grad-h);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 100, 0, 0.4);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
.section-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    background: var(--grad);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tag-light {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header--light {
    color: white;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    font-style: normal;
    line-height: 1.05;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title em {
    font-style: italic;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--grad);
    border-radius: 3px;
}

.title-light {
    color: white;
}

.title-light em {
    -webkit-text-fill-color: transparent;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
}

.title-light::after {
    background: rgba(255, 255, 255, 0.5);
}

.section-sub {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0, 24, 47, 0.65);
    max-width: 600px;
    font-weight: 400;
}

.sub-light {
    color: rgba(255, 255, 255, 0.7);
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 100, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(255, 100, 0, 0);
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(8px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientOrange {
    0% {
        background-position: 0% 50%;
    }

    85% {
        background-position: 0% 50%;
    }

    92% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-in {
    animation: fadeUp 0.9s var(--ease) both;
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate]:nth-child(2) {
    transition-delay: 0.1s;
}

[data-animate]:nth-child(3) {
    transition-delay: 0.2s;
}

[data-animate]:nth-child(4) {
    transition-delay: 0.3s;
}

[data-animate]:nth-child(5) {
    transition-delay: 0.4s;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.section-hero {
    min-height: 100vh;
    padding: 0;
    background: linear-gradient(rgba(0, 24, 47, 0.2), rgba(0, 24, 47, 0.2)), url('foto1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 0, 125, 0.12) 0%, rgba(112, 0, 86, 0.08) 50%, rgba(255, 100, 0, 0.05) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    width: min(300px, 60vw);
    margin-bottom: 2.5rem;
    filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    animation: fadeIn 1.2s both;
}

.hero-eyebrow {
    display: block;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.04em;
    color: white;
}

.hero-title em {
    font-style: italic;
    display: block;
    background: linear-gradient(135deg, var(--a3) 0%, var(--a3) 40%, var(--a2) 70%, var(--a1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 0px rgba(255, 255, 255, 0.8));
}

.hero-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);

}

/* ─────────────────────────────────────────────
   STATS
───────────────────────────────────────────── */
.section-stats {
    background: var(--off-white);
    padding-top: calc(var(--nav-h) + 1.5rem);
    position: relative;
}

.capi-stats-mascot {
    position: absolute;
    bottom: -10px;
    right: -40px;
    width: clamp(250px, 30vw, 400px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
    filter: drop-shadow(-5px 5px 20px rgba(0,0,0,0.1));
}

.stats-container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--a2) 0%, var(--a3) 100%) border-box;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    overflow: hidden;
}

.stat-card.featured {
    background: linear-gradient(var(--dark), var(--dark)) padding-box,
                linear-gradient(135deg, var(--a2) 0%, var(--a3) 100%) border-box;
    color: white;
    transform: scale(1.04);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-card.featured:hover {
    transform: scale(1.04) translateY(-8px);
}

.stat-glow {
    position: absolute;
    inset: -50%;
    background: var(--grad);
    opacity: 0.04;
    border-radius: 50%;
    pointer-events: none;
}

.stat-number {
    display: block;
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.featured .stat-number,
.stat-card.featured .stat-suffix {
    background: none;
    -webkit-text-fill-color: white;
    color: white;
}

.stat-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    margin: 0.4rem 0 0.3rem;
}

.stat-card.featured .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-desc {
    font-size: 0.75rem;
    color: rgba(0, 24, 47, 0.5);
    line-height: 1.4;
}

.stat-card.featured .stat-desc {
    color: rgba(255, 255, 255, 0.45);
}

/* ─────────────────────────────────────────────
   PILLARS — DARK WITH FONDO.SVG
───────────────────────────────────────────── */
.section-pillars {
    background: var(--dark);
    color: white;
    position: relative;
}

.pillars-bg-svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    opacity: 0.18;
}

.pillars-bg-svg img {
    height: 120%;
    width: auto;
    max-width: none;
    object-fit: cover;
    mix-blend-mode: screen;
    filter: hue-rotate(280deg) saturate(1.5);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.pillar-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.pillar-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.3s;
}

.pillar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-6px);
}

.pillar-item:hover::before {
    opacity: 1;
}

.pillar-num {
    font-size: 3.5rem;
    font-weight: 900;
    font-style: italic;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.pillar-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: white;
}

.pillar-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

/* ─────────────────────────────────────────────
   MAP
───────────────────────────────────────────── */
.section-map {
    background: var(--white);
}

.map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.map-text {}

.map-stats-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-stats-list li {
    font-size: 0.95rem;
    color: rgba(0, 24, 47, 0.7);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-stats-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad);
    flex-shrink: 0;
}

.highlight-num {
    font-size: 1.4rem;
    font-weight: 900;
    font-style: italic;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-video-wrap {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
}

.map-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.map-visual-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-image-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-regiones-img {
    width: 100%;
    max-width: 320px;
    max-height: 55vh;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.map-card {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 3/4;
    border-radius: 28px;
    background: linear-gradient(160deg, var(--a1) 0%, var(--a2) 55%, var(--a3) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.map-placeholder-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-svg-country {
    width: 55%;
    height: auto;
    opacity: 0.5;
}

.map-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
    animation: pulse 2.5s infinite;
}

.map-pin:nth-child(2) {
    animation-delay: 0.5s;
}

.map-pin:nth-child(3) {
    animation-delay: 1s;
}

.map-pin:nth-child(4) {
    animation-delay: 0.3s;
}

.map-pin:nth-child(5) {
    animation-delay: 0.8s;
}

.map-pin:nth-child(6) {
    animation-delay: 1.3s;
}

/* ─────────────────────────────────────────────
   EL CAMINO DE LA LLAMA
───────────────────────────────────────────── */
.section-llama {
    background: var(--off-white);
}

.llama-slider-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.llama-slider-container::-webkit-scrollbar {
    height: 8px;
}

.llama-slider-container::-webkit-scrollbar-track {
    background: rgba(0, 24, 47, 0.05);
    border-radius: 4px;
}

.llama-slider-container::-webkit-scrollbar-thumb {
    background: var(--a3);
    border-radius: 4px;
}

.llama-slider-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

.llama-slider-img {
    height: clamp(250px, 40vh, 450px);
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow);
    scroll-snap-align: center;
}

/* ─────────────────────────────────────────────
   THEMES
───────────────────────────────────────────── */
.section-themes {
    background: var(--off-white);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}

.theme-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.theme-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.theme-icon--1 {
    background: var(--a1);
}

.theme-icon--2 {
    background: var(--a2);
}

.theme-icon--3 {
    background: linear-gradient(135deg, var(--a1), var(--a2));
}

.theme-icon--4 {
    background: var(--a3);
}

.theme-icon--5 {
    background: linear-gradient(135deg, var(--a1), var(--a3));
}

.theme-card h3 {
    font-size: 0.85rem;
    font-weight: 900;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.theme-card p {
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(0, 24, 47, 0.6);
}

.theme-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.theme-card:hover .theme-bar {
    transform: scaleX(1);
}

/* ─────────────────────────────────────────────
   JUEGO DIDÁCTICO
───────────────────────────────────────────── */
.section-game {
    background: var(--white);
}

.game-visual-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    perspective: 1200px;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 280px;
    border-radius: 32px;
    padding: 10px;
    background: #111;
    box-shadow: 
        inset 0 0 0 2px #333, 
        0 20px 40px rgba(0, 0, 0, 0.4),
        25px 20px 40px rgba(0, 0, 0, 0.15);
    transform: rotateY(-12deg) rotateX(4deg);
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease);
}

.phone-mockup:hover {
    transform: rotateY(-4deg) rotateX(2deg);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 18px;
    background: #111;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.game-carousel {
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
    position: relative;
    background: var(--dark);
}

.carousel-track {
    display: flex;
    width: 500%;
    /* Animación de 16s: 4 imágenes (la quinta es clon). */
    animation: slideCarousel 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.carousel-img {
    width: 20%;
    object-fit: cover;
    aspect-ratio: 9/16;
    display: block;
}

@keyframes slideCarousel {
    0%, 15% { transform: translateX(0); }
    25%, 40% { transform: translateX(-20%); }
    50%, 65% { transform: translateX(-40%); }
    75%, 90% { transform: translateX(-60%); }
    100% { transform: translateX(-80%); }
}

/* ─────────────────────────────────────────────
   ESCUELAS ACTIVADAS
───────────────────────────────────────────── */
.section-escuelas {
    background: var(--off-white);
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.escuelas-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 1.5rem) 2rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    height: 85vh;
    min-height: 500px;
}

.escuelas-container .section-header {
    margin-bottom: 1rem;
}

.escuelas-container .map-layout {
    align-items: stretch;
}

.map-constrained {
    position: relative;
    width: 100%;
    flex: 1;
    border-radius: 20px;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                var(--grad) border-box;
    border: 4px solid transparent;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.escuelas-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.mobile-map-hint {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 24, 47, 0.85);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    z-index: 3;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    line-height: 1.3;
}

/* ─────────────────────────────────────────────
   FOOTER OVERLAY
───────────────────────────────────────────── */
.footer-overlay {
    position: relative;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    pointer-events: auto;
}

.footer-contact a,
.footer-contact span {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    pointer-events: auto;
}

.footer-logos img {
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.logo-min {
    height: 40px;
}

.logo-coa {
    height: 80px;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }


}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .snap-container {
        scroll-snap-type: none;
        height: auto;
        overflow-y: auto;
    }

    .snap-section {
        height: auto;
        min-height: 100svh;
        scroll-snap-align: unset;
        padding: 4rem 1.5rem 2.5rem;
    }

    .section-hero {
        padding-top: 0;
        padding-bottom: 0;
    }



    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card.featured {
        transform: none;
    }

    .pillars-grid {
        grid-template-columns: 1fr 1fr;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    .map-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-regiones-img {
        max-width: 220px;
        max-height: 40vh;
    }

    .map-video-wrap {
        max-height: 25vh;
    }

    .section-sub {
        font-size: 0.85rem;
    }

    .section-escuelas {
        padding: 0;
    }

    .escuelas-container {
        height: auto;
    }

    .map-constrained {
        height: 65vh;
        min-height: 450px;
    }

    .mobile-map-hint {
        display: flex;
    }

    .footer-overlay {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
        background: var(--dark);
        margin: 0;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        justify-content: center;
    }

    .map-regiones-img {
        max-width: 180px;
    }
}

/* ─────────────────────────────────────────────
   LOGIN OVERLAY
───────────────────────────────────────────── */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form input {
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: var(--a3);
}

.login-error {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

/* ─────────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────────── */
.btn-desktop-only { display: inline-flex; }
.btn-mobile-only { display: none !important; }

@media (max-width: 768px) {
    .btn-desktop-only { display: none !important; }
    .btn-mobile-only { display: inline-flex !important; }
}

/* ─────────────────────────────────────────────
   MATERIALES EDUCATIVOS
───────────────────────────────────────────── */
.section-materiales {
    background: var(--off-white);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.materiales-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ── Featured guide card (full-width, compact hero row) ── */
.material-card--featured {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    border-radius: 20px;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                var(--grad) border-box;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--dark);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.material-card--featured .material-thumb-wrap {
    aspect-ratio: 3/4;
    height: auto;
    max-height: 240px;
    width: 180px;
    flex-shrink: 0;
    border-radius: 18px 0 0 18px;
}

.material-card--featured .material-thumb {
    object-position: top center;
}

.material-card--featured .material-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 2rem;
}

.material-card--featured .material-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    padding: 0;
}

.material-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(0, 24, 47, 0.6);
    margin-bottom: 1rem;
    padding: 0;
}

.material-card--featured .material-badge--featured {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    margin: 0;
    border-radius: 999px;
    background: var(--grad);
    color: white;
    width: fit-content;
}

.material-card--featured:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ── Regular cards ── */
.material-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    text-decoration: none;
    color: var(--dark);
    position: relative;
}

.material-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.material-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(61,0,125,0.05), rgba(255,100,0,0.05));
}

.material-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.material-card:hover .material-thumb {
    transform: scale(1.05);
}

.material-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61,0,125,0.85) 0%, rgba(112,0,86,0.85) 50%, rgba(255,100,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.material-overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.material-card:hover .material-overlay {
    opacity: 1;
}

.material-title {
    font-size: 1rem;
    font-weight: 800;
    padding: 1rem 1.25rem 0.25rem;
    color: var(--dark);
}

.material-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem 1.25rem 1.25rem;
    border-radius: 999px;
    background: var(--grad);
    color: white;
    width: fit-content;
}

/* Carousel controls - hidden on desktop */
.materiales-carousel-controls {
    display: none;
}

/* ── Mobile carousel ── */
@media (max-width: 768px) {
    .materiales-grid {
        display: flex;
        overflow: hidden;
        scroll-snap-type: none;
        gap: 0;
        position: relative;
    }

    .material-card {
        min-width: 100%;
        flex-shrink: 0;
        transition: transform 0.45s var(--ease);
        border-radius: 20px;
        /* Reset hover translate for mobile drag */
    }

    .material-card:hover {
        transform: none;
    }

    /* Featured card layout for mobile */
    .material-card--featured {
        flex-direction: column;
    }

    .material-card--featured .material-thumb-wrap {
        width: 100%;
        max-height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .material-card--featured .material-content-wrap {
        padding: 1.25rem;
        align-items: center;
        text-align: center;
    }

    .material-card--featured .material-title {
        font-size: 1.05rem;
    }

    .material-thumb-wrap {
        aspect-ratio: auto;
        max-height: 400px;
        height: 400px;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .material-thumb {
        object-position: top;
    }

    .materiales-carousel-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .mat-carousel-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid rgba(0, 24, 47, 0.15);
        background: white;
        color: var(--dark);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s var(--ease);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    .mat-carousel-btn:hover {
        background: var(--grad);
        color: white;
        border-color: transparent;
        transform: scale(1.1);
    }

    .mat-carousel-dots {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .mat-carousel-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(0, 24, 47, 0.15);
        border: none;
        cursor: pointer;
        transition: all 0.3s var(--ease);
        padding: 0;
    }

    .mat-carousel-dot.active {
        background: var(--grad);
        width: 28px;
        border-radius: 5px;
    }
}

/* ─────────────────────────────────────────────
   CALENDAR
───────────────────────────────────────────── */
.section-calendar {
    background: var(--white);
    position: relative;
    padding-bottom: 4rem;
}

.calendar-wrapper {
    margin-top: 2rem;
    position: relative;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.calendar-day-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 50vh; /* Permite hacer scroll si hay muchas tarjetas */
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar personalizado para las tarjetas */
.calendar-day-cards::-webkit-scrollbar {
    width: 6px;
}
.calendar-day-cards::-webkit-scrollbar-track {
    background: transparent;
}
.calendar-day-cards::-webkit-scrollbar-thumb {
    background: rgba(0, 24, 47, 0.15);
    border-radius: 4px;
}

.calendar-day-header {
    text-align: center;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 16px;
    border: 1px solid rgba(0, 24, 47, 0.05);
    transition: all 0.3s var(--ease);
}

.calendar-day.is-today .calendar-day-header {
    background: var(--grad);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 100, 0, 0.25);
}

.calendar-day-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: capitalize;
}

.calendar-day-date {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

.calendar-card {
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    color: white;
}

.calendar-card:hover {
    transform: translateY(-4px);
}

.calendar-card.empty {
    text-align: center;
    color: rgba(0, 24, 47, 0.4);
    font-style: italic;
    font-size: 0.9rem;
    background: transparent;
    border: 1px dashed rgba(0, 24, 47, 0.15);
    box-shadow: none;
}
.calendar-card.empty:hover {
    transform: none;
}

.calendar-card.card-color-1 { background: var(--a1); box-shadow: 0 4px 15px rgba(61, 0, 125, 0.2); }
.calendar-card.card-color-1:hover { box-shadow: 0 10px 30px rgba(61, 0, 125, 0.4); }

.calendar-card.card-color-2 { background: var(--a2); box-shadow: 0 4px 15px rgba(112, 0, 86, 0.2); }
.calendar-card.card-color-2:hover { box-shadow: 0 10px 30px rgba(112, 0, 86, 0.4); }

.calendar-card.card-color-3 { background: var(--a3); box-shadow: 0 4px 15px rgba(255, 100, 0, 0.2); }
.calendar-card.card-color-3:hover { box-shadow: 0 10px 30px rgba(255, 100, 0, 0.4); }

.calendar-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.calendar-card-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: white; 
}

.calendar-card-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.9);
}

.calendar-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
}

.calendar-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.7);
}

.calendar-card-school {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    color: white;
}

.loading-calendar {
    width: 100%;
    text-align: center;
    padding: 2rem;
    color: rgba(0,24,47,0.5);
    font-style: italic;
}

/* Expand/Collapse behavior globally */
.calendar-card {
    cursor: pointer;
}

.calendar-card-divider,
.calendar-card-bottom {
    display: none;
}

.calendar-card.expanded .calendar-card-divider {
    display: block;
}

.calendar-card.expanded .calendar-card-bottom {
    display: flex;
}

@media (max-width: 992px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────
   ATLETAS CAROUSEL
───────────────────────────────────────────── */
.section-atletas {
    background: linear-gradient(180deg, var(--dark) 0%, var(--a1) 50%, var(--a2) 100%);
    position: relative;
    overflow: hidden;
    height: 85vh;
    padding: 0;
}

.section-atletas .container {
    position: relative;
    height: 100%;
    z-index: 2;
}

/* ── Text block ── */
.section-atletas .section-header {
    position: relative;
    z-index: 10;
}

.section-atletas .section-title::after {
    background: rgba(255,255,255,0.5);
}

.section-atletas .title-light,
.section-atletas .title-light em,
.section-atletas .sub-light {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}
.section-atletas .sub-light {
    color: rgba(255,255,255,0.85);
    -webkit-text-fill-color: rgba(255,255,255,0.85);
    font-weight: 500;
    max-width: 100%;
}

/* ── Carousel wrapper ── */
.atletas-carousel-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.atletas-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    perspective: 1000px;
}

.atleta-card {
    position: absolute;
    bottom: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.atleta-card.active, .atleta-card.prev, .atleta-card.next {
    opacity: 1;
    pointer-events: auto;
}

.atleta-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
    transition: filter 0.4s var(--ease);
    transform-origin: bottom center;
}

.atleta-name {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    z-index: 2;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    font-weight: 900;
    font-style: italic;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 24, 47, 0.9), 0 2px 5px rgba(0, 24, 47, 0.9);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.05em;
    pointer-events: none;
    transition: opacity 0.4s;
}

/* ── Carousel states ── */
.atleta-card.active {
    transform: translateX(0) scale(1);
    z-index: 3;
    filter: brightness(1);
}
.atleta-card.prev {
    transform: translateX(-40%) scale(0.8);
    z-index: 1;
    filter: brightness(0.5);
}
.atleta-card.next {
    transform: translateX(40%) scale(0.8);
    z-index: 1;
    filter: brightness(0.5);
}
.atleta-card.hidden.prev-out {
    transform: translateX(-70%) scale(0.6);
    z-index: 0;
}
.atleta-card.hidden.next-out {
    transform: translateX(70%) scale(0.6);
    z-index: 0;
}
.atleta-card.prev .atleta-name, .atleta-card.next .atleta-name {
    opacity: 0;
}

/* ── DESKTOP: text left, carousel right ── */
@media (min-width: 993px) {
    .section-atletas .section-header {
        position: absolute;
        top: calc(var(--nav-h) + 3rem);
        left: 0;
        width: 35%;
        text-align: left;
    }
    .atletas-carousel-wrapper {
        left: auto;
        right: 0;
        width: 60%;
        height: 100%;
    }
    .atleta-card {
        max-width: 400px;
    }
}

/* ── MOBILE: text top left, carousel full height ── */
@media (max-width: 992px) {
    .section-atletas .section-header {
        position: absolute;
        top: calc(var(--nav-h) + 1.5rem);
        left: 2rem;
        right: 2rem;
        text-align: left;
        z-index: 10;
    }
    .atletas-carousel-wrapper {
        height: 100%;
    }
    .atleta-card {
        max-width: 320px;
    }
    .atleta-name {
        bottom: 5%;
    }
}

.atletas-footnote {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    z-index: 5;
    pointer-events: none;
}

/* ─────────────────────────────────────────────
   COA SECTION
   Celeste, blanco y dorado premium.
───────────────────────────────────────────── */
.section-coa {
    background: linear-gradient(135deg, #f3f8fe 0%, #dbe9f9 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle decorative flag stripes in background */
.section-coa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #70a1ff 0%, #ffffff 50%, #70a1ff 100%);
    opacity: 0.8;
}

.coa-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.coa-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tag-coa {
    background: linear-gradient(135deg, #54a0ff 0%, #2e86de 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(84, 160, 255, 0.3);
}

.title-coa em {
    color: #D4AF37;
    background: none;
    -webkit-text-fill-color: #D4AF37;
}

.title-coa::after {
    background: linear-gradient(90deg, #54a0ff 0%, #D4AF37 100%);
}

.sub-coa {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(0, 24, 47, 0.8);
    margin-bottom: 2.5rem;
}

/* Decorative big background logo (like Capi in stats) */
.coa-bg-logo-wrap {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: clamp(280px, 32vw, 450px);
    height: clamp(280px, 32vw, 450px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
    transform: scale(0.95);
    transition: transform 1.2s var(--ease), opacity 1.2s var(--ease);
}

.coa-bg-logo-wrap.visible {
    transform: scale(1);
    opacity: 0.95;
}

.coa-bg-logo {
    width: 100%;
    height: 100%;
    filter: drop-shadow(-5px 10px 25px rgba(0, 24, 47, 0.06));
}

.coa-bg-logo .st-gold {
    fill: #D4AF37 !important;
}

/* COA NEWS STYLES */
.coa-news-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.coa-news-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.coa-news-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #54a0ff;
    border-radius: 2px;
}

.coa-news-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 250px;
}

.coa-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    color: rgba(0, 24, 47, 0.5);
    font-style: italic;
    text-align: center;
    padding: 3rem 0;
}

.coa-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(84, 160, 255, 0.1);
    border-top-color: #54a0ff;
    border-radius: 50%;
    animation: coaSpin 1s linear infinite;
}

@keyframes coaSpin {
    to { transform: rotate(360deg); }
}

/* Elegant glassmorphic news cards with strong hierarchy */
.coa-news-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 1.8rem;
    display: grid;
    grid-template-columns: 165px 1fr;
    gap: 1.8rem;
    box-shadow: 0 15px 40px rgba(0, 24, 47, 0.05);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s, background 0.4s;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.coa-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(84, 160, 255, 0.18);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(84, 160, 255, 0.5);
}

.coa-news-img-wrap {
    width: 100%;
    height: 100%;
    min-height: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #e2ecf7;
}

.coa-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.coa-news-card:hover .coa-news-img {
    transform: scale(1.08);
}

.coa-news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
}

.coa-news-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: #54a0ff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.coa-news-h {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--dark);
    margin: 0.2rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.coa-news-card:hover .coa-news-h {
    color: #2e86de;
}

.coa-news-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(0, 24, 47, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESPONSIVE DESIGN FOR COA */
@media (max-width: 992px) {
    .coa-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .coa-text-wrap {
        align-items: center;
        text-align: center;
    }
    .title-coa::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .coa-logo-container {
        align-self: center;
    }
}

@media (max-width: 576px) {
    .coa-news-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }
    .coa-news-img-wrap {
        height: 160px;
    }
}