/* Zipsite · diseño del formulario. Mismos colores y letras que la web de Zipsite. */
:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --ink: #0E1620; --muted: #566272; --line: #DCE1E8; --line-fuerte: #8C97A6;
  --accent: #1F4BFF; --accent-ink: #FFFFFF; --tint: #E6ECFF; --good: #0F6B42; --error: #B42318;
  --f-display: "Instrument Serif", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --radio: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F16; --surface: #111925; --ink: #EAF0F7; --muted: #9AA8B9; --line: #223042; --line-fuerte: #5B6B80;
    --accent: #7D9BFF; --accent-ink: #0A0F16; --tint: #16233F; --good: #4CC795; --error: #FF8A80; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0A0F16; --surface: #111925; --ink: #EAF0F7; --muted: #9AA8B9; --line: #223042; --line-fuerte: #5B6B80;
    --accent: #7D9BFF; --accent-ink: #0A0F16; --tint: #16233F; --good: #4CC795; --error: #FF8A80; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
a { color: var(--accent); text-underline-offset: .2em; }
h1, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.saltar { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.saltar:focus { top: 12px; }
[hidden] { display: none !important; }

/* barra de arriba */
.arriba { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 16px 20px; }
.logo { display: inline-flex; align-items: center; gap: .16em; font-family: var(--f-body); font-size: 2rem; color: var(--ink); text-decoration: none; }
.logo svg { width: .78em; height: .78em; margin-right: .03em; }
.logo .marca { font-weight: 800; letter-spacing: -0.055em; line-height: 1; display: inline; width: auto; height: auto; border: 0; border-radius: 0; background: none; }
.logo .marca .i { position: relative; display: inline-block; }
.logo .marca .i::after { content: ""; position: absolute; left: 50%; top: 0.115em; width: 0.175em; height: 0.175em; margin-left: -0.0875em; border-radius: 50%; background: var(--accent); }

.arriba-ayuda { font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .arriba-ayuda { display: none; } }

.app { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.cargando { color: var(--muted); padding: 40px 0; }
.cabeza { padding: 12px 0 28px; max-width: 680px; }
.cabeza h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 3.6rem); line-height: 1.02; }
.bajada { margin-top: 12px; color: var(--muted); font-size: 1.05rem; max-width: 54ch; }
.retomado { margin-top: 14px; font-size: .92rem; color: var(--good); }

.cuerpo { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .cuerpo { grid-template-columns: minmax(0, 680px) minmax(0, 340px); justify-content: space-between; } }

/* paso */
.principal { min-width: 0; }
.progreso { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progreso span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s var(--ease); }
.paso-num { margin-top: 18px; font: 500 .78rem/1 var(--f-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.paso-titulo { margin-top: 10px; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); line-height: 1.05; }
.paso-titulo:focus { outline: none; }
.paso-intro { margin-top: 8px; color: var(--muted); }
.paso { margin-top: 26px; display: grid; gap: 14px; }

/* pregunta */
.pregunta { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radio); background: var(--surface); min-width: 0; display: grid; gap: 10px; transition: border-color .2s ease; }
.pregunta.con-error { border-color: var(--error); }
.pregunta.tipo-aviso { background: transparent; border-style: dashed; }
.etiqueta { display: block; font-weight: 650; font-size: 1.04rem; line-height: 1.35; padding: 0; margin: 0; }
.opcional { font-weight: 400; color: var(--muted); font-size: .92rem; }
.ayuda { font-size: .9rem; color: var(--muted); }
.error { font-size: .9rem; color: var(--error); font-weight: 500; }
.error-general { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--error) 10%, var(--surface)); color: var(--error); font-weight: 500; }

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-fuerte);
  border-radius: 10px; padding: 12px 14px; min-height: 50px; transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }

/* opciones (una o varias) */
.opciones { display: grid; gap: 8px; }
@media (min-width: 640px) { .opciones { grid-template-columns: 1fr 1fr; } }
.opcion, .extra, .aviso-check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); transition: border-color .2s ease, background-color .2s ease; line-height: 1.35; }
.opcion input, .extra input, .aviso-check input, .paquete input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.marca { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-fuerte); border-radius: 50%; display: grid; place-items: center; transition: background-color .15s ease, border-color .15s ease; }
.opciones[role=group] .marca, .extra .marca, .aviso-check .marca { border-radius: 6px; }
.opcion:has(input:checked), .extra:has(input:checked) { border-color: var(--accent); background: var(--tint); }
input:checked + .marca { background: var(--accent); border-color: var(--accent); }
input:checked + .marca::after { content: ""; width: 10px; height: 6px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.opcion:has(input:focus-visible), .extra:has(input:focus-visible), .paquete:has(input:focus-visible), .aviso-check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.aviso-check { background: transparent; border: 0; padding: 0; font-size: .95rem; }

/* paquetes */
.paquetes { display: grid; gap: 10px; }
.paquete { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--bg); transition: border-color .2s ease, background-color .2s ease; }
.paquete:has(input:checked) { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 1px var(--accent); }
.paq-nombre { font-weight: 700; font-size: 1.1rem; }
.paq-precio { display: flex; align-items: baseline; gap: 10px; }
.paq-precio b { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.paq-precio s { color: var(--muted); font-size: .95rem; }
.paq-desc { color: var(--muted); font-size: .94rem; }
.paq-nota { font-size: .82rem; color: var(--good); font-weight: 500; }
.sello { position: absolute; top: -11px; right: 14px; background: var(--accent); color: var(--accent-ink); font: 500 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; }

/* extras */
.extras { display: grid; gap: 8px; }
.extra { justify-content: flex-start; flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 560px) { .extra-precio { flex-basis: 100%; padding-left: 34px; font-size: .9rem; } }
.extra-nombre { flex: 1; min-width: 0; }
.extra-precio { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; }
.extra.incluido { opacity: .7; cursor: default; }
.extra.incluido .extra-precio { color: var(--good); font-weight: 500; }

/* archivos */
.archivos { display: grid; gap: 10px; }
.descarga { justify-self: start; font-weight: 600; }
.zona { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border: 1.5px dashed var(--line-fuerte); border-radius: 12px; text-align: center; cursor: pointer; background: var(--bg); transition: border-color .2s ease, background-color .2s ease; }
.zona:hover, .zona.encima { border-color: var(--accent); background: var(--tint); }
.zona-icono svg { width: 28px; height: 28px; color: var(--accent); }
.zona-texto b { color: var(--accent); }
.zona-limite { font-size: .82rem; color: var(--muted); }
.archivos-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.archivo { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.archivo.error { border-color: var(--error); }
.archivo-mini { flex: none; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--tint); display: grid; place-items: center; }
.archivo-mini img { width: 100%; height: 100%; object-fit: cover; }
.archivo-tipo { font: 600 .7rem var(--f-mono); color: var(--accent); }
.archivo-info { flex: 1; min-width: 0; display: grid; }
.archivo-info b { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.archivo-info small { color: var(--muted); font-size: .8rem; }
.archivo.listo small { color: var(--good); }
.quitar { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.quitar:hover { color: var(--error); background: color-mix(in srgb, var(--error) 8%, transparent); }
.quitar svg { width: 18px; height: 18px; }

/* lista de renglones */
.lista { display: grid; gap: 10px; }
.filas { display: grid; gap: 10px; }
.fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num quitar" "celdas celdas"; gap: 6px 10px; align-items: center; padding: 10px 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.fila-num { grid-area: num; }
.fila .quitar { grid-area: quitar; }
.celdas { grid-area: celdas; }
@media (min-width: 760px) { .fila { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num celdas quitar"; align-items: start; padding: 12px; } }
.fila-num { width: 26px; height: 26px; margin-top: 4px; border-radius: 50%; background: var(--tint); color: var(--accent); font: 600 .78rem/26px var(--f-mono); text-align: center; }
.celdas { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.celda { display: grid; gap: 4px; min-width: 0; grid-column: span 2; }
.celda.chico { grid-column: span 1; }
.celda-etiqueta { font-size: .82rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.celda input, .celda select { min-height: 46px; padding: 10px 12px; background: var(--surface); }
.celda-check { display: flex; align-items: center; gap: 8px; min-height: 46px; font-size: .9rem; cursor: pointer; grid-column: span 1; align-self: end; }
.celda-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.celda-archivo { grid-column: span 1; }
.boton-archivo { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 12px; border: 1.5px dashed var(--line-fuerte); border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--accent); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boton-archivo.con { border-style: solid; border-color: var(--good); color: var(--good); }
.boton-archivo { gap: 8px; }
.boton-archivo img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; }
@media (min-width: 760px) {
  .celdas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .celda { grid-column: span 3; }
  .celda.chico, .celda-check, .celda-archivo { grid-column: span 1; }
}
.lista-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contador { font: 500 .8rem var(--f-mono); color: var(--muted); }

/* horario */
.horario { display: grid; gap: 6px; }
.dia { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.dia.cerrado { background: transparent; }
.dia-nombre { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; min-height: 44px; }
.dia-nombre input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { flex: none; width: 40px; height: 24px; border-radius: 99px; background: var(--line-fuerte); position: relative; transition: background-color .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
input:checked + .switch { background: var(--accent); }
input:checked + .switch::after { transform: translateX(16px); }
.dia-nombre:has(input:focus-visible) .switch { outline: 3px solid var(--accent); outline-offset: 2px; }
.horas { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.horas input { width: auto; min-width: 0; min-height: 44px; padding: 8px; background: var(--surface); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .dia { flex-wrap: wrap; row-gap: 4px; padding: 6px 10px 10px 12px; }
  .horas { flex: 1 1 100%; }
  .horas input { flex: 1; }
  .dia.cerrado { padding-bottom: 6px; }
  .dia.cerrado .cerrado-txt { margin-left: auto; }
}
.cerrado-txt { color: var(--muted); font-size: .92rem; padding-right: 10px; }
.enlace { justify-self: start; background: none; border: 0; padding: 8px 0; font: inherit; font-size: .9rem; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 44px; }

/* botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 600 1rem/1 var(--f-body); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .16s var(--ease), background-color .2s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.boton:active { transform: scale(.97); }
.boton.principal { background: var(--accent); color: var(--accent-ink); }
.boton.principal:disabled { opacity: .6; cursor: progress; }
.boton.secundario { background: transparent; color: var(--ink); border-color: var(--line-fuerte); }
.agregar-fila { justify-self: start; min-height: 46px; }
.navegacion { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }

/* cotización en vivo */
.cotizacion { padding: 22px; border-radius: var(--radio); background: var(--ink); color: var(--bg); display: grid; gap: 14px; }
@media (min-width: 1000px) { .cotizacion { position: sticky; top: 24px; } }
.cotizacion h2 { font-size: 1.6rem; }
.cotizacion ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cotizacion li { display: flex; justify-content: space-between; gap: 14px; font-size: .94rem; }
.cotizacion li small { display: block; font-size: .78rem; opacity: .7; }
.cotizacion li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cotizacion .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); }
.cotizacion .total b { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; font-variant-numeric: tabular-nums; }
.cotizacion .anticipo { font-size: .85rem; opacity: .8; }
@media (max-width: 999px) { body:not(.terminado) .cotizacion { order: 2; } }

/* barra fija del celular: paso, total y siguiente */
.barra { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 20px; background: var(--ink); color: var(--bg); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .5); }
.barra-atras { flex: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.barra-atras svg { width: 22px; height: 22px; }
.barra-info { flex: 1; min-width: 0; display: grid; line-height: 1.2; padding-left: 4px; }
.barra-info small { font-size: .78rem; opacity: .75; }
.barra-info b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.barra .boton { min-height: 46px; padding: 0 20px; }
@media (min-width: 1000px) { .barra { display: none; } body { padding-bottom: 40px; } }
@media (max-width: 999px) { .navegacion { display: none; } }
body.terminado .barra { display: none; }

/* final */
.final { display: grid; gap: 12px; justify-items: start; padding: 28px 0 8px; }
.final h2 { font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem); }
.final h2:focus { outline: none; }
.final p { color: var(--muted); max-width: 52ch; }
.palomita { width: 56px; height: 56px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; }
.palomita svg { width: 30px; height: 30px; }
.folio { font: 500 .85rem var(--f-mono); }
.modo-prueba { margin-top: 20px; padding: 18px; border: 1.5px dashed var(--line-fuerte); border-radius: 12px; display: grid; gap: 8px; justify-items: start; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* paso: atrás arriba */
.paso-arriba { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.paso-arriba .paso-num { margin-top: 0; }
.atras-arriba { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem/1 var(--f-body); padding: 8px 14px 8px 10px; min-height: 44px; border-radius: 999px; cursor: pointer; transition: border-color .2s ease, transform .16s var(--ease); }
.atras-arriba svg { width: 18px; height: 18px; }
.atras-arriba:hover { border-color: var(--accent); }
.atras-arriba:active { transform: scale(.97); }

/* opción "Otro" */
.otro-texto { grid-column: 1 / -1; }

/* paquete que ya viene elegido desde la web */
.paquete-elegido { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px 18px; border: 2px solid var(--accent); border-radius: 12px; background: var(--tint); }
.paquete-elegido .paq-nombre { display: block; font-weight: 700; font-size: 1.1rem; }
.paquete-elegido .paq-desc { display: block; color: var(--muted); font-size: .92rem; }
.paq-precio-chico { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; white-space: nowrap; }
.paquete-elegido .enlace { grid-column: 1 / -1; justify-self: start; }

/* horario con horas al revés */
.dia.mal { border-color: var(--error); }
.dia.mal input[type=time] { border-color: var(--error); }

/* sugerencias en la cotización */
.sugerencia { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: .9rem; line-height: 1.45; }

/* renglones: la descripción y el precio con espacio de sobra */
.celda.completo { grid-column: 1 / -1; }
.final .boton.secundario { margin-top: 8px; }

/* pantalla de pago */
.pago { margin: 26px 0 8px; padding: 24px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); display: grid; gap: 16px; max-width: 640px; }
.pago-cab h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); line-height: 1.1; margin-top: 4px; }
.pago-cab p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.pago-eyebrow { font: 500 .74rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pago-pestanas { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.pago-pestanas button { flex: 1; font: 600 .92rem var(--f-body); padding: 10px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.pago-pestanas button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.pago-panel { display: grid; gap: 14px; }
.pago-panel p { color: var(--muted); }
.pago-tarjeta { min-height: 120px; }
.pago-boton { width: 100%; justify-content: center; }
.pago-prueba { font-size: .85rem; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #FEBC2E 20%, var(--surface)); color: var(--ink) !important; }
.pago-seguro { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.pago-seguro svg { width: 16px; height: 16px; flex: none; color: var(--good); }
.pago-error { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--error) 10%, var(--surface)); color: var(--error); font-weight: 500; }
.pago-ok { display: flex; gap: 10px; align-items: center; color: var(--good) !important; font-weight: 600; }
.pago-ok svg { width: 22px; height: 22px; flex: none; }
.pago-listo { justify-items: start; border-color: var(--good); }
.pago-listo .palomita { width: 52px; height: 52px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; }
.pago-listo .palomita svg { width: 26px; height: 26px; }
.pago-listo h2:focus { outline: none; }
