/* Asimilación AF — sistema visual: «parte oficial» sobre papel crema, verde oliva y lima del afiche */
:root {
  --olive-900: #1c230d;
  --olive-800: #263013;
  --olive-700: #343b18;
  --olive-500: #5f673a;
  --sage: #848a60;
  --lime: #dee42b;
  --lime-soft: #eef27a;
  --cream-50: #f6f5e6;
  --cream-100: #eceac9;
  --cream-200: #d9dab0;
  --line: #cfcea4;
  --ink: #1d2210;
  --ink-soft: #4f5436;
  --danger: #a3341f;
  --danger-bg: #f7dfd7;
  --ok: #3f6b1f;
  --ok-bg: #e0efc6;
  --warn-bg: #f6ecb5;
  --radius: 14px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.55 var(--font-body);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(222,228,43,.14), transparent 60%),
    var(--cream-50);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--olive-500); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; line-height: 1.02; margin: 0 0 .5em; color: var(--olive-800); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }

/* Masthead */
.masthead { background: var(--olive-800); color: var(--cream-50); position: relative; overflow: hidden; border-bottom: 4px solid var(--lime); }
.masthead::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 220px; opacity: .22;
  background: repeating-linear-gradient(135deg, var(--sage) 0 10px, transparent 10px 26px);
  mask-image: linear-gradient(90deg, #000, transparent);
}
.masthead .wrap { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; position: relative; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.brand-text { line-height: 1.05; }
.brand-text b { font: 800 1.35rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; display: block; }
.brand-text span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.masthead nav { margin-left: auto; display: flex; gap: .5rem; align-items: center; font-size: .95rem; }
.masthead nav form { margin: 0; }
.who { opacity: .8; font-size: .85rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; cursor: pointer;
  font: 700 1rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: .8rem 1.5rem; border-radius: 10px; border: 2px solid var(--olive-800);
  background: var(--olive-800); color: var(--lime); transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--lime); color: var(--olive-800); transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(38,48,19,.55); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--olive-800); }
.btn.ghost:hover { background: var(--olive-800); color: var(--lime); }
.btn.lime { background: var(--lime); color: var(--olive-800); border-color: var(--lime); }
.btn.lime:hover { background: var(--lime-soft); border-color: var(--lime-soft); }
.masthead .btn { padding: .45rem .9rem; font-size: .9rem; border-color: var(--sage); background: transparent; color: var(--cream-50); }
.masthead .btn:hover { background: var(--lime); color: var(--olive-800); border-color: var(--lime); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }

/* Hero */
.hero { background: var(--olive-800); color: var(--cream-50); position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(222,228,43,.08); }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px); }
.hero .wrap { position: relative; display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr; align-items: center; }
.hero h1 { color: var(--cream-50); margin-bottom: .2em; }
.hero h1 em { font-style: normal; color: var(--lime); display: block; }
.hero p.lead { font-size: 1.15rem; max-width: 34ch; opacity: .9; margin: 0 0 1.6rem; }
.hero .escudos { display: flex; justify-content: center; gap: 1.5rem; }
.hero .escudos img {
  height: clamp(130px, 20vw, 210px); padding: 14px; border-radius: 50%; /* disco crema: los laureles verdes no se pierden sobre el oliva */
  background: radial-gradient(circle, var(--cream-50) 0 66%, rgba(246,245,230,.0) 67%);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.hero .escudos img:nth-child(2) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.lema { margin-top: 2rem; font: 700 .85rem var(--font-display); letter-spacing: .35em; text-transform: uppercase; color: var(--lime); opacity: .9; }
.cierre { display: inline-block; background: var(--lime); color: var(--olive-800); font: 800 .95rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 6px; margin-bottom: 1rem; }

/* Línea de tiempo */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: -2.2rem auto 0; position: relative; z-index: 2; background: var(--cream-50); border-radius: var(--radius); box-shadow: 0 20px 40px -24px rgba(38,48,19,.6); border: 1px solid var(--line); overflow: hidden; }
.timeline div { padding: 1.1rem 1.3rem; border-right: 1px solid var(--line); }
.timeline div:last-child { border-right: 0; }
.timeline small { display: block; font: 700 .8rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.timeline b { font: 700 1.25rem var(--font-display); text-transform: uppercase; color: var(--olive-800); }

section.block { padding: 3.5rem 0 1rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vacantes { background: #fff9; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.vacantes header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--olive-800); margin-bottom: .6rem; }
.vacantes header span { font: 700 .9rem var(--font-display); letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; }
.vacantes ul { list-style: none; margin: 0; padding: 0; }
.vacantes li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.vacantes li b { font-family: var(--font-display); font-size: 1.2rem; color: var(--olive-700); }
.vacantes small { color: var(--sage); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; display: block; line-height: 1; }

/* Página interior */
main { flex: 1; padding: 2.5rem 0 4rem; }
.crumb { font: 700 .85rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: .4rem; }
.card { background: #fffffa; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 1px 0 #fff inset, 0 18px 30px -26px rgba(38,48,19,.6); }
.card + .card { margin-top: 1.25rem; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; counter-reset: s; }
.step { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; background: #fffffa; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; transition: transform .15s ease, border-color .15s ease; }
.step.open:hover { transform: translateX(4px); border-color: var(--olive-500); }
.step .n { width: 56px; height: 56px; display: grid; place-items: center; font: 800 1.9rem var(--font-display); border-radius: 12px; background: var(--olive-800); color: var(--lime); }
.step.done .n { background: var(--lime); color: var(--olive-800); }
.step.locked { opacity: .55; }
.step.locked .n { background: var(--cream-200); color: var(--sage); }
.step h3 { margin: 0 0 .15em; font-size: 1.3rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Chips / avisos */
.chip { display: inline-block; font: 700 .8rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; background: var(--cream-200); color: var(--olive-700); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: #6b5b00; }
.chip.bad { background: var(--danger-bg); color: var(--danger); }
.aviso { border-left: 5px solid var(--olive-500); background: var(--cream-100); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; margin: 0 0 1.25rem; }
.aviso.bad { border-color: var(--danger); background: var(--danger-bg); }
.aviso.ok { border-color: var(--ok); background: var(--ok-bg); }
.aviso ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.messages { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.messages li { padding: .8rem 1.1rem; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 600; margin-bottom: .5rem; }
.messages li.info { background: var(--warn-bg); color: #6b5b00; }
.messages li.error { background: var(--danger-bg); color: var(--danger); }

/* Formularios */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font: 700 .85rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--olive-700); margin-bottom: .3rem; }
.field input, .field select { width: 100%; padding: .7rem .85rem; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { border-color: var(--olive-500); box-shadow: 0 0 0 4px rgba(222,228,43,.35); }
.field .help { font-size: .82rem; color: var(--sage); margin-top: .25rem; }
.field .err { color: var(--danger); font-size: .88rem; font-weight: 600; margin-top: .25rem; }
.field.check label { display: flex; gap: .7rem; align-items: flex-start; text-transform: none; letter-spacing: 0; font: 400 .95rem var(--font-body); color: var(--ink); }
.field.check input { width: auto; margin-top: .3rem; }
fieldset.sep { border: 0; border-top: 2px solid var(--olive-800); margin: 1.6rem 0 0; padding: .6rem 0 0; }
fieldset.sep legend { font: 800 1.2rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--olive-800); padding-right: .8rem; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; align-items: center; }

/* Declaraciones sí/no */
.decl { padding: 1rem 0; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.decl p { margin: 0; }
.decl.bad p { color: var(--danger); font-weight: 600; }
.yn { justify-self: start; display: inline-flex; border: 2px solid var(--olive-800); border-radius: 10px; overflow: hidden; }
.yn > div { display: flex; }  /* Django 5 renderiza los radios como <div><div><label>… */
.yn label { display: block; cursor: pointer; font: 700 .95rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: .45rem 1.1rem; margin: 0; color: var(--olive-800); }
.yn input { position: absolute; opacity: 0; }
.yn > div > div + div label { border-left: 2px solid var(--olive-800); }
.yn input:checked + span, .yn label:has(input:checked) { background: var(--olive-800); color: var(--lime); }
.yn label:has(input[value="0"]:checked) { background: var(--danger); color: #fff; }
.yn label:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: -3px; }

/* Documentos */
.doc { display: grid; grid-template-columns: 52px 1fr auto; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.doc .item { font: 800 1.5rem var(--font-display); color: var(--sage); text-align: center; }
.doc h3 { font-size: 1.15rem; margin-bottom: .2em; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 700; }
.doc p { margin: .15rem 0; color: var(--ink-soft); font-size: .93rem; }

.auth-card { margin: 1rem auto 0; max-width: 520px; }
footer { background: var(--olive-900); color: var(--cream-100); padding: 2rem 0; font-size: .9rem; margin-top: auto; }
footer .wrap { display: flex; gap: 1.5rem; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer .lema { margin: 0; }
@media (max-width: 800px) {
  .hero .wrap, .cols, .form-grid { grid-template-columns: 1fr; }
  .hero .escudos { order: -1; justify-content: flex-start; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline div:nth-child(2) { border-right: 0; }
  .timeline div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step { grid-template-columns: 52px 1fr; } .step .btn, .step .chip { grid-column: 2; justify-self: start; }
  .decl { grid-template-columns: 1fr; } .brand-text span { display: none; }
  .doc { grid-template-columns: 40px 1fr; } .doc > :last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Verificación: bandeja y expediente */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 .8rem; }
.chip-filtro { text-decoration: none; padding: .35rem .9rem; border-radius: 999px; border: 1.5px solid var(--olive-800); color: var(--olive-800); font: 700 .85rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; transition: background .15s, color .15s; }
.chip-filtro b { margin-left: .3rem; opacity: .7; }
.chip-filtro:hover, .chip-filtro.on { background: var(--olive-800); color: var(--lime); }
.buscador { display: flex; gap: .6rem; margin-bottom: 1.2rem; max-width: 640px; }
.buscador input { flex: 1; padding: .7rem .9rem; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.buscador input:focus { border-color: var(--olive-500); box-shadow: 0 0 0 4px rgba(222,228,43,.35); outline: 0; }
.tabla-wrap { padding: 0; overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabla th { text-align: left; font: 700 .82rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--olive-700); background: var(--cream-100); padding: .8rem 1rem; white-space: nowrap; }
.tabla td { padding: .75rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.tabla tbody tr:hover { background: #f2f4c0aa; }
dl.datos { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; }
dl.datos dt { font: 700 .82rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--sage); padding-top: .15rem; }
dl.datos dd { margin: 0; }
ul.decls { list-style: none; margin: 0; padding: 0; }
ul.decls li { display: grid; grid-template-columns: 38px 1fr; gap: .6rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
ul.decls li span { font: 800 .8rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-align: center; border-radius: 6px; padding: .1rem 0; height: fit-content; background: var(--cream-200); }
ul.decls li.si span { background: var(--ok-bg); color: var(--ok); } ul.decls li.no span { background: var(--danger-bg); color: var(--danger); }
.cols + .card { margin-top: 1.5rem; }
.pie-link { color: var(--cream-200); font-size: .8rem; opacity: .7; }
@media (max-width: 800px) { dl.datos { grid-template-columns: 1fr; gap: 0; } dl.datos dd { margin-bottom: .5rem; } }

/* 2FA */
.codigo-input { font: 800 2rem var(--font-display) !important; letter-spacing: .5em; text-align: center; padding: .6rem !important; }
.pasos-2fa { padding-left: 1.2rem; color: var(--ink-soft); }
.pasos-2fa li { margin-bottom: .35rem; }
.qr { display: grid; place-items: center; padding: 1rem; margin: 1rem 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr img { max-width: 100%; height: auto; image-rendering: pixelated; }
.manual { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .92rem; }
.manual summary { cursor: pointer; color: var(--olive-500); font-weight: 600; }
.manual code { display: block; margin: .6rem 0 .2rem; padding: .7rem 1rem; background: var(--cream-100); border-radius: 8px; font: 700 1.1rem ui-monospace, monospace; letter-spacing: .12em; word-break: break-all; }
.manual small { color: var(--sage); }

/* Campos que se guardan en MAYÚSCULAS: se ven así mientras se escribe */
input.mayus, textarea.mayus { text-transform: uppercase; }
input.mayus::placeholder { text-transform: none; }

/* Cabecera: nombre oficial del proceso y navegación con aire */
.brand-text b { font-size: clamp(1rem, 2.2vw, 1.3rem); max-width: 30rem; line-height: 1.1; }
.masthead nav { gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.masthead nav .who { padding: .35rem .8rem; border-radius: 999px; background: rgba(246,245,230,.1); opacity: 1; color: var(--cream-50); text-decoration: none; }
.masthead nav a.who:hover { background: rgba(246,245,230,.2); }

/* Cuenta regresiva del cierre de inscripciones */
.cuenta { background: var(--olive-900); color: var(--cream-50); border-bottom: 1px solid var(--olive-700); }
.cuenta .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding: .55rem 0; }
.cuenta-etq { font: 700 .85rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-200); }
.cuenta-reloj { display: flex; gap: .5rem; }
.cuenta-reloj span { display: flex; align-items: baseline; gap: .25rem; padding: .15rem .55rem; border-radius: 8px; background: rgba(246,245,230,.08); }
.cuenta-reloj b { font: 800 1.35rem/1 var(--font-display); color: var(--lime); font-variant-numeric: tabular-nums; min-width: 1.4ch; text-align: center; }
.cuenta-reloj small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cuenta.pronto .cuenta-reloj b { color: #ffb4a2; }
.cuenta.cerrada .cuenta-etq::after { content: " — inscripciones cerradas"; color: #ffb4a2; }
@media (max-width: 600px) { .cuenta .wrap { justify-content: center; text-align: center; } }
@media (prefers-reduced-motion: no-preference) { .cuenta { animation: cuenta-in .5s ease-out both; } }
@keyframes cuenta-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

/* ---- Movimiento (personalidad «corporativa»): una curva, tres duraciones ---- */
:root { --ease: cubic-bezier(0.2, 0, 0, 1); --t-rapido: 150ms; --t-normal: 280ms; --t-lento: 420ms; }
.btn { min-height: 44px; transition: transform var(--t-rapido) var(--ease), background var(--t-rapido) var(--ease), color var(--t-rapido) var(--ease), box-shadow var(--t-normal) var(--ease); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn.chico { min-height: 36px; }
input, select, textarea { transition: border-color var(--t-rapido) var(--ease), box-shadow var(--t-rapido) var(--ease); }
.card, .step, .doc, .timeline > div { transition: transform var(--t-normal) var(--ease), box-shadow var(--t-normal) var(--ease), border-color var(--t-normal) var(--ease); }
.step.open:hover, .doc:hover { transform: translateY(-2px); }
.chip { transition: background var(--t-normal) var(--ease); }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--lime); color: var(--olive-800); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { left: .5rem; }
main { scroll-margin-top: 1rem; }

/* Entrada escalonada: lo principal llega primero, el resto en cascada corta (< 400 ms en total) */
@media all {
  main .wrap > *, main .narrow > * { animation: entra var(--t-lento) var(--ease) both; }
  main .wrap > :nth-child(2), main .narrow > :nth-child(2) { animation-delay: 50ms; }
  main .wrap > :nth-child(3), main .narrow > :nth-child(3) { animation-delay: 100ms; }
  main .wrap > :nth-child(4), main .narrow > :nth-child(4) { animation-delay: 150ms; }
  main .wrap > :nth-child(n+5), main .narrow > :nth-child(n+5) { animation-delay: 200ms; }
  .steps > .step { animation: entra var(--t-lento) var(--ease) both; }
  .steps > .step:nth-child(2) { animation-delay: 60ms; } .steps > .step:nth-child(3) { animation-delay: 120ms; } .steps > .step:nth-child(4) { animation-delay: 180ms; }
  .messages li { animation: entra var(--t-normal) var(--ease) both; }
  .mini-progreso i, .grande-barra i, .progreso i { transform-origin: left; animation: crece var(--t-lento) var(--ease) both; animation-delay: 150ms; }
}
@keyframes entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes crece { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Datos personales: ubicación en el mapa */
.ubicacion { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border: 1px dashed var(--sage); border-radius: 12px; background: rgba(222,228,43,.08); }
.ubicacion p { margin: .2rem 0 0; }
.ubic-acciones { display: flex; gap: .5rem; align-items: center; }
.opcional { font-size: .8rem; color: var(--ink-soft); }
.dialogo-mapa { width: min(720px, 94vw); border: 0; border-radius: 16px; padding: 1.2rem; background: #fffffa; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.dialogo-mapa::backdrop { background: rgba(28,35,13,.55); }
.dialogo-mapa[open] { animation: entra var(--t-normal) var(--ease); }
.dialogo-cab { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.dialogo-cab h3 { margin: 0; }
#mapa { height: min(55vh, 420px); border-radius: 12px; border: 1px solid var(--line); margin: .6rem 0; }
.dialogo-pie { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }

/* Ojo de la contraseña */
.pw-caja { position: relative; display: block; width: 100%; max-width: 100%; }
.pw-caja input { width: 100%; padding-right: 3rem !important; }
.pw-ojo { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: #5f673a; cursor: pointer; transition: background .15s ease, color .15s ease; }
.pw-ojo:hover { background: rgba(222,228,43,.35); color: #1c230d; }
.pw-ojo[aria-pressed="true"] { color: #3f6b1f; }

footer .copy { display: inline-block; margin-top: .35rem; opacity: .8; font-size: .8rem; }

/* Transición suave entre páginas (navegadores compatibles) y movimiento más presente */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.masthead .brand img { animation: logo-in 700ms var(--ease) both; }
@keyframes logo-in { from { opacity: 0; transform: scale(.7) rotate(-6deg); } to { opacity: 1; transform: none; } }
.btn:hover { transform: translateY(-2px); }
.formatos-acciones { display: flex; gap: .6rem; flex-wrap: wrap; }
.ver-ejemplo { margin-left: .6rem; font-size: .85rem; font-weight: 600; }
/* «Reducir movimiento» del sistema operativo: no se apaga todo; se sustituye el desplazamiento por fundidos suaves */
@media (prefers-reduced-motion: reduce) {
  @keyframes entra { from { opacity: 0; } to { opacity: 1; } }
  @keyframes crece { from { opacity: 0; } to { opacity: 1; } }
  @keyframes logo-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes cuenta-in { from { opacity: 0; } to { opacity: 1; } }
  .btn:hover, .btn:active, .step.open:hover, .doc:hover, .dropzone.activo { transform: none; }
  html { scroll-behavior: auto; }
}
