/* --- VARIABLES & RESET --- */
:root {
    --bg: #ffffff;
    --bg-alt: #F7F9FC;
    --text-main: #1A1F2B;
    --text-muted: #5b6470;
    --primary: #2E7D32;
    --primary-light: #4caf50;
    --accent: #66BB6A;
    --border: #E6EAF0;
    --card-bg: #ffffff;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px -6px rgba(10, 20, 40, 0.08);
    --shadow-hover: 0 20px 32px -8px rgba(46, 125, 50, 0.15);
    --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius-md: 12px;
    --radius-lg: 20px;
    --container-width: 1160px;
    --nav-height: 80px;

    --nav-link-hover: #2E7D32;
    --cta-gradient-start: #2E7D32;
    --cta-gradient-end: #388E3C;
    --cta-glow: rgba(46, 125, 50, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
    padding: 0;
}

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

/* --- LAYOUT UTILS --- */
.container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    line-height: 1.15;
    color: var(--text-main);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 65ch;
    margin-bottom: 2rem;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- NAVIGATION --- */
header.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-nav);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--container-width), 90%);
    margin: 0 auto;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2E7D32;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, color 0.3s ease;
    letter-spacing: -0.02em;
}

.brand img {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.brand:hover {
    transform: translateY(-1px);
}

.brand:hover img {
    transform: scale(1.05);
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--nav-link-hover);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
    transition: all 0.3s ease;
    background: white;
    border-radius: 3px;
    border: #174A2A 0.5px solid;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cta-gradient-start) 0%, var(--cta-gradient-end) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2),
        0 1px 3px rgba(46, 125, 50, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25),
        0 2px 6px rgba(46, 125, 50, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-primary i,
.btn-primary svg {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-primary:hover i,
.btn-primary:hover svg {
    transform: translateX(3px);
}

/* --- HERO SECTION --- */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.hero-layout-v1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content-left {
    text-align: left;
}

.hero-content-left h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-content-left p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-layout-v1 .countdown-container {
    margin-bottom: 0;
    display: inline-flex;
}

.hero-layout-v1 .hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-layout-v1 .hero-content-left .countdown-container {
    align-self: center;
}

.hero-layout-v1 .hero-content-left .countdown-date {
    align-self: center;
}

@keyframes green-breathing {
    0% {
        box-shadow: 0 10px 30px -10px rgba(46, 125, 50, 0.2);
        border-color: rgba(46, 125, 50, 0.3);
    }

    50% {
        box-shadow: 0 10px 40px -5px rgba(46, 125, 50, 0.5);
        border-color: rgba(46, 125, 50, 0.8);
    }

    100% {
        box-shadow: 0 10px 30px -10px rgba(46, 125, 50, 0.2);
        border-color: rgba(46, 125, 50, 0.3);
    }
}

.countdown-container {
    display: inline-flex;
    gap: 20px;
    background: #fff;
    padding: 20px 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    animation: green-breathing 3s infinite ease-in-out;
}

.counter-item {
    text-align: center;
    width: 45px;
}

.counter-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
}

.countdown-date {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    width: 100%;
}

.countdown-date i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    padding: 7.5%;
    box-sizing: border-box;
}


.hero-image-right {
    width: 100%;
    height: 100%;
}


/* --- CARDS & GRIDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(10, 20, 40, 0.08);
    border-color: rgba(46, 125, 50, 0.3);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Feature list styling */
.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.8;
}

/* --- MODALIDADES CARDS --- */
#modalidades article:hover {
    box-shadow: 0 4px 8px rgba(10, 20, 40, .04);
    border-color: rgba(46, 125, 50, 0.05);
}

/* --- TIMELINE --- */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-wrapper::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--border);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* --- ALLIES --- */
.ally-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 24px;
    justify-content: center;
}

.ally-tile {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(46, 125, 50, 0.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 22px -10px rgba(10, 20, 40, 0.22);
    min-height: 240px;
    width: 350px;
    flex-shrink: 0;
}

.ally-name {
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.4;
}

.ally-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.04) 0%, rgba(102, 187, 106, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ally-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 32px -10px rgba(46, 125, 50, 0.18);
    border-color: rgba(46, 125, 50, 0.2);
}

.ally-tile:hover::before {
    opacity: 1;
}

.ally-tile img {
    width: 100%;
    height: auto;
    max-height: 9rem;
    object-fit: contain;
    filter: grayscale(0.45) saturate(0.9) opacity(0.82);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.ally-tile:hover img {
    filter: grayscale(0) saturate(1) opacity(1);
    transform: scale(1.04);
}

/* --- FOOTER --- */
footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.footer-left {
    justify-self: start;
}

.footer-center {
    justify-self: center;
}

.footer-right {
    justify-self: end;
}

@media (max-width: 810px) {

    /* --- HEADER MOVILE --- */
    header.nav {
        height: 70px;
        /* Reducir altura un poco en móvil */
    }

    .nav-inner {
        width: 90%;
    }

    .brand img {
        height: 32px;
        /* Logo más pequeño */
    }

    .hamburger {
        display: flex;
    }

    .nav-actions {
        position: fixed;
        top: 70px;
        /* Coincide con altura header móvil */
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 2px solid var(--border);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 90;
    }

    .nav-actions.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        margin-right: 0;
        margin-bottom: 30px;
        width: 100%;
    }

    .nav-link {
        padding: 16px 10px;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-actions .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }


    /* --- HERO MOVILE --- */
    .hero {
        padding-top: 100px;
        /* Espacio para header fijo */
        padding-bottom: 50px;
    }

    .hero::before {
        right: -50%;
        width: 400px;
        height: 400px;
        opacity: 0.6;
    }

    .hero-layout-v1 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-layout-v1 .hero-content-left {
        text-align: center;
        align-items: center;
    }

    .hero-content-left h1 {
        font-size: clamp(2.2rem, 5vw, 3rem);
        margin-bottom: 16px;
    }

    .hero-content-left p {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hero-layout-v1 .countdown-container {
        justify-content: center;
        width: 100%;
        gap: 15px;
        padding: 15px 20px;
        flex-wrap: wrap;
        /* Permitir que items bajen si no caben */
    }

    .counter-item {
        width: auto;
        min-width: 40px;
    }

    .counter-val {
        font-size: 1.6rem;
    }

    .counter-label {
        font-size: 0.75rem;
    }

    .hero-img-wrapper img {
        min-height: 250px;
        padding: 0;
        /* Aprovechar más espacio */
        max-height: 400px;
        object-fit: contain;
    }


    /* --- GENERAL MOBILE FIXES (PREVIEW) --- */
    h2 {
        font-size: 1.8rem;
    }

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

    .section-header {
        margin-bottom: 40px;
    }

    .timeline-wrapper::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }
}

/* --- REFACTORED INLINE STYLES --- */

/* Modalidades Section */
.modalidades-section {
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.modalidades-container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.modalidades-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 0 0 1rem;
    font-weight: 700;
    color: #1B5E20;
    position: relative;
    padding-bottom: .5rem;
    text-align: center;
}

.modalidades-lead {
    color: #5b6470;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 2.5rem;
}

.modalidad-card {
    background: #ffffff;
    border: 1px solid #E6EAF0;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 18px rgba(10, 20, 40, .05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.modalidad-card:hover {
    box-shadow: 0 6px 12px rgba(10, 20, 40, .06);
    border-color: rgba(46, 125, 50, 0.08);
}

.badge-base {
    display: inline-block;
    padding: .4rem .9rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-producto {
    border: 2px solid #66BB6A;
    background: #E6F4EA;
    color: #174A2A;
}

.badge-idea {
    border: 2px solid #81C784;
    background: #DFF6E0;
    color: #1B5E20;
}

.modalidad-card-title {
    margin: 1rem 0 .8rem;
    font-size: 1.35rem;
    color: #1B5E20;
    font-weight: 600;
}

.modalidad-card-text {
    color: #5b6470;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.modalidad-list {
    margin: 12px 0 0;
    padding-left: 20px;
    list-style: none;
}

.modalidad-list-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #5b6470;
}

.modalidad-check {
    position: absolute;
    left: 0;
    color: #2E7D32;
    font-weight: bold;
}

.modalidades-info-box {
    margin-top: 2rem;
    padding: 20px 24px;
    border-radius: 14px;
    background: #E6F4EA;
    border: 2px solid #CDE9D6;
    text-align: center;
}


/* Versión 7: Minimalista con tags */
.modalidades-info {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 28px;
    border-radius: 12px;
    background: rgba(232, 245, 233, 0.5);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.modalidades-info .info-box-subtitle {
    display: block;
    font-size: 0.95rem;
    margin-top: 4px;
    margin-bottom: 12px;
}

.participation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.participation-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: white;
    color: #2E7D32;
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid #C8E6C9;
    font-weight: 500;
    transition: all 0.2s ease;
}

.participation-tags .tag:hover {
    background: #E8F5E9;
    border-color: #66BB6A;
}

.info-box-title {
    color: #1B5E20;
    font-size: 1.1rem;
    display: block;
    line-height: 1.6;
}

.info-box-text {
    color: #5b6470;
}

/* Botones de Modalidades */
.btn-modalidad {
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 45px;
    margin-top: auto;
    position: relative;
    width: 100%;
    text-decoration: none;
    text-align: center;
    background: #66BB6A;
}

.btn-modalidad svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 45px;
}

.btn-modalidad rect {
    fill: none;
    stroke: #66BB6A;
    stroke-width: 1;
    stroke-dasharray: 422, 0;
}

.btn-modalidad:hover {
    background: rgba(225, 51, 45, 0);
    letter-spacing: 1px;
    font-weight: 900;
    color: #66BB6A;
}

.btn-modalidad:hover rect {
    stroke-width: 5;
    stroke-dasharray: 15, 310;
    stroke-dashoffset: 48;
    transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
}


.info-box-subtitle {
    color: #5b6470;
    margin-bottom: 1rem;
    display: block;
    font-size: 1rem;
}

.participation-list-container {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.participation-list {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 12px 40px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: fit-content;
    text-align: left;
}

.participation-list li {
    position: relative;
    padding-left: 24px;
    color: #5b6470;
    font-size: 1.05rem;
    line-height: 1.5;
}

.participation-list li::before {
    content: 'ᐅ';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}

@media (max-width: 600px) {
    .participation-list {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: 320px;
    }
}

/* Image Utilities */
.logo-nav {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.btn-icon-small {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
    vertical-align: middle;
}

.footer-logo-img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

/* --- BACKGROUND ANIMATION --- */
#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ball {
    position: absolute;
    border-radius: 100%;
    opacity: 0.4;
}

/* --- QUE ES SECTION --- */
#que-es {
    background: var(--bg-alt);
}

.que-es-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.que-es-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.que-es-img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(46, 125, 50, 0.15));
    transition: transform 0.3s ease;
}

.que-es-img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.que-es-text {
    text-align: left;
}

.que-es-text h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--primary);
}

.que-es-text .lead {
    margin-bottom: 0;
    font-size: 1.15rem;
}

@media (max-width: 850px) {
    .que-es-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .que-es-text {
        text-align: center;
    }

    .que-es-text .lead {
        margin: 0 auto;
    }

    .que-es-img {
        max-height: 250px;
    }
}

/* --- SECTION HEADER STYLES --- */
.section-header {
    text-align: center;
}

.section-header .lead {
    margin: 0 auto;
}

/* --- TIMELINE DESCRIPTIONS --- */
.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.timeline-list li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- PREMIOS SECTION --- */
.premio-card {
    text-align: center;
}

.premio-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.premio-card p {
    color: var(--text-muted);
}

.premios-footer-box {
    margin-top: 40px;
    padding: 24px;
    border-radius: 12px;
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    text-align: center;
}

.premios-footer-box p {
    color: #1B5E20;
    font-weight: 600;
    margin: 0;
}

/* --- ALIADOS SECTION --- */
#aliados {
    background: var(--bg-alt);
    padding: 100px 0;
}

.aliados-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 60px;
    letter-spacing: -0.5px;
    font-weight: 700;
    color: #1B5E20;
}

/* --- REGISTRO SECTION --- */
#registro {
    text-align: center;
    padding: 100px 0;
}

.registro-title {
    font-size: 2.8rem;
}

.btn-registro {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

.btn-registro i {
    margin-right: 10px;
}

/* --- FOOTER LINK --- */
.footer-link {
    color: var(--primary);
    font-weight: 600;
}

/* Ensure content sits above background */
section,
footer {
    position: relative;
    z-index: 1;
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    color: var(--primary);
    font-weight: bold;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}