:root {
  --acento: #E3006F; --tinta: #111111; --fondo: #ffffff; --sobre-acento: #ffffff;
  --g50: #f7f7f8; --g100: #efeff1; --g200: #e3e4e7; --g400: #a2a4aa; --g600: #63656b;
  --curva: cubic-bezier(.2,.8,.2,1); --t: 220ms var(--curva);
  --sombra: 0 10px 24px -12px rgba(17,18,20,.14); --sombra-hover: 0 16px 32px -14px rgba(17,18,20,.22);
  --gutter: clamp(16px, 4.5vw, 96px);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Montserrat, system-ui, sans-serif; color: var(--tinta); background: var(--fondo); -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
img { display: block; max-width: 100%; }
.ic { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.envoltura { width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 6px; }
.barra { height: 64px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.barra img { width: 32px; height: 32px; }
.barra a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.paso { display: none; animation: entra 480ms var(--curva) both; padding-bottom: 120px; }
.paso.on { display: block; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
h1 { margin: 18px 0 6px; font-size: clamp(28px, 5vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
h1 em { font-style: normal; color: var(--acento); }
.sub { font-size: 14px; color: var(--g600); margin: 0; }
.desde { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 6px 14px 6px 6px; border: 1px solid var(--g200); border-radius: 999px; font-size: 12.5px; }
.desde img { height: 26px; width: auto; }
.desde:empty { display: none; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; margin-top: 28px; }
.cand { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.cand .marco { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--g100); transition: box-shadow var(--t), transform var(--t); }
.cand:hover .marco { transform: translateY(-3px); box-shadow: var(--sombra-hover); }
.cand img { width: 100%; height: 100%; object-fit: cover; }
.cand .marca { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--acento); color: var(--sobre-acento); display: grid; place-items: center; transform: scale(0); transition: transform 300ms var(--curva); }
.cand .marca .ic { width: 13px; height: 13px; }
.cand.on .marco { box-shadow: 0 0 0 3px var(--acento); }
.cand.on .marca { transform: scale(1); }
.cand b { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.cand span { font-size: 12px; color: var(--g600); }
.abajo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--fondo); border-top: 1px solid var(--g200); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; transform: translateY(110%); transition: transform 360ms var(--curva); }
.abajo.on { transform: none; }
.abajo .eleccion { font-size: 13px; color: var(--g600); }
.abajo .eleccion b { display: block; color: var(--tinta); font-size: 15px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--g200); background: var(--fondo); color: var(--tinta); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: filter var(--t), transform var(--t), border-color var(--t); }
.btn:hover { border-color: var(--g400); }
.btn:active { transform: translateY(1px); }
.btn.solido { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); }
.btn.solido:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .45; pointer-events: none; }
.abajo .btn { margin-left: auto; }
.tarjeta { max-width: 420px; margin: 28px 0 0; }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 12px; font-weight: 600; color: var(--g600); margin-bottom: 6px; }
.tel { display: flex; border: 1px solid var(--g200); border-radius: 10px; overflow: hidden; transition: border-color var(--t); }
.tel:focus-within { border-color: var(--acento); }
.tel span { display: grid; place-items: center; padding: 0 12px; background: var(--g50); font-size: 15px; font-weight: 500; color: var(--g600); }
.tel input { flex: 1; min-width: 0; height: 48px; border: 0; padding: 0 12px; font-size: 18px; letter-spacing: .06em; outline: none; box-shadow: none; background: var(--fondo); }
.codigo { display: flex; gap: 10px; }
.codigo input { width: 56px; height: 64px; border: 1px solid var(--g200); border-radius: 12px; text-align: center; font-size: 26px; font-weight: 600; outline: none; box-shadow: none; transition: border-color var(--t); }
.codigo input:focus { border-color: var(--acento); }
.mini { font-size: 12px; color: var(--g600); line-height: 1.5; margin: 12px 0 0; }
.ok { text-align: center; padding-top: 6vh; }
.ok svg.check { width: 112px; height: 112px; }
.ok .circ { fill: none; stroke: var(--acento); stroke-width: 4; stroke-dasharray: 302; stroke-dashoffset: 302; animation: traza 700ms var(--curva) 150ms forwards; }
.ok .pal { fill: none; stroke: var(--acento); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: traza 420ms var(--curva) 760ms forwards; }
@keyframes traza { to { stroke-dashoffset: 0; } }
.ok h1 { margin-top: 20px; }
.ok .sub { max-width: 420px; margin: 8px auto 0; }
.ok .acciones { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.gracias { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 36px; font-size: 12px; color: var(--g600); }
.gracias img { height: 40px; width: auto; }
.aviso { position: fixed; left: 50%; bottom: 96px; z-index: 30; background: var(--tinta); color: var(--fondo); padding: 10px 16px; border-radius: 999px; font-size: 13px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t); }
.aviso.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 520px) { .rejilla { grid-template-columns: repeat(2, 1fr); } .codigo input { width: 52px; height: 58px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .ok .circ, .ok .pal { stroke-dashoffset: 0; } }
