:root {
    --azul: #1a3f7a;
    --azul-claro: #3a6bc5;
    --rojo: #e63946;
    --navy: #0d1b3e;
    --blanco: #ffffff;
    --gris-claro: #f0f4f8;
    --gris: #8a9bb5;
    --dorado: #f4a261;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--blanco);
    color: var(--navy);
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: rgba(13, 27, 62, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s ease;
}
nav.scrolled {
    padding: 0.6rem 3rem;
    background: rgba(13, 27, 62, 0.96);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--blanco);
}
.nav-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--rojo);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
    color: white;
}
.nav-logo span {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: width 0.3s;
}
.nav-links a:hover {
    color: var(--blanco);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-cta {
    background: var(--rojo) !important;
    color: var(--blanco) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta::after {
    display: none !important;
}
.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(230,57,70,0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active {
    opacity: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,62,0.88) 0%, rgba(26,63,122,0.5) 50%, rgba(230,57,70,0.25) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 3rem;
    margin-top: 2rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(230,57,70,0.15);
    border: 1px solid rgba(230,57,70,0.4);
    color: var(--rojo);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s ease both;
}
.hero-badge sup{
    font-size: 0.6em;
    letter-spacing: 0;
    text-transform: lowercase;
}
.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--rojo);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.hero-badge span {
    white-space: nowrap;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}
.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: #e6f5f9;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    animation: fadeUp 0.8s ease 0.15s both;
}
.hero h1 em {
    font-style: italic;
    color: var(--rojo);
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 560px;
    animation: fadeUp 0.8s ease 0.3s both;
}
.hero-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s ease 0.45s both;
}
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
}
.hero-meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.6s both;
}
.btn-primary {
    background: var(--rojo);
    color: var(--blanco);
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(230,57,70,0.4);
}
.btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--blanco);
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

/* Carousel dots */
.hero-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    z-index: 4;
    display: flex;
    gap: 0.5rem;
}
.hero-dot {
    width: 32px;
    height: 3px;
    border-radius: 100px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.4s;
}
.hero-dot.active {
    width: 56px;
    background: var(--rojo);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── COUNTDOWN ── */
.countdown-bar {
    background: linear-gradient(90deg, var(--azul), var(--navy));
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.countdown-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.countdown-digits {
    display: flex;
    gap: 1rem;
}
.countdown-unit {
    text-align: center;
}
.countdown-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--blanco);
    line-height: 1;
}
.countdown-text {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}
.countdown-sep {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--rojo);
    line-height: 1;
}

/* ── ABOUT ── */
.about {
    padding: 7rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--rojo);
    margin-bottom: 1rem;
}
.about h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.about p {
    color: var(--gris);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.about-stat {
    text-align: center;
    padding: 1.2rem;
    border-radius: 16px;
    background: var(--gris-claro);
}
.about-stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--azul);
}
.about-stat-label {
    font-size: 0.75rem;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}
.about-visual {
    position: relative;
}
.about-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 1rem;
}
.about-img-grid .img-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.about-img-grid .img-card:first-child {
    grid-row: span 2;
}
.about-img-grid .img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.about-img-grid .img-card:hover img {
    transform: scale(1.05);
}
.about-float-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1rem;
    background: var(--rojo);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 30px rgba(230,57,70,0.35);
    z-index: 2;
}

/* ── ACTIVIDADES ── */
.actividades {
    background: var(--gris-claro);
    padding: 7rem 3rem;
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}
.section-header .tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--rojo);
    margin-bottom: 0.8rem;
}
.section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--gris);
    line-height: 1.7;
}
.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid rgba(0,0,0,0.04);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(13,27,62,0.1);
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.card-icon.blue {
    background: rgba(26,63,122,0.08);
    color: var(--azul);
}
.card-icon.red {
    background: rgba(230,57,70,0.08);
    color: var(--rojo);
}
.card-icon.gold {
    background: rgba(244,162,97,0.1);
    color: var(--dorado);
}
.card-icon.teal {
    background: rgba(42,157,143,0.08);
    color: #2a9d8f;
}
.card h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.6rem;
}
.card p {
    color: var(--gris);
    font-size: 0.9rem;
    line-height: 1.6;
}
.card-number {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: rgba(0,0,0,0.03);
    line-height: 1;
}

/* ── PROGRAMA ── */
.programa {
    padding: 7rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.timeline {
    position: relative;
    padding-left: 3rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--azul), var(--rojo));
}
.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blanco);
    border: 3px solid var(--azul);
    z-index: 1;
    transition: all 0.3s;
}
.timeline-item:hover::before {
    background: var(--rojo);
    border-color: var(--rojo);
    box-shadow: 0 0 0 6px rgba(230,57,70,0.15);
}
.timeline-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rojo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.timeline-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
}
.timeline-desc {
    color: var(--gris);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── UBICACIÓN ── */
.ubicacion {
    background: var(--navy);
    padding: 7rem 3rem;
    position: relative;
    overflow: hidden;
}
.ubicacion::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230,57,70,0.08) 0%, transparent 70%);
}
.ubicacion-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.ubicacion .tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--rojo);
    margin-bottom: 0.8rem;
}
.ubicacion h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--blanco);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.ubicacion-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.ubicacion-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}
.ubicacion-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.map-container {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    border: 1px solid rgba(255,255,255,0.08);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.8) contrast(1.1);
}

/* ── CTA ── */
.cta-section {
    padding: 7rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(26,63,122,0.04) 0%, transparent 70%);
}
.cta-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
}
.cta-section p {
    color: var(--gris);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
}
.cta-section .btn-primary {
    font-size: 1.05rem;
    padding: 1rem 2.8rem;
    position: relative;
}

/* ── FOOTER ── */
footer {
    background: var(--navy);
    padding: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--blanco);
    margin-bottom: 0.5rem;
}
.footer-sub {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--blanco);
}
.footer-copy {
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1.5rem;
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero-content {
        padding: 0 1.5rem;
        margin-top: 3rem;
    }
    .hero-meta {
        gap: 1rem;
    }
    .hero-dots {
        left: 1.5rem;
    }
    .countdown-bar {
        padding: 1rem 1.5rem;
        gap: 1.5rem;
    }
    .about {
        grid-template-columns: 1fr;
        padding: 4rem 1.5rem;
        gap: 3rem;
    }
    .actividades {
        padding: 4rem 1.5rem;
    }
    .programa {
        padding: 4rem 1.5rem;
    }
    .ubicacion {
        padding: 4rem 1.5rem;
    }
    .ubicacion-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .map-container {
        height: 280px;
    }
    .cta-section {
        padding: 4rem 1.5rem;
    }
}

/* ── IMAGE MARQUEE ── */
.marquee-section {
    background: var(--navy);
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}
.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.marquee-section::before {
    left: 0;
    background: linear-gradient(90deg, var(--navy) 0%, transparent 100%);
}
.marquee-section::after {
    right: 0;
    background: linear-gradient(-90deg, var(--navy) 0%, transparent 100%);
}
.marquee-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-img {
    width: 280px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.marquee-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.marquee-img:hover img {
    transform: scale(1.08);
}
.marquee-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Row 2 - reverse direction */
.marquee-track-reverse {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: marqueeScrollReverse 40s linear infinite;
    margin-top: 1.2rem;
}
.marquee-track-reverse:hover {
    animation-play-state: paused;
}
@keyframes marqueeScrollReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .marquee-img {
        width: 200px;
        height: 130px;
    }
    .marquee-section {
        padding: 1.2rem 0;
    }
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}