/* ==========================================
   LANDING REGISTRO V2 — Talento y Mérito
   Diseño interactivo premium — MSXXI
   ========================================== */

:root {
    --rojo:           #CC1231;
    --rojo-dark:      #a30f28;
    --rojo-glow:      rgba(204, 18, 49, 0.25);
    --azul:           #2B4A6B;
    --azul-deep:      #1a3550;
    --azul-midnight:  #142a40;
    --steel:          #5B7F93;
    --celeste:        #A8C5D8;
    --blanco:         #FFFFFF;
    --gris-bg:        #F5F7FA;
    --gris-text:      #333333;
    --gris-mid:       #6B7280;
    --gris-light:     #9CA3AF;
    --borde:          #E5E7EB;
    --borde-focus:    #A8C5D8;
    --verde-ok:       #16A34A;
    --verde-ok-bg:    #F0FDF4;
    --rojo-err-bg:    #FEF2F2;

    --ff-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ff-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;

    --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --w-max: 1100px;
    --r:  8px;
    --r-lg: 14px;
}

/* ==========================================
   RESET
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.landing-v2 {
    font-family: var(--ff-body);
    color: var(--gris-text);
    background: var(--blanco);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--rojo); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--rojo-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}
.container {
    max-width: var(--w-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.cursor {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--blanco);
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: -3px;
    transition: transform 0.1s;
}
.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    position: absolute;
    top: -18px;
    left: -18px;
    transition: transform 0.15s var(--ease-out), width 0.3s, height 0.3s, top 0.3s, left 0.3s, border-color 0.3s;
}
.cursor--hover .cursor-ring {
    width: 56px;
    height: 56px;
    top: -28px;
    left: -28px;
    border-color: rgba(204, 18, 49, 0.6);
}
@media (pointer: fine) {
    .cursor { display: block; }
    body.landing-v2 { cursor: none; }
    body.landing-v2 a, body.landing-v2 button, body.landing-v2 input,
    body.landing-v2 select, body.landing-v2 label { cursor: none; }
}

/* ==========================================
   NAV
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav--scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav__inner {
    max-width: var(--w-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: height 0.3s;
}
.nav--scrolled .nav__inner { height: 60px; }
.nav__brand {
    font-family: var(--ff-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--blanco) !important;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.nav--scrolled .nav__brand { color: var(--azul) !important; }
.nav__brand-accent { color: var(--rojo) !important; }
.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8) !important;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.2s;
}
.nav--scrolled .nav__link { color: var(--steel) !important; }
.nav__link:hover { color: var(--blanco) !important; }
.nav--scrolled .nav__link:hover { color: var(--azul) !important; }
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: width 0.25s var(--ease-out);
}
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
    background: var(--rojo);
    color: var(--blanco) !important;
    padding: 8px 22px;
    border-radius: var(--r);
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
    background: var(--rojo-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--rojo-glow);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 24px 80px;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--azul) 0%, var(--azul-deep) 40%, var(--azul-midnight) 100%);
}
.hero__particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(168,197,216,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(168,197,216,0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(168,197,216,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(168,197,216,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 80%, rgba(168,197,216,0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 20% 90%, rgba(168,197,216,0.18) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 15%, rgba(168,197,216,0.22) 0%, transparent 100%);
}
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    pointer-events: none;
}
.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: var(--celeste);
    top: -15%;
    right: -8%;
}
.hero__orb--2 {
    width: 350px;
    height: 350px;
    background: var(--rojo);
    bottom: 10%;
    left: -5%;
    opacity: 0.05;
}
.hero__orb--3 {
    width: 250px;
    height: 250px;
    background: var(--celeste);
    top: 40%;
    right: 15%;
    opacity: 0.04;
}
.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}
.hero__badge {
    display: inline-block;
    background: rgba(204,18,49,0.15);
    border: 1px solid rgba(204,18,49,0.3);
    color: rgba(255,255,255,0.9);
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.hero__title {
    font-family: var(--ff-heading);
    color: var(--blanco);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
}
.hero__title-line {
    display: block;
    font-size: clamp(3.2rem, 8vw, 6rem);
}
.hero__title-amp {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--rojo);
    font-style: italic;
    font-weight: 400;
    margin: 4px 0;
    opacity: 0.8;
}
.hero__claim {
    font-family: var(--ff-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--celeste);
    font-weight: 400;
    margin-bottom: 48px;
    letter-spacing: 0.3px;
}
.hero__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 48px;
}
.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
}
.hero__meta-item svg { color: var(--celeste); flex-shrink: 0; }
.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--rojo);
    color: var(--blanco) !important;
    padding: 18px 42px;
    border-radius: var(--r);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    letter-spacing: 0.3px;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.2s;
}
.hero__cta:hover {
    background: var(--rojo-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--rojo-glow);
    color: var(--blanco) !important;
}
.hero__cta svg {
    transition: transform 0.2s;
}
.hero__cta:hover svg {
    transform: translateX(4px);
}
.hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}
.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--celeste), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50%      { opacity: 0.8; transform: scaleY(1); }
}

/* ==========================================
   SECTION COMMON
   ========================================== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--rojo);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--ff-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--azul);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-title em {
    font-style: italic;
    color: var(--rojo);
}
.section-subtitle {
    color: var(--steel);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ==========================================
   ABOUT
   ========================================== */
.about {
    padding: 120px 0 100px;
}
.about__header {
    text-align: center;
    margin-bottom: 40px;
}
.about__text {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}
.about__lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--azul);
    font-weight: 500;
    margin-bottom: 16px;
}
.about__body {
    color: var(--gris-mid);
    font-size: 1rem;
    line-height: 1.8;
}
.about__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.about__card {
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: var(--r-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.about__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(43,74,107,0.1);
}
.about__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(168,197,216,0.15), rgba(43,74,107,0.08));
    border-radius: 16px;
    color: var(--azul);
    margin-bottom: 20px;
}
.about__card-number {
    display: block;
    font-family: var(--ff-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--rojo);
    line-height: 1;
    margin-bottom: 8px;
}
.about__card-label {
    display: block;
    font-size: 0.88rem;
    color: var(--steel);
    font-weight: 500;
}

/* ==========================================
   PROGRAMA / TIMELINE
   ========================================== */
.programa {
    padding: 100px 0 120px;
    background: var(--gris-bg);
}
.programa__header {
    text-align: center;
    margin-bottom: 64px;
}
.timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}
.timeline__line {
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--borde);
    border-radius: 2px;
    overflow: hidden;
}
.timeline__line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--celeste), var(--azul), var(--rojo));
    border-radius: 2px;
    transition: height 0.1s linear;
}
.timeline__item {
    position: relative;
    padding-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
    position: absolute;
    left: -60px;
    top: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline__marker-dot {
    width: 12px;
    height: 12px;
    background: var(--celeste);
    border-radius: 50%;
    border: 3px solid var(--blanco);
    box-shadow: 0 0 0 2px var(--celeste);
    transition: transform 0.3s var(--ease-spring), background 0.3s, box-shadow 0.3s;
    z-index: 1;
}
.timeline__item--highlight .timeline__marker-dot {
    background: var(--rojo);
    box-shadow: 0 0 0 2px var(--rojo), 0 0 12px var(--rojo-glow);
}
.timeline__marker-dot--end {
    background: var(--azul) !important;
    box-shadow: 0 0 0 2px var(--azul) !important;
}
.timeline__item:hover .timeline__marker-dot {
    transform: scale(1.3);
}
.timeline__time {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rojo);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: var(--ff-body);
}
.timeline__card {
    background: var(--blanco);
    border-radius: var(--r-lg);
    padding: 24px 28px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.timeline__card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 32px rgba(43,74,107,0.08);
}
.timeline__card--end {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.timeline__card--end:hover {
    transform: none;
    box-shadow: none;
}
.timeline__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gris-bg);
    border-radius: 12px;
    color: var(--steel);
    margin-bottom: 12px;
}
.timeline__card-icon--accent {
    background: rgba(204,18,49,0.06);
    color: var(--rojo);
}
.timeline__card h3 {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    color: var(--azul);
    font-weight: 700;
    margin-bottom: 6px;
}
.timeline__card p {
    font-size: 0.9rem;
    color: var(--gris-mid);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   REGISTRO / FORMULARIO
   ========================================== */
.registro {
    padding: 120px 0;
}
.registro__header {
    text-align: center;
    margin-bottom: 48px;
}
.form-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--blanco);
    border-radius: var(--r-lg);
    padding: 48px;
    box-shadow: 0 4px 24px rgba(43,74,107,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--borde);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Field */
.field {
    margin-bottom: 24px;
    position: relative;
}
.field__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul);
    margin-bottom: 6px;
    transition: color 0.2s;
}
.field__req { color: var(--rojo); }
.field__input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--borde);
    border-radius: var(--r);
    font-family: var(--ff-body);
    font-size: 0.95rem;
    color: var(--gris-text);
    background: var(--blanco);
    transition: border-color 0.25s, box-shadow 0.25s;
    appearance: none;
    -webkit-appearance: none;
}
.field__input--select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.field__input:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(43,74,107,0.08);
}
.field__bar {
    position: absolute;
    bottom: 24px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--azul);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
    border-radius: 1px;
    pointer-events: none;
}
.field__input:focus ~ .field__bar {
    transform: scaleX(1);
}
.field__error {
    display: block;
    min-height: 18px;
    font-size: 0.78rem;
    color: var(--rojo);
    padding-top: 4px;
    transition: opacity 0.2s;
    opacity: 0;
}
.field--error .field__error { opacity: 1; }
.field--error .field__input {
    border-color: var(--rojo);
    box-shadow: 0 0 0 3px rgba(204,18,49,0.06);
}
.field--error .field__bar {
    background: var(--rojo);
}
.field--valid .field__input {
    border-color: var(--verde-ok);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.06);
}
.field--valid .field__bar {
    background: var(--verde-ok);
    transform: scaleX(1);
}

/* Radios */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}
.radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--r);
    transition: background 0.2s;
    font-size: 0.92rem;
}
.radio:hover { background: var(--gris-bg); }
.radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.radio__mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--borde);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.radio__mark::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rojo);
    transform: scale(0);
    transition: transform 0.2s var(--ease-spring);
}
.radio input:checked + .radio__mark {
    border-color: var(--rojo);
}
.radio input:checked + .radio__mark::after {
    transform: scale(1);
}
.radio input:focus-visible + .radio__mark {
    box-shadow: 0 0 0 3px rgba(204,18,49,0.15);
}
.radio__text {
    color: var(--gris-text);
}

/* Checkboxes */
.check-group { margin-bottom: 16px; }
.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--r);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--gris-mid);
}
.check:hover { background: var(--gris-bg); }
.check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.check__mark {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid var(--borde);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}
.check__mark svg {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.15s, transform 0.2s var(--ease-spring);
    color: var(--blanco);
}
.check input:checked + .check__mark {
    background: var(--rojo);
    border-color: var(--rojo);
    transform: scale(1.05);
}
.check input:checked + .check__mark svg {
    opacity: 1;
    transform: scale(1);
}
.check input:focus-visible + .check__mark {
    box-shadow: 0 0 0 3px rgba(204,18,49,0.15);
}
.check__text a {
    color: var(--rojo);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.form-divider {
    border: none;
    height: 1px;
    background: var(--borde);
    margin: 12px 0 24px;
}

/* Messages */
.form-msg {
    padding: 14px 18px;
    border-radius: var(--r);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}
.form-msg--error {
    background: var(--rojo-err-bg);
    color: #991B1B;
    border: 1px solid #FECACA;
}
.form-msg--success {
    background: var(--verde-ok-bg);
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* Submit button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px;
    background: var(--rojo);
    color: var(--blanco);
    border: none;
    border-radius: var(--r);
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.3s, background 0.2s;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}
.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.btn-submit:hover:not(:disabled)::before {
    transform: translateX(100%);
}
.btn-submit:hover:not(:disabled) {
    background: var(--rojo-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px var(--rojo-glow);
}
.btn-submit:disabled {
    opacity: 0.7;
}
.btn-submit__loading,
.btn-submit__success {
    align-items: center;
    gap: 8px;
}
/* hidden attribute must win — fixes mobile showing all states */
.btn-submit__loading,
.btn-submit__success {
    display: none;
}
.btn-submit__loading.is-active,
.btn-submit__success.is-active {
    display: inline-flex;
}
.btn-submit__text.is-hidden,
.btn-submit__loading:not(.is-active),
.btn-submit__success:not(.is-active) {
    display: none;
}
.btn-submit--success {
    background: var(--verde-ok) !important;
}
.spinner {
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success */
.success {
    text-align: center;
    padding: 48px 20px;
}
.success__icon {
    color: var(--rojo);
    margin-bottom: 24px;
    animation: successPop 0.5s var(--ease-spring);
}
@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.success__title {
    font-family: var(--ff-heading);
    font-size: 1.8rem;
    color: var(--azul);
    margin-bottom: 14px;
}
.success__text {
    color: var(--gris-mid);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto;
}
.success__divider {
    width: 40px;
    height: 2px;
    background: var(--celeste);
    margin: 24px auto;
}
.success__contact {
    font-size: 0.9rem;
    color: var(--gris-light);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--azul);
    color: rgba(255,255,255,0.7);
    padding: 56px 0 32px;
}
.footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
}
.footer__brand {
    font-family: var(--ff-heading);
    font-size: 1.1rem;
    color: var(--blanco);
}
.footer__brand strong { color: var(--rojo); }
.footer__brand-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}
.footer__logo img {
    max-height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}
.footer__inst {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}
.footer__logos-inst {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 8px;
}
.footer__logos-inst img {
    max-height: 40px;
    width: auto;
}
.footer__link {
    color: var(--celeste) !important;
    font-size: 0.95rem;
}
.footer__link:hover { color: var(--blanco) !important; }
.footer__sep {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--celeste), transparent);
    opacity: 0.2;
    margin-bottom: 24px;
}
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}
.footer__legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer__bottom a {
    color: rgba(255,255,255,0.35) !important;
}
.footer__bottom a:hover {
    color: var(--blanco) !important;
}

/* ==========================================
   GSAP INITIAL STATES
   ========================================== */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}
[data-animate="timeline"] {
    opacity: 0;
    transform: translateY(20px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 20px 80px;
    }
    .hero__title-line { font-size: 2.8rem; }
    .hero__title-amp { font-size: 1.6rem; }
    .hero__meta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero__scroll-hint { display: none; }

    .nav__links { gap: 16px; }
    .nav__link:not(.nav__link--cta) { display: none; }

    .about { padding: 80px 0 60px; }
    .about__cards {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .programa { padding: 80px 0; }
    .timeline { padding-left: 48px; }
    .timeline__line { left: 14px; }
    .timeline__marker { left: -48px; }

    .registro { padding: 80px 0; }
    .form-card {
        padding: 28px 20px;
        margin: 0 -4px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title-line { font-size: 2.2rem; }
    .hero__cta {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
    }
    .form-card {
        padding: 24px 16px;
        border-radius: var(--r);
    }
}

/* ==========================================
   COOKIE BANNER (LSSI)
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--blanco);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
}
.cookie-banner.is-visible {
    transform: translateY(0);
}
.cookie-banner__inner {
    max-width: var(--w-max);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.cookie-banner__text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--gris-mid);
    line-height: 1.6;
}
.cookie-banner__text strong {
    color: var(--azul);
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
}
.cookie-banner__text a {
    color: var(--rojo);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}
.cookie-btn {
    font-family: var(--ff-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--r);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--accept {
    background: var(--rojo);
    color: var(--blanco);
}
.cookie-btn--accept:hover { background: var(--rojo-dark); }
.cookie-btn--reject {
    background: var(--gris-bg);
    color: var(--gris-text);
    border: 1px solid var(--borde);
}
.cookie-btn--reject:hover { background: var(--borde); }
.cookie-btn--config {
    background: none;
    color: var(--steel);
    padding: 10px 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* Cookie config panel */
.cookie-config {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--borde);
}
.cookie-config.is-open { display: block; }
.cookie-config__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
}
.cookie-config__item span { color: var(--gris-text); }
.cookie-config__item small { color: var(--gris-light); font-size: 0.78rem; margin-left: 8px; }
.cookie-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--borde);
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    padding: 0;
    flex-shrink: 0;
}
.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--blanco);
    border-radius: 50%;
    transition: transform 0.2s;
}
.cookie-toggle.is-on { background: var(--rojo); }
.cookie-toggle.is-on::after { transform: translateX(18px); }
.cookie-toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.cookie-config__save {
    margin-top: 12px;
}
@media (max-width: 768px) {
    .cookie-banner__inner {
        flex-direction: column;
    }
    .cookie-banner__actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .cookie-btn--accept,
    .cookie-btn--reject {
        flex: 1;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .cursor { display: none !important; }
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
    .timeline__item {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero__scroll-line { animation: none; opacity: 0.5; }
}
