/* Tema claro fijo: el formulario va incrustado en la web de Factor Inmune */
:root {
  --fondo: #ffffff;
  --superficie: #ffffff;
  --suave: #f3f6f6;
  --texto: #17201f;
  --apagado: #5a6968;
  --borde: #d7e0df;
  --acento: #0f6e6e;
  --acento-suave: #e3f1f0;
  --acento-texto: #ffffff;
  --peligro: #b3261e;
  --peligro-suave: #fbe9e7;
  --ok: #1d7a3e;
  --ok-suave: #e3f4e8;
  --radio: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--acento); }
.contenedor { max-width: 820px; margin: 0 auto; padding: 16px; }
.intro h1 { font-size: 1.6rem; margin: .2rem 0 .3rem; letter-spacing: -.01em; }
.intro p { color: var(--apagado); margin: 0 0 1rem; }

.bloque { border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.1rem 1.1rem 1.2rem; margin-bottom: 1rem; background: var(--superficie); }
.bloque h2 { font-size: 1.15rem; margin: 0 0 .8rem; display: flex; align-items: center; gap: .55rem; }
.num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--acento); color: var(--acento-texto); font-size: .9rem; flex: none; }
.subtitulo { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--apagado); margin: 1rem 0 .3rem; }
.nota { color: var(--apagado); font-size: .88rem; margin: .4rem 0 0; }
.centro { text-align: center; }
.cargando { color: var(--apagado); }
.error { color: var(--peligro); background: var(--peligro-suave); padding: .6rem .8rem; border-radius: 8px; margin: .8rem 0 0; }

.campo { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; color: var(--apagado); }
input, select { font: inherit; color: var(--texto); background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: .6rem .7rem; width: 100%; min-width: 0; }
input:focus, select:focus, .boton:focus-visible, summary:focus-visible { outline: 2px solid var(--acento); outline-offset: 1px; border-color: var(--acento); }
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.rejilla .doble { grid-column: 1 / -1; }
@media (max-width: 560px) { .rejilla { grid-template-columns: 1fr; } .intro h1 { font-size: 1.35rem; } }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.opciones { border: 0; padding: 0; margin: .9rem 0 0; }
.opciones legend { font-weight: 600; font-size: .9rem; color: var(--apagado); margin-bottom: .4rem; padding: 0; }
.opcion { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border: 1px solid var(--borde); border-radius: 10px; margin-bottom: .45rem; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--acento); background: var(--acento-suave); }
.opcion input { width: auto; margin-top: .3rem; accent-color: var(--acento); }
.opcion strong { white-space: nowrap; }

.grupo h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--apagado); margin: .9rem 0 .2rem; }
.prueba { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem .6rem; border-radius: 8px; cursor: pointer; }
.prueba:hover { background: var(--suave); }
.prueba.marcada { background: var(--acento-suave); }
.prueba input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--acento); }
.prueba .etq { display: block; }
.prueba .cod { display: block; font-size: .8rem; color: var(--apagado); overflow-wrap: anywhere; }
.prueba .precio { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

.todas { margin-top: 1rem; border-top: 1px solid var(--borde); padding-top: .8rem; }
.todas summary { cursor: pointer; font-weight: 600; color: var(--acento); padding: .3rem 0; }
.todas input[type=search] { margin: .6rem 0; }
.lista { max-height: 460px; overflow-y: auto; border: 1px solid var(--borde); border-radius: 10px; padding: .3rem; }
.lista .vacio { padding: 1rem; text-align: center; color: var(--apagado); }

.resumen h2 { margin-bottom: .5rem; }
.resumen-lineas { list-style: none; padding: 0; margin: 0 0 .6rem; }
.resumen-lineas li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--borde); font-size: .95rem; }
.resumen-lineas li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.resumen-lineas .vacio { color: var(--apagado); border: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.1rem; margin: .4rem 0 .2rem; }
.total strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.acepto { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 .2rem; font-size: .9rem; }
.acepto input { width: auto; margin-top: .25rem; accent-color: var(--acento); flex: none; }

.boton { display: block; width: 100%; margin-top: 1rem; padding: .85rem 1rem; border: 0; border-radius: 10px; background: var(--acento); color: var(--acento-texto); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-align: center; text-decoration: none; }
.boton:hover { filter: brightness(1.07); }
.boton:disabled { opacity: .45; cursor: not-allowed; filter: none; }
a.boton { display: inline-block; width: auto; padding-inline: 1.6rem; }

.gracias { padding: 2rem 1.2rem; }
.gracias h1 { font-size: 1.4rem; }
.check { width: 60px; height: 60px; margin: 0 auto .6rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok-suave); color: var(--ok); font-size: 1.9rem; font-weight: 700; }
.etiqueta-cemtro { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--acento); background: var(--acento-suave); border: 1px solid var(--acento); border-radius: 999px; padding: .05rem .45rem; margin-right: .45rem; vertical-align: middle; }
