/* =====================================================================
   INFOP · Inscripción de Graduación — Estilos
   ===================================================================== */
:root {
    --navy-900: #061a3a;
    --navy-800: #0a2550;
    --navy-700: #12336b;
    --blue-600: #1f56c3;
    --blue-500: #2f6ee6;
    --blue-50:  #eef4ff;
    --gold-500: #f2b632;
    --gold-600: #d99a12;
    --gold-50:  #fff7e3;
    --green-500:#16a34a;
    --red-600:  #dc2626;
    --red-50:   #fef2f2;

    --ink:      #0f1b2d;
    --ink-2:    #43506a;
    --ink-3:    #7a869d;
    --line:     #e2e8f2;
    --surface:  #ffffff;
    --bg:       #f3f6fb;

    --radius:   18px;
    --radius-sm:12px;
    --shadow:   0 1px 2px rgba(10,37,80,.06), 0 12px 40px -12px rgba(10,37,80,.22);
    --ring:     0 0 0 4px rgba(47,110,230,.18);
    --font:     "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }

/* ---------------- HERO ---------------- */
.hero {
    position: relative;
    color: #fff;
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
    padding: 28px 16px 120px;
    overflow: hidden;
    overflow: clip;            /* evita que el foco desplace la sección */
    isolation: isolate;
}
.hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(600px 300px at 85% 10%, rgba(242,182,50,.22), transparent 70%),
        radial-gradient(500px 360px at 0% 100%, rgba(47,110,230,.35), transparent 70%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px);
}
.hero__inner { max-width: 760px; margin: 0 auto; }

/* Barra institucional (logo de Gobierno + INFOP) */
.govbar { background: #fff; border-bottom: 3px solid var(--gold-500); }
.govbar__inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.govbar__logo { display: block; height: 46px; width: auto; }
.govbar__right { display: flex; align-items: center; gap: 14px; }
.govbar__tag {
    font-size: .78rem; font-weight: 800; line-height: 1.25; color: var(--navy-800);
    letter-spacing: .06em; text-transform: uppercase; text-align: right; white-space: nowrap;
    padding-right: 14px; border-right: 2px solid var(--gold-500);
}
.govbar__infop { display: block; height: 52px; width: auto; }

.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.brand__emblem { display: block; flex: none; line-height: 0; }
.brand__emblem img { display: block; height: 68px; width: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); }
.brand__text { padding-left: 14px; border-left: 2px solid rgba(242,182,50,.7); }

/* Mascota en el encabezado */
.hero__mascot { display: none; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(60px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bubbleIn { 0% { opacity: 0; transform: translateY(8px) scale(.85); } 70% { transform: translateY(-2px) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes shadowPulse { 0%, 100% { transform: translateX(-50%) scale(1); opacity: .45; } 50% { transform: translateX(-50%) scale(.82); opacity: .25; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.2rem; letter-spacing: .08em; }
.brand__text span { font-size: .82rem; opacity: .75; }

.hero__eyebrow {
    display: inline-block; margin: 0 0 12px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(242,182,50,.14); color: var(--gold-500);
    font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid rgba(242,182,50,.3);
}
.hero__title {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    line-height: 1.12; font-weight: 800; letter-spacing: -.02em;
}
.hero__welcome p { margin: 0 0 12px; color: rgba(255,255,255,.82); font-size: 1rem; }
.hero__welcome strong { color: #fff; }
.hero__thanks { color: #fff !important; font-weight: 600; }

.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; }
.hero__chips li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    font-size: .86rem; font-weight: 600;
    backdrop-filter: blur(6px);
}
.hero__chips svg { fill: none; stroke: var(--gold-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; }

.hero__cta {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
    height: 50px; padding: 0 24px; border-radius: 14px;
    background: linear-gradient(180deg, #f7c548, var(--gold-500)); color: var(--navy-900);
    font-weight: 800; text-decoration: none;
    box-shadow: 0 12px 26px -10px rgba(242,182,50,.7);
    transition: transform .15s, box-shadow .2s;
}
.hero__cta:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(242,182,50,.8); }
.hero__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero__cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
html { scroll-behavior: smooth; }
#card { scroll-margin-top: 16px; }

/* ---------------- Fondo con fotos (se sincroniza con el slider) ---------------- */
.hero__bgphoto {
    position: absolute; inset: -20px; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.6s ease; mix-blend-mode: luminosity; filter: blur(2px);
}
.hero__bgphoto.is-active { opacity: .2; animation: slowZoom 12s ease-out both; }
.hero__bg { overflow: hidden; overflow: clip; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,26,58,.75) 30%, rgba(6,26,58,.15)); }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ---------------- Slider "Momentos INFOP" ---------------- */
.slider { position: relative; outline: none; }
.slider__frame {
    position: relative; overflow: hidden; overflow: clip; height: 100%;
    border-radius: 22px; border: 5px solid #fff; background: var(--navy-900);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.1);
    isolation: isolate;
}
.slider:focus-visible .slider__frame { box-shadow: 0 0 0 4px var(--gold-500), 0 30px 60px -20px rgba(0,0,0,.65); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; z-index: 0; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide picture, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; transform-origin: 50% 50%; }
.slide.is-active img { animation: kenBurns 7s ease-out both; }
.slide:nth-child(even).is-active img { animation-name: kenBurnsAlt; }
@keyframes kenBurns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes kenBurnsAlt { from { transform: scale(1.14) translate(2%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
.slider__shade {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(6,26,58,.88) 0%, rgba(6,26,58,.45) 22%, rgba(6,26,58,0) 40%, rgba(6,26,58,0) 68%, rgba(6,26,58,.7) 100%);
}
.slider__caption { position: absolute; z-index: 3; left: 18px; right: 60px; top: 16px; color: #fff; }
.slider__badge {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
    padding: 4px 10px; border-radius: 999px; background: var(--gold-500); color: var(--navy-900);
    font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.slider__badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider__title { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.slider__area { display: block; margin-top: 3px; font-size: .85rem; font-weight: 700; color: #ffd772; text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 12px rgba(0,0,0,.6); }
.slider__caption.is-swap .slider__title, .slider__caption.is-swap .slider__area { animation: capIn .6s cubic-bezier(.2,.8,.2,1) both; }
.slider__caption.is-swap .slider__area { animation-delay: .08s; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.slider__zoom, .slider__arrow {
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35); background: rgba(6,26,58,.35); color: #fff; cursor: pointer;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, transform .15s;
}
.slider__zoom:hover, .slider__arrow:hover { background: rgba(255,255,255,.25); }
.slider__zoom:active, .slider__arrow:active { transform: scale(.92); }
.slider__zoom:focus-visible, .slider__arrow:focus-visible, .slider__dot:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.slider__zoom svg, .slider__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slider__zoom { position: absolute; z-index: 3; top: 14px; right: 14px; }
.slider__controls { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; }
.slider__dots { display: flex; gap: 6px; padding: 0 4px; }
.slider__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; overflow: hidden; transition: width .35s cubic-bezier(.2,.8,.2,1), background .2s; }
.slider__dot span { display: block; width: 0; height: 100%; background: var(--gold-500); border-radius: inherit; }
.slider__dot.is-active { width: 30px; background: rgba(255,255,255,.35); }
.slider__dot.is-active span { animation: dotFill var(--slide-ms, 5500ms) linear forwards; }
.slider.is-paused .slider__dot.is-active span { animation-play-state: paused; }
@keyframes dotFill { to { width: 100%; } }
.slider__frame { cursor: grab; touch-action: pan-y; }
.slider__frame.is-dragging { cursor: grabbing; }

/* Lightbox */
.lightbox {
    border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
    margin: 0; color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .25s ease; }
.lightbox::backdrop { background: rgba(4,14,32,.88); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(92vw, 1100px); max-height: 80vh; border-radius: 14px; box-shadow: 0 30px 80px -20px #000; animation: zoomIn .35s cubic-bezier(.2,.8,.2,1); }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 4vh; margin: 0; text-align: center; font-weight: 700; padding: 0 70px; }
.lightbox__cap span { display: block; color: #ffd772; font-weight: 600; font-size: .9rem; }
.lightbox__close, .lightbox__nav {
    position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; margin-top: -24px; }
.lightbox__nav--next { right: 18px; top: 50%; margin-top: -24px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }

/* ---------------- Slider: celular / tablet ---------------- */
@media (max-width: 979px) {
    .hero__inner { display: flex; flex-direction: column; }
    .hero__content { display: contents; }
    .brand { order: 1; } .hero__eyebrow { order: 2; align-self: flex-start; } .hero__title { order: 3; }
    .hero__media { order: 4; margin: 2px 0 24px; }
    .hero__welcome { order: 5; } .hero__chips { order: 6; } .hero__cta { order: 7; align-self: flex-start; }
    .slider { aspect-ratio: 4 / 3.3; }
    .slider__frame { border-width: 4px; border-radius: 20px; }
    .slider__title { font-size: 1.15rem; }
}

/* ---------------- Escritorio: slider + mascota presentadora ---------------- */
@media (min-width: 980px) {
    .hero__inner { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
    .hero__content { max-width: 640px; }
    .hero__media { position: relative; height: 540px; animation: slideInRight .9s cubic-bezier(.2,.8,.2,1) both .15s; }
    .slider { position: absolute; top: 0; right: 0; width: 370px; height: 470px; transform: rotate(2deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
    .slider:hover { transform: rotate(0deg) scale(1.01); }
    .slider__stack::before, .slider__stack::after {
        content: ""; position: absolute; inset: 0; border-radius: 22px; background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.18);
    }
    .slider__stack::before { transform: rotate(-7deg) translate(-14px, 6px); }
    .slider__stack::after { transform: rotate(-3.5deg) translate(-6px, 2px); background: rgba(255,255,255,.16); }
    .slider__caption { left: 22px; top: 20px; }

    .hero__mascot {
        display: block; position: absolute; z-index: 4; left: -64px; bottom: -70px; width: 230px;
    }
    .hero__mascot picture { display: block; position: relative; z-index: 1; }
    .mascot--hero { display: block; width: 100%; height: auto; animation: floaty 4s ease-in-out infinite 1.1s; filter: drop-shadow(0 18px 26px rgba(0,0,0,.45)); cursor: pointer; }
    .hero__mascot:hover .mascot--hero { animation: wave .9s ease-in-out; }
    .hero__shadow { position: absolute; left: 50%; bottom: -6px; width: 150px; height: 16px; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(6px); animation: shadowPulse 4s ease-in-out infinite 1.1s; }
    .hero__bubble {
        position: absolute; z-index: 2; left: 150px; top: 20px; width: 200px;
        background: #fff; color: var(--navy-900); padding: 11px 14px; border-radius: 16px 16px 16px 4px;
        font-size: .86rem; font-weight: 600; line-height: 1.35;
        box-shadow: 0 14px 30px -10px rgba(0,0,0,.55);
        animation: bubbleIn .6s cubic-bezier(.2,.8,.2,1) both 1.2s, bubbleOut .5s ease forwards 9s;
    }
    .hero__mascot:hover .hero__bubble { animation: bubbleIn .4s cubic-bezier(.2,.8,.2,1) both; }
    .hero__bubble strong { color: var(--blue-600); }
    .hero__bubble::after { content: ""; position: absolute; left: -8px; bottom: 10px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
    .hero__media--solo { height: 480px; }
    .hero__media--solo .hero__mascot { left: 50%; transform: translateX(-50%); width: 290px; bottom: -80px; }
    .hero { padding-bottom: 140px; }
}
@keyframes bubbleOut { to { opacity: 0; transform: translateY(-6px) scale(.9); visibility: hidden; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg) translateY(-6px); } 50% { transform: rotate(4deg) translateY(-10px); } 75% { transform: rotate(-3deg) translateY(-4px); } }

/* ---------------- CARD ---------------- */
.wrap { max-width: 760px; margin: -84px auto 0; padding: 0 16px 40px; position: relative; z-index: 2; }
.card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px clamp(18px, 4vw, 40px) 32px;
    border: 1px solid rgba(226,232,242,.8);
}

/* Guía (mascota que comenta cada paso) */
.guide { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.guide__avatar {
    flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 50% 35%, #fff6dc, #f7d27a);
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold-500), 0 8px 18px -8px rgba(10,37,80,.5);
}
.guide__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 90%; }
.guide__avatar.is-talk img { animation: talk .6s ease-in-out; }
@keyframes talk { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg) scale(1.06); } 60% { transform: rotate(6deg) scale(1.04); } }
.guide__bubble {
    position: relative; flex: 1; margin: 0;
    background: var(--blue-50); border: 1px solid #d5e2fb; color: var(--navy-900);
    padding: 11px 16px; border-radius: 16px; font-size: .95rem; font-weight: 500; line-height: 1.4;
}
.guide__bubble::before {
    content: ""; position: absolute; left: -8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
    background: var(--blue-50); border-left: 1px solid #d5e2fb; border-bottom: 1px solid #d5e2fb; transform: rotate(45deg);
}
.guide__bubble strong { color: var(--blue-600); }
.guide__bubble.is-new { animation: bubbleIn .45s cubic-bezier(.2,.8,.2,1); }
.guide.is-error .guide__bubble { background: #fff4f4; border-color: #fbd0d0; }
.guide.is-error .guide__bubble::before { background: #fff4f4; border-color: #fbd0d0; }
.guide.is-error .guide__bubble strong { color: var(--red-600); }
.guide.is-happy .guide__bubble { background: #effaf3; border-color: #c6ecd3; }
.guide.is-happy .guide__bubble::before { background: #effaf3; border-color: #c6ecd3; }
.guide.is-happy .guide__bubble strong { color: var(--green-500); }

/* Mascota asomándose sobre la tarjeta (solo pantallas pequeñas) */
.peek { display: none; }
@media (max-width: 979px) {
    .peek {
        display: block; position: absolute; right: 18px; top: -104px; width: 132px; height: 104px;
        overflow: hidden; pointer-events: none;
    }
    .peek picture { display: block; animation: peekUp .8s cubic-bezier(.2,.9,.25,1.2) both .5s; }
    .peek img { display: block; width: 132px; height: auto; transform-origin: 50% 100%; }
    .peek.is-bob img { animation: bob .6s cubic-bezier(.3,.7,.3,1.4); }
    .peek.is-hide picture { transform: translateY(105%); transition: transform .4s ease; animation: none; }
    .guide__avatar { display: none; }
    .guide__bubble::before { left: auto; right: 54px; top: -8px; margin-top: 0; border: 0; border-left: 1px solid #d5e2fb; border-top: 1px solid #d5e2fb; }
    .guide.is-error .guide__bubble::before, .guide.is-happy .guide__bubble::before { border-left-width: 1px; border-top-width: 1px; border-style: solid; border-right: 0; border-bottom: 0; }
    .wrap { margin-top: -40px; }
    .hero { padding-bottom: 150px; }
}
@keyframes peekUp { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes bob { 0% { transform: translateY(0); } 40% { transform: translateY(-10px) rotate(-3deg); } 100% { transform: translateY(0); } }

/* Stepper */
.stepper { list-style: none; display: flex; justify-content: space-between; gap: 8px; margin: 0 0 14px; padding: 0; }
.stepper__item { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.stepper__item:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 12px; }
.stepper__dot {
    display: grid; place-items: center; flex: none;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--line); font-size: .85rem;
    transition: all .3s ease;
}
.stepper__item.is-active { color: var(--navy-800); }
.stepper__item.is-active .stepper__dot { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: var(--ring); }
.stepper__item.is-done { color: var(--green-500); }
.stepper__item.is-done .stepper__dot { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.stepper__item.is-done:not(:last-child)::after { background: var(--green-500); }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 26px; }
.progress__bar { display: block; height: 100%; width: 33.33%; background: linear-gradient(90deg, var(--blue-500), var(--gold-500)); border-radius: 4px; transition: width .45s cubic-bezier(.4,0,.2,1); }

/* Steps */
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.step.is-active { display: block; animation: stepIn .4s cubic-bezier(.2,.8,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step__title { padding: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; color: var(--navy-900); }
.step__kicker { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 4px; }
.step__hint { color: var(--ink-2); margin: 0 0 24px; }

/* Fields */
.field { margin-bottom: 22px; }
.field--short { max-width: 220px; }
.field label, .field__label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; color: var(--ink); }
.req { color: var(--red-600); }
.input-icon { position: relative; }
.input-icon > svg {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    pointer-events: none; transition: stroke .2s;
}
.input-icon:focus-within > svg { stroke: var(--blue-500); }
input[type=text], input[type=number], select {
    width: 100%; height: 54px;
    padding: 0 16px 0 48px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fbfcfe; font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none; appearance: none;
}
input::placeholder { color: #a5afc2; }
input:focus, select:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); background: #fff; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.is-invalid input, .is-invalid select { border-color: var(--red-600); background: var(--red-50); }
.is-invalid input:focus, .is-invalid select:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.15); }
.field__error { color: var(--red-600); font-size: .85rem; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.field__error:empty { display: none; }
.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

/* Select */
.select { position: relative; }
.select select { padding-left: 16px; padding-right: 46px; cursor: pointer; text-overflow: ellipsis; }
.select::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px;
    border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
    transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
select:disabled { cursor: not-allowed; color: var(--ink-3); background: #f1f4f9; }
#carreraField { transition: opacity .3s; }
#carreraField.is-locked { opacity: .55; }
.pop { animation: pop .45s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { 0% { transform: scale(.98); box-shadow: 0 0 0 0 rgba(47,110,230,.35); } 60% { box-shadow: 0 0 0 8px rgba(47,110,230,0); } 100% { transform: none; } }

/* Area tiles */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.area { position: relative; }
.area input { position: absolute; opacity: 0; pointer-events: none; }
.area label {
    display: flex; flex-direction: column; gap: 10px; height: 100%;
    margin: 0; padding: 16px 14px 14px;
    border: 1.5px solid var(--line); border-radius: 14px; background: #fbfcfe;
    cursor: pointer; font-weight: 600; font-size: .92rem; line-height: 1.25;
    transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.area label:hover { border-color: #b9c8e6; transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(10,37,80,.35); }
.area__icon {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: var(--blue-50); color: var(--blue-600); transition: all .2s;
}
.area__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.area__code { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); }
.area__name { color: var(--ink); }
.area__count { font-size: .76rem; color: var(--ink-3); font-weight: 500; margin-top: auto; }
.area label::after {
    content: ""; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
    border: 1.5px solid var(--line); background: #fff center/14px no-repeat; transition: all .2s;
}
.area input:checked + label {
    border-color: var(--blue-500); background: var(--blue-50);
    box-shadow: 0 0 0 1px var(--blue-500), 0 10px 22px -12px rgba(47,110,230,.6);
}
.area input:checked + label .area__icon { background: var(--blue-500); color: #fff; }
.area input:checked + label::after {
    border-color: var(--blue-500);
    background-color: var(--blue-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.area input:focus-visible + label { box-shadow: var(--ring); border-color: var(--blue-500); }
.is-invalid .area label { border-color: #f3b4b4; }

/* Summary */
.summary { margin: 4px 0 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.summary > div { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 12px; padding: 14px 18px; }
.summary > div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.summary dd { margin: 0; font-weight: 700; color: var(--navy-900); word-break: break-word; }
.link { background: none; border: 0; padding: 4px 6px; color: var(--blue-600); font-weight: 700; font-size: .85rem; cursor: pointer; border-radius: 6px; }
.link:hover { background: var(--blue-50); }

/* Notices */
.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; margin-bottom: 14px; border: 1px solid; }
.notice p { margin: 2px 0 0; color: var(--ink-2); font-size: .94rem; }
.notice__title { display: block; color: var(--ink); }
.notice__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: none; }
.notice__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notice--gold { background: var(--gold-50); border-color: #f6dc9c; }
.notice--gold .notice__icon { background: var(--gold-500); color: var(--navy-900); }
.notice--blue { background: var(--blue-50); border-color: #cddcf8; }
.notice--blue .notice__icon { background: var(--blue-500); color: #fff; }

/* Checkbox */
.check { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ink); }
.check input { position: absolute; opacity: 0; }
.check__box {
    display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px;
    border: 2px solid #b8c3d6; border-radius: 7px; background: #fff; transition: all .2s;
}
.check__box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; transform: scale(0); transition: transform .2s cubic-bezier(.2,.8,.2,1.4); }
.check input:checked + .check__box { background: var(--green-500); border-color: var(--green-500); }
.check input:checked + .check__box svg { transform: scale(1); }
.check input:focus-visible + .check__box { box-shadow: var(--ring); }
.check.is-invalid .check__box { border-color: var(--red-600); }

.form-alert { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--red-50); color: #991b1b; border: 1px solid #fecaca; font-weight: 600; font-size: .93rem; }

/* Buttons */
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 26px; border-radius: 14px; border: 0;
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { background: var(--navy-800); color: #fff; box-shadow: 0 10px 22px -10px rgba(10,37,80,.7); }
.btn--primary:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--ink-2); padding: 0 14px; }
.btn--ghost:hover { background: var(--bg); color: var(--ink); }
.btn--gold { background: linear-gradient(180deg, #f7c548, var(--gold-500)); color: var(--navy-900); box-shadow: 0 12px 26px -10px rgba(217,154,18,.8); min-width: 220px; }
.btn--gold:hover { background: linear-gradient(180deg, #f9cf62, #f4bd3e); }
.btn[disabled] { opacity: .7; cursor: progress; }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(6,26,58,.25); border-top-color: var(--navy-900); animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success */
.success { text-align: center; padding: 14px 0 6px; animation: stepIn .5s cubic-bezier(.2,.8,.2,1); outline: none; }
.success__hero { position: relative; width: 240px; height: 250px; margin: -6px auto 10px; }
.success__rays {
    position: absolute; inset: 0; margin: auto; width: 240px; height: 240px; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(242,182,50,.28) 0 10deg, transparent 10deg 20deg);
    -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
    animation: spin 18s linear infinite;
}
.success__hero picture { position: absolute; left: 50%; bottom: 0; width: 140px; transform: translateX(-50%); }
.mascot--success { display: block; width: 100%; height: auto; transform-origin: 50% 100%; animation: jump 1.1s cubic-bezier(.3,.7,.3,1) .2s both, floaty 3.5s ease-in-out 1.4s infinite; filter: drop-shadow(0 12px 18px rgba(10,37,80,.3)); }
@keyframes jump {
    0% { transform: translateY(40px) scale(.6); opacity: 0; }
    35% { transform: translateY(-36px) scale(1.04, .97); opacity: 1; }
    55% { transform: translateY(0) scale(1.06, .92); }
    70% { transform: translateY(-12px) scale(.98, 1.02); }
    100% { transform: translateY(0) scale(1); }
}
.success__badge { position: absolute; right: 18px; bottom: 26px; width: 58px; height: 58px; background: #fff; border-radius: 50%; box-shadow: 0 8px 18px -6px rgba(22,163,74,.5); animation: bubbleIn .5s cubic-bezier(.2,.8,.2,1) both .9s; }
.success__badge svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success__badge circle { stroke: var(--green-500); stroke-width: 3; fill: #e9f9ef; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s .1s ease forwards; }
.success__badge path { stroke: var(--green-500); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .65s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 800; color: var(--navy-900); }
.success__msg { font-size: 1.08rem; color: var(--ink-2); max-width: 520px; margin: 0 auto 24px; }
.success__ticket {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px; text-align: left;
    background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 auto 20px; max-width: 560px;
}
.success__ticket > div { background: #fbfcfe; padding: 14px 16px; }
.success__ticket span { display: block; font-size: .75rem; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.success__ticket strong { color: var(--navy-900); }
.success__reminder { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* State (cerrado / error) */
.state { text-align: center; padding: 26px 0; }
.state__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.state__icon--warn { background: var(--gold-50); color: var(--gold-600); }
.state h2 { margin: 0 0 6px; }
.state p { color: var(--ink-2); margin: 0; }

.foot { text-align: center; color: var(--ink-3); font-size: .82rem; padding-top: 22px; }
.foot p { margin: 0; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; width: 100%; height: 100%; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 680px) {
    .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary > div { grid-template-columns: 1fr auto; row-gap: 2px; }
    .summary dt { grid-column: 1 / -1; }
    .hide-sm { display: none; }
}
@media (max-width: 520px) {
    .hero { padding-bottom: 150px; }
    .brand { margin-bottom: 24px; }
    .hero__eyebrow { font-size: .7rem; }
    .govbar__logo { height: 32px; }
    .govbar__tag { display: none; }
    .govbar__infop { height: 40px; }
    .govbar__inner { padding: 8px 16px; gap: 10px; }
    .brand__emblem img { height: 58px; }
    .peek { right: 10px; }
    .hero__cta { width: 100%; justify-content: center; }
    .stepper__label { display: none; }
    .stepper__item { flex: 1; }
    .stepper__item:last-child { flex: none; }
    .field--short { max-width: none; }
    .areas { gap: 10px; }
    .area label { padding: 14px 12px 12px; font-size: .88rem; }
    .actions { flex-direction: column-reverse; align-items: stretch; }
    .actions > span:empty { display: none; }
    .btn, .btn--gold { width: 100%; min-width: 0; }
    .success__ticket { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
