/* =========================================================================
   Evidencia Sellada · sistema de diseño «Notaría digital» (propuesta F)
   Grafito profundo cálido + hueso. El verde sello es solo un hilo.
   Letra liviana, mucho aire. Desde el 16-10-2026: una landing (index.html), sin informes a la vista;
   lo visual es la evidencia, la firma que se traza y el sello que cae.

   Índice
   1. Tipografías (@font-face, servidas desde el propio sitio)
   2. Tokens: color, tipografía, espacio, sombras, movimiento
   3. Base, accesibilidad y utilidades
   4. Zonas (claro / oscuro) y encabezados de sección
   5. Botones y enlaces
   6. Marca, cabecera y menú
   7. Portada (héroe)
   8. El sello en relieve
   9. Teléfono y chat (el celular de #comprobar y la evidencia de chat)
  10. (retirada el 16-10: comparación pantallazo / sellado)
  11. Pasos, QR, «lo que hace / lo que no»
  12. Preguntas plegables, tarifa, cierre
  13. Formulario (campos, tarjetas, errores, total)
  14. Resultado de la comprobación
  15. Páginas legales (letra negra) y 404
  16. Pie, franja Valit y barra fija del celular
  17. Responsivo y movimiento reducido
  18. Componentes del 16-10 (firma viva, fichas, evidencia + firma + sello)
  Debajo de «FIN DEL SISTEMA»: la landing, sección por sección (16-10-2026).
   ========================================================================= */

/* ---------- 1. Tipografías ----------
   Archivos en assets/fonts/ (licencia SIL OFL). Mientras no estén, el navegador
   usa las fuentes del sistema que siguen en cada pila (las de la propuesta F). */
@font-face { font-family: "Red Hat Display"; src: url("assets/fonts/red-hat-display-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("assets/fonts/red-hat-text-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("assets/fonts/red-hat-text-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url("assets/fonts/red-hat-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Source Serif 4 ya no se carga: «ES» es un trazo SVG (_fuentes/es_trazo.py). */

/* ---------- 2. Tokens ---------- */
:root {
  /* Grafitos cálidos (fondos oscuros) */
  --g-950: #111416;
  --g-900: #171a1d;
  --g-850: #1c2023;
  --grafito: #22272b;
  --g-700: #2b3135;
  /* Platinos (texto sobre oscuro) */
  --platino: #cdc9c0;
  --platino-2: #a9a59c;
  --marfil: #f4f1e9;
  /* Hueso y papel (fondos claros) */
  --hueso: #eeeae1;
  --hueso-2: #e5e0d4;
  --papel: #f8f6f1;
  --blanco-papel: #fdfcf9;
  --linea-clara: #ddd6c8;
  --linea-campo: #857f75;          /* borde de campos: 3,9:1 sobre el campo, 3,3:1 sobre hueso */
  /* Tinta (texto sobre claro) */
  --tinta: #22272b;
  --tinta-2: #5d5951;
  --tinta-3: #6a655c;
  /* El hilo verde: líneas, checks, «Sin cambios», un detalle por pantalla */
  --verde: #1e6b4e;
  --verde-hilo: #2a7a5a;
  --verde-fondo: #e6efe9;
  --salvia: #8fbfa6;
  /* Estados */
  --error: #8a2a1b;
  --error-fondo: #f7e9e5;
  --error-claro: #e8a99b;          /* error sobre oscuro */
  /* Legal: siempre negro sobre claro (regla de Seba) */
  --negro: #000;

  /* Zona activa: los componentes leen estas variables (ver «tema-oscuro») */
  --texto: var(--tinta);
  --texto-2: var(--tinta-2);
  --borde: var(--linea-clara);
  --acento: var(--verde);
  --foco: var(--verde);

  /* Tipografía */
  --f-display: "Red Hat Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-texto: "Red Hat Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Red Hat Mono", Consolas, "Cascadia Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-doc: Constantia, Cambria, Georgia, "Times New Roman", serif;
  --t-heroe: clamp(60px, 8.9vw, 140px);
  --t-h1: clamp(46px, 5.3vw, 84px);
  --t-h2: clamp(38px, 4.6vw, 68px);
  --t-h3: clamp(24px, 2.2vw, 31px);
  --t-grande: clamp(22px, 1.9vw, 27px);
  --t-linea: clamp(17px, 1.3vw, 19px);
  --t-cuerpo: 17px;
  --t-chico: 14px;
  --t-micro: 12px;

  /* Espacio (escala de 4/8 px) */
  --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 24px; --e-6: 32px;
  --e-7: 44px; --e-8: 56px; --e-9: 72px; --e-10: 96px;
  --gutter: clamp(20px, 5vw, 64px);
  --seccion: clamp(104px, 12vw, 184px);
  --ancho: 1240px;
  --ancho-cabecera: 1360px;
  --alto-cabecera: 80px;

  /* Bordes, sombras y movimiento */
  --radio: 2px;
  --sombra-hoja: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 1px rgba(0,0,0,.35), 0 12px 22px -8px rgba(0,0,0,.5), 0 46px 80px -26px rgba(0,0,0,.75);
  --sombra-claro: 0 1px 1px rgba(60,50,30,.18), 0 30px 60px -28px rgba(40,32,20,.5), 0 12px 24px -14px rgba(40,32,20,.3);
  --sombra-tarjeta: 0 30px 60px -40px rgba(40,32,20,.35);
  --lento: cubic-bezier(.2, .7, .1, 1);
  --rapido: .2s;

  --papel-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42  0 0 0 0 .38  0 0 0 0 .3  .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --oscuro-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  .07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.5 2.4L10 3.2' fill='none' stroke='%231e6b4e' stroke-width='1.6'/%3E%3C/svg%3E");
  --check-blanco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.5 2.4L10 3.2' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2322272b' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-cabecera) + 16px); }
body {
  margin: 0;
  background: var(--g-900);
  color: var(--tinta);
  font: 400 var(--t-cuerpo)/1.55 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin-top: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--f-mono); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding-inline: var(--gutter); }

.saltar {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--hueso); color: var(--g-900); padding: 12px 16px; text-decoration: none; font-weight: 600;
}
.saltar:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- 4. Zonas y encabezados ---------- */
.tema-oscuro, .heroe, .cierre, .cabecera, .pie, .barra-movil {
  --texto: var(--marfil);
  --texto-2: var(--platino);
  --borde: rgba(255,255,255,.1);
  --acento: var(--salvia);
  --foco: var(--salvia);
  color: var(--texto);
}
.seccion { position: relative; padding-block: var(--seccion); }
.seccion--hueso { background: var(--hueso); }
.seccion--papel { background: var(--papel); }
.seccion--oscura { background: var(--g-900); overflow: hidden; isolation: isolate; }
.seccion--oscura::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--oscuro-grano); opacity: .5; pointer-events: none; }

.encabezado { max-width: 780px; margin-bottom: clamp(52px, 6vw, 96px); }
.encabezado--centro { margin-inline: auto; text-align: center; }
.encabezado--centro .linea { margin-inline: auto; }
.rotulo {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 600 var(--t-micro)/1.3 var(--f-texto); letter-spacing: .18em; text-transform: uppercase; color: var(--texto-2);
}
.rotulo::before { content: ""; width: 24px; height: 1px; background: var(--acento); flex: none; }
.titulo {
  margin: 0 0 .5em;
  font-family: var(--f-display); font-weight: 300;
  font-size: var(--t-h2); line-height: 1.04; letter-spacing: -.035em;
  color: var(--texto);
  text-wrap: balance;
}
.titulo--grande { font-size: clamp(44px, 6.2vw, 92px); margin-bottom: .35em; }
.linea { margin: 0; max-width: 32em; font-size: var(--t-linea); line-height: 1.55; color: var(--texto-2); text-wrap: pretty; }
.linea + .linea { margin-top: .6em; }

/* Aparición lenta de cada bloque (solo con JS). Red de seguridad: si main.js no llega,
   todo aparece a los 2,5 s; con main.js, su propio respaldo actúa a los 6 s. */
.js [data-revelar] { opacity: 0; transform: translateY(22px); transition: opacity 1.2s ease, transform 1.5s var(--lento); }
.js [data-revelar].is-in { opacity: 1; transform: none; }
.js [data-revelar][data-retraso="1"] { transition-delay: .15s; }
.js [data-revelar][data-retraso="2"] { transition-delay: .3s; }
.js [data-revelar]:focus-within { opacity: 1; transform: none; transition: none; }
html.js:not(.js-listo) [data-revelar] { animation: aparecer-seguro .8s ease 2.5s forwards; }
@keyframes aparecer-seguro { to { opacity: 1; transform: none; } }

/* ---------- 5. Botones y enlaces ---------- */
.boton {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 30px;
  font: 600 16px/1.1 var(--f-texto); letter-spacing: .005em;
  text-decoration: none; border-radius: var(--radio); border: 1px solid transparent; cursor: pointer;
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease, transform .15s ease;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.boton__flecha { width: 20px; height: 12px; flex: none; transition: transform .5s var(--lento); }
.boton:hover .boton__flecha { transform: translateX(4px); }
.boton:active { transform: translateY(1px); }
/* Claro: la acción principal sobre fondo oscuro */
.boton--claro { background: var(--hueso); color: var(--g-900); box-shadow: inset 0 -1px 0 rgba(0,0,0,.08); }
.boton--claro:hover { background: #fbf9f4; box-shadow: inset 0 -2px 0 var(--verde); }
.boton--claro:active { background: var(--hueso-2); }
/* Oscuro: la acción principal sobre fondo claro */
.boton--oscuro { background: var(--grafito); color: var(--hueso); }
.boton--oscuro:hover { background: var(--verde); }
.boton--oscuro:active { background: #175a41; }
/* Línea: acción secundaria (toma el color de la zona) */
.boton--linea { background: transparent; color: var(--texto); border-color: currentColor; }
.boton--linea:hover { border-color: var(--acento); color: var(--texto); box-shadow: inset 0 -2px 0 var(--acento); }
/* Línea: acción secundaria (toma el color de la zona) */
.boton--chico { min-height: 44px; padding: 0 18px; font-size: 14px; }
.boton--ancho { width: 100%; }
.boton:disabled, .boton[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.boton--oscuro:disabled { background: var(--grafito); }
.boton[aria-busy="true"] { cursor: progress; opacity: .85; }
.boton[aria-busy="true"]::after {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent; animation: girar .8s linear infinite;
}
.boton[aria-busy="true"] .boton__flecha { display: none; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Enlace con flecha (acción terciaria, dentro de una sección) */
.enlace {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0;
  font: 600 15px/1.3 var(--f-texto); color: var(--texto); text-decoration: none;
  border-bottom: 1px solid var(--borde); transition: border-color .4s ease, color .4s ease;
}
.enlace::after { content: "\2192"; font-weight: 400; transition: transform .5s var(--lento); }
.enlace:hover { border-color: var(--acento); }
.enlace:hover::after { transform: translateX(4px); }

/* ---------- 6. Marca, cabecera y menú ---------- */
.marca { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--hueso); }
.marca__sello { flex: none; width: 40px; height: 28px; }
.marca__nombre { font: 600 12px/1 var(--f-texto); letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }

.cabecera { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--hueso); transition: background-color .6s ease; --foco: var(--salvia); }
.cabecera__dentro {
  max-width: var(--ancho-cabecera); margin: 0 auto; height: var(--alto-cabecera); padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cabecera.is-solida, .cabecera--solida { background: #15181a; }
.cabecera__hilo { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; opacity: 0; transition: opacity .6s; }
.cabecera.is-solida .cabecera__hilo, .cabecera--solida .cabecera__hilo { opacity: 1; background: rgba(255,255,255,.06); }
.cabecera__hilo i { display: block; height: 100%; width: 100%; background: var(--verde-hilo); transform-origin: left; transform: scaleX(var(--p, 0)); }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 14px; color: var(--platino); text-decoration: none;
  transition: color .3s ease;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--salvia); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--lento); }
.nav a:hover { color: var(--marfil); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--marfil); }
.nav__extra { display: none; }

.cabecera__accion { display: flex; align-items: center; gap: 18px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.cabecera.is-cta .cabecera__accion { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.cabecera__precio { font-size: 14px; color: var(--platino-2); }

.menu-boton {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; color: var(--hueso); cursor: pointer; font: 600 13px/1 var(--f-texto); letter-spacing: .16em; text-transform: uppercase;
}
.menu-boton i { position: relative; width: 20px; height: 9px; }
.menu-boton i::before, .menu-boton i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--lento), top .4s var(--lento); }
.menu-boton i::before { top: 0; }
.menu-boton i::after { top: 7.5px; }
.menu-boton[aria-expanded="true"] i::before { top: 3.75px; transform: rotate(45deg); }
.menu-boton[aria-expanded="true"] i::after { top: 3.75px; transform: rotate(-45deg); }

/* ---------- 7. Portada (héroe) ---------- */
.heroe {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  padding: 112px 0 72px;
  color: var(--hueso);
  background:
    radial-gradient(52% 70% at 71% 50%, #2a2f33 0%, rgba(42,47,51,0) 70%),
    linear-gradient(180deg, #181b1e 0%, #15181a 100%);
}
.heroe::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--oscuro-grano); opacity: .55; pointer-events: none; }
/* Luz cálida de lámpara (no verde): sigue al mouse en computador */
.heroe__luz {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(30% 42% at var(--lx, 70%) var(--ly, 44%), rgba(238,234,225,.07), rgba(238,234,225,0) 70%);
}
.heroe__titulo {
  margin: 0 0 30px;
  font-family: var(--f-display); font-weight: 300;
  font-size: var(--t-heroe); line-height: .94; letter-spacing: -.045em;
  color: var(--marfil);
}
.heroe__titulo .renglon { display: block; overflow: hidden; padding: 0 .04em .12em 0; margin-bottom: -.08em; }
.heroe__titulo .renglon > span { display: block; }
.heroe__bajada { margin: 0 0 44px; max-width: 23em; font: 400 clamp(17px, 1.32vw, 20px)/1.5 var(--f-texto); color: var(--platino); }
.heroe__accion { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Rótulo de la portada */
.heroe .rotulo { color: var(--platino-2); --acento: var(--verde-hilo); }

/* Entrada de la portada (solo con JS) */
.js .heroe__titulo .renglon > span { transform: translateY(108%); }
.js .heroe .rotulo, .js .heroe__bajada, .js .heroe__accion { opacity: 0; transform: translateY(10px); }
.js .heroe .sello-relieve { opacity: 0; }
.is-listo .heroe__titulo .renglon > span { transform: none; transition: transform 1.5s var(--lento); }
.is-listo .heroe__titulo .renglon:nth-child(2) > span { transition-delay: .12s; }
.is-listo .heroe .rotulo, .is-listo .heroe__bajada, .is-listo .heroe__accion { opacity: 1; transform: none; transition: opacity 1.2s ease .55s, transform 1.4s var(--lento) .55s; }
.is-listo .heroe .rotulo { transition-delay: .1s; }
.is-listo .heroe__accion { transition-delay: .7s; }
.is-listo .heroe .sello-relieve { opacity: 1; }
html.js:not(.js-listo) .heroe__titulo .renglon > span,
html.js:not(.js-listo) .heroe .rotulo, html.js:not(.js-listo) .heroe__bajada, html.js:not(.js-listo) .heroe__accion, html.js:not(.js-listo) .heroe .sello-relieve { animation: aparecer-seguro2 .6s ease 2.5s forwards; }
@keyframes aparecer-seguro2 { to { opacity: 1; transform: none; translate: 0 0; stroke-dashoffset: 0; } }

/* ---------- 8. El sello en relieve ---------- */
/* Sello en relieve seco: octágono alargado, sin tinta, solo luz y sombra (filtro SVG) */
.sello-relieve { overflow: visible; }

/* ---------- 9. Teléfono y chat (el celular de #comprobar; .chat y .globo también los usa la evidencia de chat) ---------- */
.tel {
  position: relative; z-index: 1;
  font-size: clamp(11.5px, 1.05vw, 14px);
  width: 21em; margin-bottom: -7em;
  padding: .55em; border-radius: 3em;
  background: linear-gradient(150deg, #353b40 0%, #1a1d20 40%, #121416 100%);
  box-shadow: 0 0 0 1px #0d0f10, inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 70px -30px rgba(40,32,20,.55), 0 14px 26px -14px rgba(40,32,20,.45);
}
.tel::before { content: ""; position: absolute; top: 1.35em; left: 50%; width: 6.2em; height: 1.75em; border-radius: 1em; background: #0b0c0d; transform: translateX(-50%); z-index: 3; }
.tel__pantalla { position: relative; height: 40em; border-radius: 2.5em; overflow: hidden; background: #ebe7de; display: flex; flex-direction: column; color: #1f2427; }
.tel__estado { display: flex; justify-content: space-between; align-items: center; padding: 1.25em 2em .55em 2.3em; font: 600 .86em/1 var(--f-texto); background: #f7f5f0; }
.tel__iconos { display: flex; align-items: center; gap: .45em; }
.senal { width: 1.1em; height: .75em; background: linear-gradient(90deg, currentColor 0 18%, transparent 18% 27%, currentColor 27% 45%, transparent 45% 54%, currentColor 54% 72%, transparent 72% 81%, currentColor 81%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bateria { width: 1.6em; height: .78em; border: 1px solid currentColor; border-radius: .25em; position: relative; }
.bateria::after { content: ""; position: absolute; inset: 1.5px 30% 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.chat__cab { display: flex; align-items: center; gap: .65em; padding: .55em 1.1em .85em; background: #f7f5f0; border-bottom: 1px solid #ddd8cd; }
.chat__avatar { width: 2.35em; height: 2.35em; border-radius: 50%; display: grid; place-items: center; background: #cbc5b8; color: #3f3b35; font-weight: 600; font-size: .9em; }
.chat__quien { display: grid; line-height: 1.2; }
.chat__quien b { font-size: .95em; font-weight: 600; }
.chat__quien small { font-size: .74em; color: #6c675e; }
.chat { flex: 1; display: flex; flex-direction: column; gap: .5em; padding: 1em; }
.chat__dia { align-self: center; margin-bottom: .5em; padding: .3em .9em; border-radius: .6em; background: #ddd8cc; color: #55514a; font-size: .72em; }
.globo { position: relative; max-width: 82%; margin: 0; padding: .55em .8em .45em; border-radius: 1em; font-size: .94em; line-height: 1.38; box-shadow: 0 1px 0 rgba(60,50,30,.08); }
.globo small { display: flex; justify-content: flex-end; align-items: center; gap: .3em; margin-top: .2em; font-size: .68em; color: var(--tinta-3); }
.globo--in { align-self: flex-start; background: #fff; border-top-left-radius: .3em; }
.globo--out { align-self: flex-end; background: #d8e5db; border-top-right-radius: .3em; }
.globo--out small { color: var(--tinta-2); }
.vistos { width: 1.4em; height: .8em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 5.5l2.8 2.8L10 2M7 8.3l.4.3L14 2' fill='none' stroke='%23477a63' stroke-width='1.5'/%3E%3C/svg%3E"); }


/* ---------- 11. Pasos, QR, «lo que hace / lo que no» ---------- */
.pasos__lista { list-style: none; margin: 0; padding: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); position: relative; }

/* QR: que lo compruebe cualquiera */
.qr__marco { position: relative; padding: 16px; }
.qr__marco img { width: 100%; height: auto; }
.esq { position: absolute; width: 20px; height: 20px; border: 0 solid var(--verde); }
.esq--1 { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.esq--2 { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.esq--3 { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.esq--4 { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.qr__barrido { position: absolute; left: 6px; right: 6px; top: 8%; height: 1px; background: var(--verde); opacity: 0; }
.is-in .qr__barrido { animation: barrido 5.6s ease-in-out .4s infinite; }
@keyframes barrido { 0% { top: 8%; opacity: 0; } 12% { opacity: .85; } 50% { top: 92%; opacity: .85; } 62%, 100% { top: 92%; opacity: 0; } }

/* ---------- 12. Preguntas plegables, tarifa, cierre ---------- */
.preguntas { border-top: 1px solid var(--borde); max-width: 920px; }
.pregunta { border-bottom: 1px solid var(--borde); }
.pregunta summary {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 26px 64px 26px 0; font: 300 var(--t-grande)/1.3 var(--f-display); letter-spacing: -.01em; color: var(--texto);
  transition: color .3s ease;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::before, .pregunta summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--lento);
}
.pregunta summary::after { transform: rotate(90deg); }
.pregunta[open] summary::after { transform: rotate(0); }
.pregunta summary:hover { color: var(--acento); }
.pregunta summary:focus-visible { outline-offset: -2px; }
.pregunta__respuesta { padding: 0 64px 30px 0; max-width: 46em; font-size: 16.5px; line-height: 1.65; color: var(--texto-2); }
.pregunta__respuesta p { margin: 0 0 .8em; }
.pregunta__respuesta p:last-child { margin-bottom: 0; }
.pregunta__respuesta a { color: var(--texto); text-decoration-color: var(--acento); text-underline-offset: 3px; }
.pregunta[open] .pregunta__respuesta { animation: desplegar .5s var(--lento); }
@keyframes desplegar { from { opacity: 0; transform: translateY(-6px); } }

.precio__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.precio .encabezado { margin-bottom: 0; }
.tarifa { padding: clamp(28px, 3.4vw, 44px); background: var(--blanco-papel); border: 1px solid var(--linea-clara); box-shadow: var(--sombra-tarjeta); }
.tarifa__etq { margin: 0 0 12px; font: 600 12px/1 var(--f-texto); letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); }
.tarifa__monto { margin: 0 0 28px; font: 300 clamp(44px, 4vw, 56px)/1 var(--f-display); letter-spacing: -.035em; color: var(--tinta); }
.lista-check { list-style: none; margin: 0 0 32px; padding: 0; }
.lista-check li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid #e7e1d6; font-size: 15.5px; line-height: 1.4; color: var(--tinta); }
.lista-check li:last-child { border-bottom: 1px solid #e7e1d6; }
.lista-check li::before { content: ""; position: absolute; left: 3px; top: 50%; width: 11px; height: 5.5px; margin-top: -5px; border-left: 1.5px solid var(--verde); border-bottom: 1.5px solid var(--verde); transform: rotate(-45deg); }
.tarifa__nota { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--tinta-2); }

.cierre {
  text-align: center; color: var(--hueso); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(50% 55% at 50% 30%, #2a2f33 0%, rgba(42,47,51,0) 75%),
    linear-gradient(180deg, #171a1d, #131618);
}
.cierre::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--oscuro-grano); opacity: .9; pointer-events: none; }
.cierre__sello { width: clamp(220px, 22vw, 320px); height: auto; margin: 0 auto 56px; }
.cierre__dentro { display: flex; flex-direction: column; align-items: center; }
.cierre .titulo { color: var(--marfil); }
.cierre .linea { margin: 0 auto 44px; color: var(--platino); }
.cierre__accion { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ---------- 13. Formulario ---------- */
.formulario { color: var(--tinta); }
.formulario__cuerpo { display: grid; gap: 30px; }
.campo { display: grid; gap: 8px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.campo > label, .campo > legend { padding: 0; font: 600 14px/1.35 var(--f-texto); letter-spacing: .01em; color: var(--tinta); }
.campo > legend { margin-bottom: 8px; }
.opcional { font-weight: 400; color: var(--tinta-2); }
.ayuda { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tinta-2); }

.campo input:not([type="radio"]):not([type="checkbox"]), .campo select, .campo textarea, .entrada {
  width: 100%; min-height: 54px; padding: 0 16px;
  background: var(--blanco-papel); color: var(--tinta);
  border: 1px solid var(--linea-campo); border-radius: var(--radio);
  font: 400 16px/1.4 var(--f-texto);
  transition: border-color var(--rapido) ease, box-shadow var(--rapido) ease, background-color var(--rapido) ease;
  -webkit-appearance: none; appearance: none;
}
.campo textarea { min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.campo select { padding-right: 44px; background: var(--blanco-papel) var(--chevron) right 16px center / 12px 8px no-repeat; cursor: pointer; }
.campo ::placeholder, .entrada::placeholder { color: var(--tinta-3); opacity: 1; }
.campo input:not([type="radio"]):not([type="checkbox"]):hover, .campo select:hover, .campo textarea:hover, .entrada:hover { border-color: var(--tinta-2); }
.campo input:not([type="radio"]):not([type="checkbox"]):focus, .campo select:focus, .campo textarea:focus, .entrada:focus {
  outline: 2px solid var(--verde); outline-offset: 1px; border-color: var(--verde); background-color: #fff;
}
.campo [aria-invalid="true"], .entrada[aria-invalid="true"] { border-color: var(--error) !important; background-color: #fffaf8; box-shadow: inset 3px 0 0 var(--error); }
.campo [aria-invalid="true"]:focus, .entrada[aria-invalid="true"]:focus { outline-color: var(--error); }
.campo.es-valido input:not([type="radio"]):not([type="checkbox"]), .campo.es-valido textarea {
  border-color: var(--verde-hilo); background-image: var(--check); background-repeat: no-repeat; background-position: right 16px top 18px; background-size: 14px; padding-right: 44px;
}
.campo :disabled, .entrada:disabled { background-color: var(--hueso-2) !important; color: var(--tinta-2); border-color: var(--linea-clara) !important; cursor: not-allowed; }
.campo__error { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--error); }
.campo__error::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; background: var(--error); color: #fff; font: 700 11px/1 var(--f-texto); }
.campo__error:empty { display: none; }

/* Casilla de consentimiento */
.consentimiento, .campo > .consentimiento { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; cursor: pointer; font: 400 15px/1.55 var(--f-texto); letter-spacing: 0; color: var(--tinta); }
.consentimiento input {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 1px 0 0; cursor: pointer;
  border: 1.5px solid #8d887e; border-radius: var(--radio); background: #fff;
  transition: border-color var(--rapido) ease, background-color var(--rapido) ease;
}
.consentimiento input:hover { border-color: var(--tinta); }
.consentimiento input:checked { border-color: var(--verde); background: var(--verde) var(--check-blanco) center / 14px no-repeat; }
.consentimiento input:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
.consentimiento input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.consentimiento input:disabled { opacity: .5; cursor: not-allowed; }
.consentimiento a { color: var(--tinta); text-underline-offset: 3px; text-decoration-color: var(--verde); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulario__enviar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.formulario__micro { margin: 0; flex: 1 1 16em; font-size: 14px; line-height: 1.5; color: var(--tinta-2); }

.formulario__estado { margin: 0; padding: 14px 16px; font-size: 15px; line-height: 1.5; border-left: 3px solid var(--linea-campo); background: var(--hueso); }
.formulario__estado:empty { display: none; }
.formulario__estado.es-error { border-left-color: var(--error); background: var(--error-fondo); color: var(--error); font-weight: 600; }
.formulario__estado.es-ok { border-left-color: var(--verde); background: var(--verde-fondo); color: var(--verde); font-weight: 600; }
.formulario.esta-enviado .formulario__cuerpo > :not(.formulario__estado):not(.formulario__listo) { display: none; }
.formulario__listo { display: none; padding: clamp(24px, 3vw, 36px); background: var(--blanco-papel); border: 1px solid var(--linea-clara); border-top: 2px solid var(--verde); }
.formulario.esta-enviado .formulario__listo { display: block; }
.formulario__listo:focus { outline: none; }
.formulario__listo p { margin: 0 0 14px; color: var(--tinta-2); }
.listo__titulo { display: flex; gap: 14px; align-items: center; margin: 0 0 12px !important; font: 300 clamp(26px, 2.6vw, 34px)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--tinta) !important; }
.listo__titulo::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--verde) var(--check-blanco) center / 17px no-repeat; }
.listo__numero { font: 400 13px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--tinta-2); }
.listo__numero b { color: var(--tinta); font-weight: 400; }
.listo__numero:empty { display: none; }
.listo__pasos { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: lp; border-top: 1px solid var(--linea-clara); }
.listo__pasos li { counter-increment: lp; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--linea-clara); font-size: 15.5px; line-height: 1.5; color: var(--tinta); }
.listo__pasos li::before { content: "0" counter(lp); font: 400 13px/1.9 var(--f-mono); color: var(--verde); }

/* ---------- 14. Resultado de la comprobación ---------- */
.comprobar__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; max-width: 620px; }
.comprobar__form label { grid-column: 1 / -1; font: 600 14px/1.35 var(--f-texto); color: var(--texto); }
.comprobar__form input { font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.comprobar__form input::placeholder { text-transform: none; }
.comprobar__form .boton { min-height: 54px; }
.resultado { margin-top: 28px; max-width: 620px; background: var(--blanco-papel); border: 1px solid var(--linea-clara); color: var(--tinta); }
.resultado:empty { display: none; }
.resultado:focus { outline: none; }
.resultado__cabeza { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--linea-clara); font: 600 13px/1.35 var(--f-texto); letter-spacing: .1em; text-transform: uppercase; }
.resultado__cabeza::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--tinta-2); background: linear-gradient(var(--tinta-2), var(--tinta-2)) center / 9px 1.5px no-repeat; }
.resultado--encontrado { border-top: 2px solid var(--verde); }
.resultado--encontrado .resultado__cabeza { color: var(--verde); background: var(--verde-fondo); }
.resultado--encontrado .resultado__cabeza::before { border: 0; background: var(--verde) var(--check-blanco) center / 12px no-repeat; }
.resultado--no .resultado__cabeza { color: var(--tinta); }
.resultado__cuerpo { padding: 18px 20px 20px; font-size: 15.5px; line-height: 1.6; color: var(--tinta-2); }
.resultado__cuerpo p { margin: 0 0 12px; }
.resultado__cuerpo p:last-child { margin-bottom: 0; }
.resultado__cuerpo a { color: var(--tinta); text-decoration-color: var(--verde); }
.resultado dl { margin: 0 0 4px; display: grid; grid-template-columns: minmax(8em, max-content) minmax(0, 1fr); }
.resultado dt, .resultado dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #e7e1d6; font-size: 14.5px; }
.resultado dt { padding-right: 18px; font-weight: 600; color: var(--tinta); }
.resultado dd { color: var(--tinta); }
.resultado code { font: 400 12.5px/1.5 var(--f-mono); overflow-wrap: anywhere; word-break: break-all; }

/* ---------- 15. Páginas legales (letra negra sobre claro) ---------- */
.legal { background: var(--papel); color: var(--negro); padding: calc(var(--alto-cabecera) + clamp(56px, 7vw, 104px)) 0 clamp(80px, 9vw, 140px); }
.legal, .legal * { color: var(--negro); }
.legal .envoltura { max-width: 860px; }
.legal__miga { margin: 0 0 28px; font-size: 14px; }
.legal__miga a { text-decoration: underline; text-underline-offset: 3px; }
.legal h1 { margin: 0 0 12px; font: 300 clamp(40px, 5vw, 64px)/1.05 var(--f-display); letter-spacing: -.035em; }
.legal__version { margin: 0 0 clamp(40px, 5vw, 64px); padding-bottom: 24px; border-bottom: 1px solid #000; font: 400 14px/1.4 var(--f-mono); }
.legal h2 { margin: 2.2em 0 .6em; font: 600 20px/1.3 var(--f-texto); letter-spacing: -.005em; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; }
.legal p { margin: 0 0 1em; }
.legal ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal li::marker { color: #000; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal strong { font-weight: 600; }
.legal :focus-visible { outline-color: #000; }

/* 404 */
.error-pagina { min-height: 100svh; display: flex; align-items: center; padding: 140px 0 96px; text-align: center; }
.error-pagina .cierre__sello { margin-bottom: 48px; }
.error-pagina .linea { margin: 0 auto 40px; }
.error-pagina__enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 32px; margin: 8px 0 0; }

/* ---------- 16. Pie, franja Valit y barra fija ---------- */
.pie { --foco: var(--salvia); background: var(--g-950); color: var(--platino-2); padding: 52px 0 36px; font-size: 14px; }
.pie__dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; }
.pie__enlaces, .pie__contacto { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; }
.pie__enlaces a, .pie__contacto a { display: inline-flex; align-items: center; min-height: 44px; color: var(--platino); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .4s ease, color .4s ease; }
.pie__enlaces a:hover, .pie__contacto a:hover { color: var(--marfil); border-color: var(--verde-hilo); }
.pie__legal { width: 100%; margin: 14px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12.5px; line-height: 1.65; color: #8f8b83; }
.pie__fin { width: 100%; margin: 0; font-size: 12.5px; color: #8f8b83; }

.barra-movil { display: none; }

/* ---------- 17. Responsivo ---------- */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .cabecera__precio { display: none; }
}

@media (max-width: 1080px) {
  .precio__rejilla { grid-template-columns: minmax(0, 1fr); }
  .tarifa { max-width: 480px; }

  /* Menú plegable (solo con JS; sin JS, los enlaces están en el pie) */
  .js .menu-boton { display: inline-flex; }
  .cabecera__dentro { gap: 16px; }
  .cabecera__accion { margin-left: auto; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--alto-cabecera); bottom: 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--g-900); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.esta-abierta { display: flex; animation: desplegar .45s var(--lento); }
  .nav a { padding: 18px 0; font: 300 clamp(26px, 6vw, 34px)/1.2 var(--f-display); letter-spacing: -.015em; color: var(--marfil); border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--salvia); }
  .nav__extra { display: grid; gap: 14px; padding-top: 28px; }
  .nav .nav__extra .boton { width: 100%; padding: 0 30px; border-bottom: 0; font: 600 16px/1.1 var(--f-texto); color: var(--g-900); }
  .nav .nav__extra a:not(.boton) { padding: 4px 0; border: 0; font: 400 15px/1.5 var(--f-texto); color: var(--platino); }
  html.menu-abierto { overflow: hidden; }
  html.menu-abierto .cabecera { background: var(--g-900); }
}

@media (max-width: 900px) {
  .heroe { min-height: 0; align-items: flex-start; padding: 108px 0 64px; }

}

@media (max-width: 760px) {
  :root { --alto-cabecera: 64px; }
  body { font-size: 16px; }
  .marca__nombre { font-size: 11px; letter-spacing: .2em; }
  .marca__sello { width: 36px; height: 25px; }
  .cabecera__accion { display: none; }
  .menu-boton { margin-left: auto; }

  .heroe { padding: 96px 0 56px; }
  .heroe__titulo { font-size: clamp(54px, 17.5vw, 76px); margin-bottom: 22px; }
  .heroe__bajada { margin-bottom: 30px; font-size: 17px; max-width: 21em; }
  .heroe__accion { flex-direction: column; align-items: stretch; gap: 14px; }
  .heroe__accion .boton { width: 100%; }

  .seccion { padding-block: clamp(84px, 22vw, 112px); }
  .encabezado { margin-bottom: 44px; }
  .titulo { font-size: clamp(34px, 10vw, 44px); }
  .titulo--grande { font-size: clamp(40px, 12vw, 54px); }

  .tel { font-size: 13px; }

  

  .pregunta summary { padding: 22px 48px 22px 0; }
  .pregunta__respuesta { padding-right: 0; }

  .tarifa { max-width: none; }
  
  .comprobar__form { grid-template-columns: 1fr; }
  .comprobar__form .boton { width: 100%; }

  .cierre__sello { margin-bottom: 40px; }
  .cierre__accion, .cierre__accion .boton { width: 100%; }

  .pie__dentro { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pie__enlaces, .pie__contacto { gap: 0 22px; }

  .barra-movil {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #15181a; border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(110%); visibility: hidden; transition: transform .55s var(--lento), visibility 0s .55s;
    --foco: var(--salvia);
  }
  .barra-movil.is-visible { transform: none; visibility: visible; transition: transform .55s var(--lento); }
  html { scroll-padding-bottom: 96px; }
  .barra-movil__precio { display: grid; font-size: 12px; line-height: 1.3; color: var(--platino-2); }
  .barra-movil__precio b { color: var(--hueso); font-size: 16px; font-weight: 600; }
  .barra-movil .boton { min-height: 50px; padding: 0 22px; font-size: 15px; }
  html.menu-abierto .barra-movil { transform: translateY(110%); visibility: hidden; }
}

@media (max-width: 380px) {
  .barra-movil .boton { padding: 0 16px; font-size: 14px; }
  .tarifa .boton { white-space: normal; padding-inline: 20px; text-align: center; }
  .marca__nombre { letter-spacing: .16em; }
}

/* Movimiento reducido: se apagan solo los bucles (barrido del QR).
   Las apariciones y micro-interacciones siguen (regla de la skill: Windows trae
   «reducir movimiento» activado por defecto y el sitio se vería muerto). */
@media (prefers-reduced-motion: reduce) {
  .is-in .qr__barrido { animation: none; }
}

/* ---------- 18. Componentes del 16-10-2026 (el sitio ya no muestra informes) ----------
   Firma viva · fichas «¿Qué te pasó?» · «evidencia + firma + sello» (.sellada + .ev).
   Cómo se usa cada uno: _traspaso-diseno.md, «Componentes del 16-10». Ganchos de main.js:
   data-firma, data-sellada, data-evidencia, data-golpe (las fichas de «¿Qué te pasó?» se retiraron el 16-10). */

/* Firma viva: un trazo SVG con pathLength="1" que se dibuja solo. Color: --firma-tinta (o currentColor). */
.firma-viva { display: block; width: 100%; height: auto; overflow: visible; }
.firma-viva path {
  fill: none; stroke: var(--firma-tinta, currentColor); stroke-width: var(--firma-grosor, 1.6);
  stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0;
}
.js .firma-viva:not(.is-firmada) path { stroke-dashoffset: 1; }
.firma-viva.is-firmada path { transition: stroke-dashoffset var(--firma-dur, 2.9s) cubic-bezier(.42, .08, .3, 1); }
html.js:not(.js-listo) .firma-viva path { animation: aparecer-seguro2 .6s ease 2.5s forwards; }

/* El sello cae: la zona se sacude apenas (data-golpe) */
.is-golpe { animation: golpe .32s ease-out; }
@keyframes golpe { 30% { transform: translateY(1.5px); } 100% { transform: none; } }

/* Fichas «¿Qué te pasó?» y pestañas «Qué sellamos»: botones con esquinas de sello (aria-pressed o aria-selected). Claro por defecto; en zona oscura toman sus tonos.
   El octágono va en ::before (borde) y ::after (relleno) para que el foco del teclado no quede recortado. */
.fichas { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; max-width: 1120px; margin: 0 auto; }
.ficha {
  --c: 11px; --borde-f: rgba(34,39,43,.26); --fondo-f: var(--blanco-papel);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 84px; margin: 0; padding: 12px 6px 16px;
  background: none; border: 0; border-radius: 0; cursor: pointer; color: var(--tinta-2);
  font: inherit; transition: color .45s ease, transform .15s ease; -webkit-tap-highlight-color: transparent;
}
.ficha::before, .ficha::after { content: ""; position: absolute; z-index: -1; transition: background-color .45s ease; }
.ficha::before {
  inset: 0; background: var(--borde-f);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.ficha::after {
  inset: 1px; background: var(--fondo-f);
  clip-path: polygon(calc(var(--c) - .4px) 0, calc(100% - var(--c) + .4px) 0, 100% calc(var(--c) - .4px), 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, calc(var(--c) - .4px) 100%, 0 calc(100% - var(--c) + .4px), 0 calc(var(--c) - .4px));
}
.ficha__n { font: 400 11px/1 var(--f-mono); letter-spacing: .08em; color: var(--tinta-3); transition: color .45s ease; }
.ficha__p { position: relative; font: 300 clamp(19px, 1.6vw, 24px)/1.1 var(--f-display); letter-spacing: -.015em; white-space: nowrap; }
.ficha__p::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 22px; height: 1px; margin-left: -11px; background: var(--acento); transform: scaleX(0); transition: transform .6s var(--lento); }
.ficha:hover { --borde-f: rgba(34,39,43,.5); color: var(--tinta); }
.ficha:active { transform: translateY(1px); }
.ficha[aria-pressed="true"], .ficha[aria-selected="true"] { --borde-f: var(--verde); --fondo-f: var(--verde-fondo); color: var(--tinta); }
.ficha[aria-pressed="true"] .ficha__n, .ficha[aria-selected="true"] .ficha__n { color: var(--verde); }
.ficha[aria-pressed="true"] .ficha__p::after, .ficha[aria-selected="true"] .ficha__p::after { transform: scaleX(1); }
.ficha:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
.tema-oscuro .ficha, .heroe .ficha { --borde-f: rgba(238,234,225,.16); --fondo-f: rgba(23,26,29,.72); color: var(--platino); }
.tema-oscuro .ficha .ficha__n, .heroe .ficha .ficha__n { color: var(--platino-2); }
.tema-oscuro .ficha:hover, .heroe .ficha:hover { --borde-f: rgba(238,234,225,.34); color: var(--marfil); }
.tema-oscuro .ficha[aria-pressed="true"], .tema-oscuro .ficha[aria-selected="true"], .heroe .ficha[aria-pressed="true"] { --borde-f: var(--salvia); --fondo-f: #232a2b; color: var(--marfil); }
.tema-oscuro .ficha[aria-pressed="true"] .ficha__n, .tema-oscuro .ficha[aria-selected="true"] .ficha__n, .heroe .ficha[aria-pressed="true"] .ficha__n { color: var(--salvia); }
@media (forced-colors: active) { .ficha { border: 1px solid ButtonText; } .ficha[aria-pressed="true"], .ficha[aria-selected="true"] { outline: 3px solid Highlight; } }

/* «Evidencia + firma + sello» (las cuatro pestañas de «Qué sellamos», sin documento):
   la evidencia aparece, la firma se traza cruzando su borde y el sello en relieve cae al final.
   Todo en em: el tamaño lo da --s-fs (12 px por defecto). Sin JavaScript = estado final. */
.sellada {
  --s-fs: 12px;
  position: relative; margin: 0; font-size: var(--s-fs);
  width: 40em; max-width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.sellada__evidencia { position: relative; z-index: 1; transform: rotate(-2deg); transition: opacity 1s ease, transform 1.5s var(--lento); }
.js .sellada:not(.is-viva) .sellada__evidencia { opacity: 0; transform: rotate(-2deg) translateY(1.6em); }
.sellada__regla { display: block; width: calc(100% - 4em); height: 1px; margin-top: -.9em; background: linear-gradient(90deg, rgba(42,122,90,0), var(--verde-hilo) 14%, var(--verde-hilo) 86%, rgba(42,122,90,0)); transform-origin: left; }
.js .sellada:not(.is-viva) .sellada__regla { transform: scaleX(0); }
.sellada.is-viva .sellada__regla { transition: transform 1.8s var(--lento) .3s; }
.sellada__pie { display: grid; gap: .35em; margin: 1.15em 0 0; text-align: center; font: 400 .84em/1.4 var(--f-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--platino-2); }
.js .sellada:not(.is-firmada) .sellada__pie { opacity: 0; }
.sellada.is-firmada .sellada__pie { transition: opacity 1s ease .1s; }
.sellada__sello { position: absolute; z-index: 3; width: 12.6em; height: auto; right: 0; bottom: 4.6em; transform: rotate(-7deg); overflow: visible; }
.js .sellada:not(.is-sellando) .sellada__sello { opacity: 0; transform: rotate(-7deg) scale(1.22); }
.js .sellada.is-sellando .sellada__sello { opacity: 1; transform: rotate(-7deg); transition: opacity .18s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.sellada__nota { margin-top: 1.9em; display: flex; align-items: center; gap: 1em; font: 400 .9em/1 var(--f-mono); letter-spacing: .08em; color: var(--platino-2); }
.sellada__nota::before { content: ""; width: 2em; height: 1px; background: var(--verde-hilo); }
html.js:not(.js-listo) .sellada__evidencia, html.js:not(.js-listo) .sellada__regla, html.js:not(.js-listo) .sellada__pie,
html.js:not(.js-listo) .sellada__sello { animation: aparecer-seguro4 .6s ease 2.5s forwards; }
@keyframes aparecer-seguro4 { to { opacity: 1; transform: rotate(-2deg); } }

/* La evidencia dibujada: tarjeta con barra (nombre del archivo y «✓ Sellado») y el hilo verde arriba.
   Variantes: --chat, --correo, --foto, --audio, --video, --pdf. Varias juntas: .ev-pila (la última queda al frente). */
.ev {
  position: relative; width: 26em; overflow: hidden;
  background: #fff; color: #1f2427; border-radius: .8em; font-family: var(--f-texto);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 50px -24px rgba(0,0,0,.65), 0 10px 20px -12px rgba(0,0,0,.4);
}
.ev__hilo { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 2px; background: var(--verde); transform-origin: left; transition: transform 1.2s var(--lento); }
.ev__barra {
  display: flex; justify-content: space-between; align-items: center; gap: 1em;
  padding: 1.1em 1.3em 1em; border-bottom: 1px solid #ebe7de; background: #fff;
  font: 600 .68em/1.2 var(--f-texto); letter-spacing: .15em; text-transform: uppercase; color: var(--tinta-3); white-space: nowrap;
}
.ev__marca { display: inline-flex; align-items: center; gap: .45em; font: 400 1.08em/1 var(--f-mono); letter-spacing: .04em; text-transform: none; color: var(--verde); transition: opacity .8s ease .15s; }
.ev__marca svg { width: 1.15em; height: 1.15em; flex: none; }
.js .sellada:not(.is-sellando) .ev__marca { opacity: 0; }
.js .sellada:not(.is-sellando) .ev__hilo { transform: scaleX(0); }
.ev__meta { display: flex; justify-content: space-between; gap: 1em; margin: 0; padding: .95em 1.3em 1.1em; font: 400 .72em/1.35 var(--f-mono); letter-spacing: .02em; color: var(--tinta-2); }
.ev__meta span:last-child { text-align: right; }
/* Chat (WhatsApp): usa .chat__cab, .chat y .globo de la sección 9 */
.ev--chat .ev__chat { background: #ebe7de; padding-bottom: .4em; }
.ev--chat .chat { padding: .9em 1em .6em; }
.ev--chat .globo { font-size: .9em; }
/* Correo */
.ev__correo { padding: 1.2em 1.3em 1.3em; }
.ev__asunto { margin: 0 0 .85em; font: 600 1.02em/1.3 var(--f-texto); }
.ev__de { display: flex; align-items: center; gap: .7em; margin-bottom: .95em; font-size: .74em; line-height: 1.35; }
.ev__de b { font-weight: 600; }
.ev__de small { display: block; color: var(--tinta-3); font-size: .92em; }
.ev__avatar { width: 2.7em; height: 2.7em; flex: none; border-radius: 50%; display: grid; place-items: center; background: #dfe7e2; color: var(--verde); font-weight: 600; }
.ev__texto { margin: 0 0 1em; font-size: .8em; line-height: 1.55; color: #3a3f43; }
.ev__adjunto { display: inline-flex; align-items: center; gap: .6em; padding: .5em .8em; border: 1px solid #e3ded3; border-radius: .35em; font-size: .7em; }
.ev__adjunto small { color: var(--tinta-3); }
/* Foto, video: la imagen a todo el ancho de la tarjeta */
.ev__foto { display: block; width: 100%; height: auto; }
.ev__video { position: relative; display: block; aspect-ratio: 16 / 9; background: #15181a; overflow: hidden; }
.ev__video svg { display: block; width: 100%; height: 100%; }
.ev__play { position: absolute; left: 50%; top: 50%; width: 3.4em; height: 3.4em; margin: -1.7em 0 0 -1.7em; border-radius: 50%; background: rgba(15,17,19,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.ev__play::after { content: ""; position: absolute; left: 1.32em; top: 1.02em; border-style: solid; border-width: .68em 0 .68em 1.1em; border-color: transparent transparent transparent #f4f1e9; }
.ev__progreso { position: absolute; left: 1em; right: 1em; bottom: .9em; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); }
.ev__progreso i { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 2px; background: #f4f1e9; }
/* Audio (nota de voz) */
.ev__audio { display: flex; align-items: center; gap: .9em; padding: 1.4em 1.3em .5em; }
.ev__audio .ev__boton { width: 2.9em; height: 2.9em; flex: none; border-radius: 50%; background: var(--grafito); position: relative; }
.ev__audio .ev__boton::after { content: ""; position: absolute; left: 1.08em; top: .82em; border-style: solid; border-width: .63em 0 .63em 1em; border-color: transparent transparent transparent #f8f6f1; }
.ev__onda { flex: 1; height: 2.6em; min-width: 0; }
.ev__dura { font: 400 .8em/1 var(--f-mono); color: var(--tinta-2); }
/* PDF: el archivo como se ve en la carpeta del teléfono (sin hoja) */
.ev__archivo { display: flex; align-items: center; gap: 1em; padding: 1.4em 1.3em .6em; }
.ev__pdf { width: 3.2em; height: 3.2em; flex: none; border-radius: .55em; display: grid; place-items: center; background: #8a2a1b; color: #fff; font: 600 .82em/1 var(--f-texto); letter-spacing: .08em; }
.ev__archivo b { display: block; font-weight: 600; font-size: .9em; line-height: 1.3; overflow-wrap: anywhere; }
.ev__archivo small { display: block; margin-top: .25em; font-size: .74em; color: var(--tinta-3); }
/* Varias evidencias juntas. El padding de arriba deja lugar a las tarjetas de atrás, que suben con su transform
   (sin él, la de más atrás se montaba sobre lo que hubiera encima: las pestañas de «Qué sellamos», 16-10-2026). */
.ev-pila { display: grid; width: 26em; padding-top: 5.6em; }
.ev-pila > .ev { grid-area: 1 / 1; align-self: end; }
.ev-pila > .ev:nth-last-child(3) { transform: translate(-3.4em, -5.2em) rotate(-5deg) scale(.84); filter: brightness(.92); }
.ev-pila > .ev:nth-last-child(2) { transform: translate(3em, -2.4em) rotate(3.5deg) scale(.94); filter: brightness(.97); }

@media (prefers-reduced-motion: reduce) {
  .firma-viva path, .sellada__evidencia, .sellada__regla, .sellada__pie, .sellada__sello, .ev__marca, .ev__hilo { transition: none !important; }
  .is-golpe { animation: none; }
}

/* ===== FIN DEL SISTEMA. Estilos propios de una página: agregarlos DEBAJO de esta línea, con Edit (nunca reescribir el archivo), en un bloque «Página X». ===== */

/* ===== Titulares de portada en dos renglones: cortan parejo también en 360 px ===== */
.heroe__titulo .renglon > span { text-wrap: balance; }

/* ===== Listas dentro de las plegables, con signo menos (la letra chica y las dudas) ===== */
.pregunta__respuesta ul { list-style: none; margin: 0 0 1em; padding: 0; }
.pregunta__respuesta ul li { position: relative; padding-left: 26px; margin-bottom: .35em; }
.pregunta__respuesta ul li::before { content: ""; position: absolute; left: 2px; top: .82em; width: 12px; height: 1.5px; background: var(--texto-2); }
.pregunta__respuesta .enlace { margin-top: 4px; }

/* ===== Formulario de solicitud (#encargar): tres pasos y, al lado, por qué confiar (fijo al bajar) ===== */
.encargo .formulario__cuerpo { gap: clamp(48px, 5vw, 64px); }

.encargo .formulario__enviar .boton { min-width: 240px; }

.confianza { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.confianza li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.5; color: var(--tinta-2); }
.confianza li::before { content: ""; position: absolute; left: 0; top: .78em; width: 18px; height: 1px; background: var(--verde); }

@media (max-width: 760px) {
  .encargo .formulario__enviar .boton { width: 100%; }
}

/* ===== Página Comprobar (comprobar.html): campo grande del código (el resto de la página, al final del archivo) ===== */
.comprobar__zona { max-width: 620px; }
.comprobar .comprobar__form { gap: 12px; }
.comprobar .comprobar__form .entrada { min-height: 68px; padding: 0 20px; font-size: 22px; letter-spacing: .08em; }
.comprobar .comprobar__form .boton { min-height: 68px; padding: 0 34px; }
@media (max-width: 760px) {
  .comprobar .comprobar__form .entrada { min-height: 60px; font-size: 19px; }
  .comprobar .comprobar__form .boton { min-height: 56px; }
  /* Resultado de la comprobación (componente 14): cada dato arriba de su valor,
     para que la huella de 64 caracteres use todo el ancho (2 renglones en vez de 4) */
  .resultado dl { grid-template-columns: minmax(0, 1fr); }
  .resultado dt { padding-bottom: 2px; border-bottom: 0; }
  .resultado dd { padding-top: 0; }
}


/* ===== Landing (index.html, 16-10-2026): portada P2 «La firma en vivo» y sus secciones, sin informes ===== */
/* 1 · Portada: titular centrado, la firma a lo ancho y el sello que cae encima */
.portada {
  min-height: max(660px, 100svh); align-items: center;
  padding: calc(var(--alto-cabecera) + 8px) 0 40px; text-align: center;
  background:
    radial-gradient(60% 46% at 50% 64%, #2a2f33 0%, rgba(42,47,51,0) 72%),
    linear-gradient(180deg, #181b1e 0%, #141719 100%);
}
.portada .heroe__luz { background: radial-gradient(34% 30% at var(--lx, 50%) var(--ly, 60%), rgba(238,234,225,.06), rgba(238,234,225,0) 70%); }
.portada__dentro { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter); }
.portada__titulo { margin: 0 auto; font-size: clamp(46px, 6.5vw, 100px); line-height: .98; letter-spacing: -.045em; }
.portada__suave { color: var(--platino-2); }
.portada__bajada { max-width: 34em; margin: clamp(50px, 4.6vw, 68px) auto 30px; font-size: clamp(17px, 1.35vw, 20px); text-wrap: balance; }
.portada__accion { justify-content: center; gap: 18px 30px; }
/* Entrada: el sello cae y se imprime, el titular sube, luego la línea y el botón */
.is-listo .portada .heroe__bajada { transition-delay: 1.1s; }
.is-listo .portada .heroe__accion { transition-delay: 1.3s; }
@keyframes aparecer-sello { to { opacity: 1; transform: rotate(-7deg); } }

.perito__rejilla { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(48px, 7vw, 120px); align-items: center; }
.perito .titulo, .comprueban .titulo { font-size: clamp(38px, 4.1vw, 60px); }

/* 8 · Que lo comprueben ellos: un QR grande y un celular que lo escanea (sin hoja); la comprobación vive en comprobar.html */
.comprueban__rejilla { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.comprueban .encabezado { margin-bottom: 0; }
.comprueban__boton { margin-top: 36px; }
.escaneo { position: relative; margin: 0; width: 100%; max-width: 600px; height: 590px; justify-self: end; }
.escaneo__qr { position: absolute; left: 0; top: 34px; width: min(340px, 60%); padding: 22px; background: var(--hueso); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 1px rgba(0,0,0,.35), 0 40px 80px -30px rgba(0,0,0,.85); }
.escaneo__qr .qr__marco { padding: 18px; }
.escaneo__tel { position: absolute; right: 0; bottom: 0; margin: 0; font-size: 12.5px; transform: rotate(4deg); }
.escaneo__tel .tel__pantalla { height: 31em; }
.escaneo__url { margin: 0; padding: .75em 1.2em; background: #f7f5f0; border-bottom: 1px solid #ddd8cd; font-size: .78em; color: var(--tinta-2); text-align: center; }
.escaneo__res { padding: 1.4em 1.35em; background: #fbfaf7; flex: 1; }
.escaneo__cab { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin: 0 0 1em; font-size: .86em; color: var(--tinta-2); }
.escaneo__ejemplo { padding: .42em .6em; border: 1px solid #b9b2a4; font: 600 .74em/1 var(--f-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); }
.escaneo__ok { display: flex; align-items: center; gap: .6em; margin: 0 0 .9em; padding: .8em 1em; background: var(--verde-fondo); color: var(--verde); font-weight: 600; font-size: .95em; }
.escaneo__ok::before { content: ""; width: 1.25em; height: 1.25em; flex: none; border-radius: 50%; background: var(--verde) var(--check-blanco) center / .7em no-repeat; }
.escaneo__res dl { margin: 0; }
.escaneo__res dl > div { display: grid; gap: .2em; padding: .75em 0; border-bottom: 1px solid #e3ded3; }
.escaneo__res dt { font-size: .68em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-3); }
.escaneo__res dd { margin: 0; font-size: .92em; color: var(--tinta); }
.escaneo__res dd.mono { font-size: .8em; letter-spacing: .01em; overflow-wrap: anywhere; }
.js [data-escaneo] .escaneo__ok, .js [data-escaneo] .escaneo__res dl > div { opacity: 0; transform: translateY(6px); transition: opacity .9s ease, transform 1s var(--lento); }
.js [data-escaneo].is-in .escaneo__ok, .js [data-escaneo].is-in .escaneo__res dl > div { opacity: 1; transform: none; }
.js [data-escaneo].is-in .escaneo__ok { transition-delay: 1.3s; }
.js [data-escaneo].is-in .escaneo__res dl > div:nth-child(1) { transition-delay: 1.6s; }
.js [data-escaneo].is-in .escaneo__res dl > div:nth-child(2) { transition-delay: 1.85s; }
.js [data-escaneo].is-in .escaneo__res dl > div:nth-child(3) { transition-delay: 2.1s; }
.js [data-escaneo].is-in .escaneo__res dl > div:nth-child(4) { transition-delay: 2.35s; }

/* Pie: la promesa de marca arriba, en grande (desde el 16-10, en todas las páginas) */
.pie__lema { width: 100%; margin: 0 0 22px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.07); font: 300 clamp(24px, 2.5vw, 36px)/1.2 var(--f-display); letter-spacing: -.02em; color: var(--marfil); text-wrap: balance; }

@media (max-width: 1080px) {
  .fichas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; }
  .ficha { flex: 0 0 calc((100% - 30px) / 4); }
  .perito__rejilla, .comprueban__rejilla { grid-template-columns: minmax(0, 1fr); }
  .escaneo { justify-self: center; }
}
@media (max-width: 900px) {
  .portada { min-height: max(640px, 100svh); align-items: center; padding: calc(var(--alto-cabecera) + 16px) 0 48px; }
}
@media (max-width: 760px) {
  .portada { min-height: 100svh; padding: calc(var(--alto-cabecera) + 12px) 0 28px; }
  .portada__titulo { font-size: clamp(34px, 10.2vw, 54px); line-height: 1.02; margin-bottom: 0; }
  .portada__bajada { margin: 62px auto 24px; font-size: 16.5px; }
  .portada__accion { gap: 12px; }

  .ficha { --c: 8px; flex-basis: calc((100% - 24px) / 4); min-height: 64px; gap: 4px; padding: 9px 2px 12px; }
  .fichas { gap: 8px; }
  .ficha__n { font-size: 10px; }
  .ficha__p { font-size: 16.5px; }
  .ficha__p::after { bottom: -6px; }

  .escaneo { height: auto; display: grid; max-width: 420px; }
  .escaneo__qr { position: relative; top: 0; width: min(270px, 74%); padding: 16px; }
  .escaneo__qr .qr__marco { padding: 12px; }
  .escaneo__tel { position: relative; justify-self: end; margin-top: -120px; font-size: 11px; }
  .escaneo__tel .tel__pantalla { height: 30em; }

  .pie__lema { margin-bottom: 14px; padding-bottom: 24px; }
}
@media (max-width: 380px) {
  .ficha__p { font-size: 15px; }
}

/* ===== Landing (index.html, 16-10-2026): lo que reemplaza a las 7 páginas ===== */
.pregunta__respuesta h4 { margin: 1.7em 0 .55em; font: 600 12.5px/1.3 var(--f-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--texto); }
.pregunta__respuesta h4:first-child { margin-top: .2em; }
.pregunta__respuesta p b { font-weight: 600; color: var(--texto); }

/* 6 · Qué sellamos (antes las 4 páginas por tipo): pestañas con esquinas de sello y, en cada panel,
   «evidencia + firma + sello», el titular, cómo enviarlo, una duda plegada y el enlace al formulario.
   Los paneles van apilados en la misma celda: la sección no cambia de alto al pasar de uno a otro. */
.sellar .encabezado { margin-bottom: clamp(36px, 4vw, 56px); }
.fichas--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 980px; margin: 0; }
.pestanas__paneles { margin-top: clamp(44px, 5vw, 76px); }
.js .pestanas__paneles { display: grid; }
.js .panel-tipo { grid-area: 1 / 1; }
.js .panel-tipo:not(.is-activa) { visibility: hidden; opacity: 0; pointer-events: none; }
.js .panel-tipo.is-activa { animation: panel-entra .55s var(--lento); }
@keyframes panel-entra { from { opacity: 0; } }
html:not(.js) .panel-tipo + .panel-tipo { margin-top: 96px; }
.panel-tipo { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.panel-tipo .sellada { --s-fs: clamp(10px, .98vw, 14px); justify-self: center; }
.panel-tipo__texto { max-width: 32em; }
.panel-tipo__titulo { margin: 0 0 18px; font: 300 clamp(32px, 3.05vw, 46px)/1.06 var(--f-display); letter-spacing: -.035em; color: var(--marfil); text-wrap: balance; }
.panel-tipo .linea { margin-bottom: 26px; }
.panel-tipo .pregunta--chica { border-top: 1px solid var(--borde); margin-bottom: 22px; }
/* Duda plegable chica (paneles de «Qué sellamos») */
.pregunta--chica summary { padding: 16px 44px 16px 0; font: 600 15.5px/1.45 var(--f-texto); letter-spacing: 0; }
.pregunta--chica .pregunta__respuesta { padding: 0 0 20px; font-size: 15.5px; line-height: 1.6; }

/* 10 · Encargar (antes encargo.html) */
.encargo .encabezado { max-width: 940px; margin-bottom: clamp(44px, 5vw, 72px); }

@media (max-width: 1080px) {
  .fichas--4 { justify-content: flex-start; margin: 0; max-width: none; }
}
@media (max-width: 900px) {
  .panel-tipo { grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
  .panel-tipo .sellada { --s-fs: min(12px, calc((100vw - 2 * var(--gutter)) / 40)); }
}
@media (max-width: 760px) {
  .fichas--4 .ficha { flex-basis: calc((100% - 8px) / 2); }
  .panel-tipo .sellada { width: 34em; --s-fs: min(11.5px, calc((100vw - 2 * var(--gutter)) / 34)); }
}
@media (prefers-reduced-motion: reduce) {
  .js .panel-tipo.is-activa { animation: none; }
}

/* ===== Página Comprobar (comprobar.html, 16-10-2026): centrada y sin ejemplos. Solo el sello de la marca,
   el titular, el campo del código, el resultado real de comprobar.php y una línea para comparar la huella. ===== */
.comprobar { text-align: center; }
.comprobar__dentro { width: 100%; max-width: 860px; margin: 0 auto; padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: center; }
.comprobar__sello { width: clamp(140px, 12vw, 188px); height: auto; margin: 0 0 clamp(26px, 3vw, 40px); }
.comprobar__rotulo { justify-content: center; }
.comprobar__rotulo::after { content: ""; width: 24px; height: 1px; background: var(--acento); flex: none; }
.comprobar__titulo { margin: 0 0 26px; font-size: clamp(46px, 6.4vw, 96px); line-height: .98; letter-spacing: -.045em; }
.comprobar__bajada { max-width: 31em; margin: 0 auto 40px; text-wrap: balance; }
.comprobar__zona { width: 100%; text-align: left; }
.comprobar .resultado { margin-top: 20px; }
.comprobar__huella { margin: 26px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--platino-2); }
.comprobar__huella code { padding: .12em .45em; background: rgba(255,255,255,.07); font: 400 13.5px/1.5 var(--f-mono); color: var(--marfil); white-space: nowrap; }
@media (max-width: 760px) {
  .comprobar__titulo { font-size: clamp(40px, 12.4vw, 58px); line-height: 1.02; }
  .comprobar__bajada { margin-bottom: 30px; font-size: 16.5px; }
}

/* ===== Landing · correcciones de Javi del 16-10-2026 (tarde): portada mínima, el perito con foto y firma,
   el formulario de una sola pantalla con archivos (#encargar) y la letra chica en los términos (#lo-que-hace) ===== */

/* 1 · Portada mínima: el sello en relieve arriba, como el timbre de una notaría; el titular, una línea y el botón */
.portada { min-height: max(600px, 90svh); }
.portada__sello { display: block; width: clamp(150px, 13.5vw, 212px); height: auto; margin: 0 auto clamp(28px, 3.4vw, 46px); overflow: visible; transform: rotate(-6deg); }
.js .portada__sello { opacity: 0; transform: rotate(-6deg) scale(1.25); }
.is-listo .portada__sello { opacity: 1; transform: rotate(-6deg); transition: opacity .25s ease .85s, transform .6s cubic-bezier(.3, 1.6, .5, 1) .85s; }
html.js:not(.js-listo) .portada__sello { animation: aparecer-sello2 .6s ease 2.5s forwards; }
@keyframes aparecer-sello2 { to { opacity: 1; transform: rotate(-6deg); } }
.portada__bajada { max-width: 31em; margin: clamp(26px, 2.8vw, 38px) auto clamp(30px, 3vw, 40px); }
.is-listo .portada .heroe__bajada { transition-delay: .5s; }
.is-listo .portada .heroe__accion { transition-delay: .65s; }

/* 3 · El perito: foto con esquinas de sello, nombre, credencial, bio corta y la firma que se escribe sola */
.perito__rejilla { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(44px, 6vw, 104px); align-items: center; }
.perito__foto { --c: 22px; position: relative; isolation: isolate; margin: 0; padding: 10px; }
.perito__foto::before, .perito__foto::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.perito__foto::before { inset: 0; background: rgba(238,234,225,.2); }
.perito__foto::after { inset: 1px; background: var(--g-900); }
.perito__foto img { --c2: calc(var(--c) - 6px); width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(var(--c2) 0, calc(100% - var(--c2)) 0, 100% var(--c2), 100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%, var(--c2) 100%, 0 calc(100% - var(--c2)), 0 var(--c2)); }
.perito__texto { min-width: 0; max-width: 620px; }
.perito__nombre { margin-bottom: .32em; font-size: clamp(38px, 4.1vw, 60px); }
.perito__rol { margin: 0 0 20px; max-width: 34em; padding-left: 16px; border-left: 1px solid var(--verde-hilo); font-size: 15.5px; line-height: 1.55; color: var(--marfil); }
.perito__firma { position: relative; width: min(100%, 560px); margin-top: clamp(26px, 3vw, 40px); padding-right: clamp(104px, 9.5vw, 136px); color: var(--marfil); }
.perito__regla { display: block; height: 1px; margin-top: -16px; background: linear-gradient(90deg, var(--verde-hilo), rgba(42,122,90,.18)); }
.perito__pie { margin: 10px 0 0; font: 400 11.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--platino-2); }
.perito__sello { position: absolute; right: 0; bottom: 8px; width: clamp(96px, 8.6vw, 128px); height: auto; transform: rotate(-8deg); overflow: visible; }
.js .perito__firma:not(.is-sellando) .perito__sello { opacity: 0; transform: rotate(-8deg) scale(1.22); }
.js .perito__firma.is-sellando .perito__sello { opacity: 1; transform: rotate(-8deg); transition: opacity .18s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.js .perito__firma:not(.is-firmada) .perito__pie { opacity: 0; }
.perito__firma.is-firmada .perito__pie { transition: opacity .8s ease; }
/* «Qué sellamos» y «Que lo comprueben ellos» quedan seguidas en oscuro: una línea fina las separa */
.sellar + .comprueban::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(238,234,225,.09); }

.encargo .encabezado { margin-bottom: clamp(30px, 3.4vw, 46px); }
/* 3 · Tus datos: tres campos en fila y, debajo, el consentimiento y el botón */
.bloque__cierre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 18px 36px; align-items: start; padding-top: 18px; border-top: 1px solid var(--linea-clara); }
.encargo .formulario__enviar { flex-direction: column; align-items: stretch; gap: 10px; }
.encargo .formulario__enviar .boton { width: 100%; min-width: 0; }
.encargo .formulario__micro { flex: none; font-size: 13.5px; }
.confianza--fila { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 24px 0 0; }
.confianza--fila li { font-size: 14px; }

/* La letra chica completa vive en terminos.html (#lo-que-hace), en negro como todo lo legal */
.legal h3 { margin: 1.6em 0 .45em; font: 600 17px/1.35 var(--f-texto); }

@media (max-width: 1080px) {
  .perito__rejilla { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  .bloque__cierre { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .portada { min-height: 88svh; }
  .portada__sello { width: 148px; margin-bottom: 28px; }
  .portada__titulo { font-size: clamp(34px, 11.2vw, 56px); }
  .portada__bajada { margin: 22px auto 28px; }
  .perito__rejilla { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .perito__foto { --c: 16px; width: min(78%, 300px); }
  .perito__firma { padding-right: 92px; }
  .perito__sello { width: 88px; bottom: 6px; }
  .perito__regla { margin-top: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .portada__sello, .perito__sello, .perito__pie { transition: none !important; }
}

/* ===== Landing · tercera ronda de Javi (16-10-2026): portada con guilloché, el perito con firma de trazo,
   la foto en la galería del celular y el formulario por pasos (#encargar) ===== */
/* 1 · Portada: guilloché (las líneas finas de los billetes; _fuentes/guilloche.py) y una luz rasante que pasa lenta.
   El centro queda más oscuro (velo) para que el titular y la descripción se lean igual que antes. */
.portada__fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* La descripción va un tono más clara que el platino: sobre el guilloché y con la luz rasante encima sigue sobre 5:1 */
.portada .portada__bajada { color: #e4e0d7; }
.portada__fondo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 42% 36% at 50% 62%, rgba(22,25,28,.82) 0%, rgba(22,25,28,.6) 55%, rgba(22,25,28,0) 100%); }
.portada__ondas { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: .6; }
.portada__ondas .gl-a { stroke: rgba(205,201,192,.085); }
.portada__ondas .gl-b { stroke: rgba(143,191,166,.07); }
.portada__roseta { position: absolute; left: 50%; top: 54%; width: min(1180px, 112vw); max-width: none; height: auto; aspect-ratio: 1; stroke-width: .6; transform: translate(-50%, -50%); }
.portada__roseta .gl-a { stroke: rgba(205,201,192,.15); }
.portada__roseta .gl-v { stroke: rgba(111,170,138,.26); }
.portada__rasante { position: absolute; top: -10%; bottom: -10%; left: -60%; width: 220%; background: linear-gradient(102deg, rgba(244,241,233,0) 44%, rgba(244,241,233,.04) 49%, rgba(244,241,233,.06) 50%, rgba(244,241,233,.04) 51%, rgba(244,241,233,0) 56%); transform: translateX(-60%); }
.js .portada__fondo { opacity: 0; }
.is-listo .portada__fondo { opacity: 1; transition: opacity 2.2s ease .15s; }
html.js:not(.js-listo) .portada__fondo { animation: aparecer-seguro2 .6s ease 2.5s forwards; }
@media (prefers-reduced-motion: no-preference) {
  .portada__roseta { animation: gl-giro 360s linear infinite; will-change: transform; }
  .portada__rasante { animation: gl-rasante 17s cubic-bezier(.45, .05, .35, 1) 1.4s infinite; will-change: transform; }
  .portada.is-fuera .portada__roseta, .portada.is-fuera .portada__rasante { animation-play-state: paused; }
}
@keyframes gl-giro { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes gl-rasante { 0% { transform: translateX(-60%); } 46%, 100% { transform: translateX(60%); } }
@media (max-width: 760px) {
  .portada__roseta { width: 150vw; top: 47%; }
  .portada__fondo::after { background: radial-gradient(ellipse 80% 34% at 50% 56%, rgba(22,25,28,.82) 0%, rgba(22,25,28,.55) 60%, rgba(22,25,28,0) 100%); }
}

/* 3 · El perito: titular en positivo, el nombre completo debajo y la firma de trazo (la de la portada P2) */
.perito .perito__titular { max-width: 15em; margin: 0 0 22px; font-size: clamp(32px, 3.3vw, 50px); line-height: 1.06; text-wrap: balance; }
.perito__nombre { margin: 0 0 14px; font: 300 clamp(22px, 2vw, 28px)/1.2 var(--f-display); letter-spacing: -.015em; color: var(--marfil); }
.perito__firma { width: min(100%, 540px); }
.perito__trazo { --firma-grosor: 2.2; width: 100%; height: auto; }
.perito .perito__regla { margin-top: -10px; }
.perito__sello { bottom: 14px; }

/* 4 · Qué sellamos: sin firma, la regla baja bajo la evidencia. La foto, en la galería del celular. */
.panel-tipo .sellada__regla { margin-top: 1.7em; }
.panel-tipo .sellada__sello { bottom: 6.8em; }
.ev--movil { width: 18.5em; padding: .45em; border-radius: 2.1em; background: linear-gradient(150deg, #3a4045 0%, #1a1d20 42%, #0e1012 100%); color: #f4f1e9; overflow: visible;
  box-shadow: 0 0 0 1px #0b0c0d, inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 50px -24px rgba(0,0,0,.7), 0 10px 20px -12px rgba(0,0,0,.45); }
.ev--movil > :not(.ev__hilo) { background: #050607; }
.ev--movil .ev__hilo { top: .45em; left: 2.2em; right: 2.2em; height: 2px; background: var(--salvia); }
.movil__estado { display: flex; justify-content: space-between; align-items: center; padding: 1em 1.6em .5em 1.8em; border-radius: 1.7em 1.7em 0 0; font: 600 .72em/1 var(--f-texto); }
.movil__cab { display: flex; align-items: center; gap: .7em; padding: .55em 1em .8em; }
.movil__volver { width: .62em; height: 1em; flex: none; }
.movil__fecha { flex: 1; min-width: 0; display: grid; gap: .25em; line-height: 1.2; }
.movil__fecha b { font-size: .8em; font-weight: 600; }
.movil__fecha small { font: 400 .62em/1.2 var(--f-mono); color: #a9a59c; white-space: nowrap; }
.ev--movil .ev__marca { font-size: .7em; color: var(--salvia); }
.movil__foto { display: block; width: 100%; height: auto; }
.movil__info { display: flex; justify-content: space-between; gap: 1em; margin: 0; padding: .8em 1.15em .4em; font: 400 .62em/1.3 var(--f-mono); color: #a9a59c; }
.movil__barra { display: flex; justify-content: space-around; padding: .55em 1em 1.15em; border-radius: 0 0 1.7em 1.7em; color: #e9e5dc; }
.movil__barra svg { width: 1.15em; height: 1.15em; }
#panel-foto .sellada__sello { right: 3.4em; bottom: 8.2em; }

/* El perito, «Qué sellamos» y «Que lo comprueben ellos» van seguidos en oscuro: una línea fina los separa */
.perito + .sellar::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(238,234,225,.09); }

/* 7 · Formulario por pasos: pestañas arriba (1 Tus archivos · 2 Tu mensaje · 3 Tus datos), un paso a la vista.
   Sin JavaScript: los tres pasos uno debajo del otro, con su número. */
.solicitud { max-width: 980px; }
.encargo .formulario__cuerpo.solicitud__cuerpo { gap: 18px; }
.formulario.esta-enviado .pasos-tabs { display: none; }
.pasos-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px; background: var(--blanco-papel); border: 1px solid var(--linea-clara); }
.paso-tab { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; margin: 0; padding: 10px 18px; background: none; border: 0; border-right: 1px solid var(--linea-clara); border-radius: 0; cursor: pointer; text-align: left; font: 600 16px/1.2 var(--f-texto); color: var(--tinta-2); transition: color var(--rapido) ease, background-color var(--rapido) ease; -webkit-tap-highlight-color: transparent; }
.paso-tab:last-child { border-right: 0; }
.paso-tab__n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--linea-campo); border-radius: 50%; font: 400 13px/1 var(--f-mono); color: var(--tinta-2); background: #fff; }
.paso-tab__t { min-width: 0; }
.paso-tab__r { margin-left: auto; font: 400 12.5px/1.2 var(--f-mono); color: var(--tinta-2); white-space: nowrap; }
.paso-tab:hover { color: var(--tinta); background: #fff; }
.paso-tab[aria-selected="true"] { color: var(--tinta); background: #fff; box-shadow: inset 0 -3px 0 var(--verde); }
.paso-tab[aria-selected="true"] .paso-tab__n { background: var(--verde); border-color: var(--verde); color: #fff; }
.paso-tab.es-hecho:not([aria-selected="true"]) .paso-tab__n { border-color: var(--verde); background: var(--verde-fondo) var(--check) center / 13px no-repeat; color: transparent; }
.paso-tab.es-invalido .paso-tab__n { border-color: var(--error); color: var(--error); background: var(--error-fondo); }
.paso-tab:focus-visible { outline: 2px solid var(--verde); outline-offset: -3px; }
.paso { display: grid; gap: 18px; align-content: start; min-width: 0; padding: clamp(20px, 2.6vw, 32px); background: var(--blanco-papel); border: 1px solid var(--linea-clara); }
.paso[hidden] { display: none; }
.paso:focus { outline: none; }
.paso__cab, .bloque__cab { display: flex; align-items: center; gap: 12px; margin: 0; font: 600 17px/1.3 var(--f-texto); color: var(--tinta); }
.bloque__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid var(--verde); border-radius: 50%; font: 400 13px/1 var(--f-mono); color: var(--verde); }
.paso__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 18px; border-top: 1px solid var(--linea-clara); }
.paso__nav .boton--linea { margin-right: auto; }
.paso__nav--atras { padding-top: 0; border-top: 0; justify-content: flex-start; }
.boton__flecha--atras { transform: none !important; }
.boton:hover .boton__flecha--atras { transform: translateX(-4px) !important; }
.solicitud textarea { min-height: 136px; }
.js .sin-js, .js [data-sin-js], html:not(.js) .solo-js { display: none; }
/* Paso 1 (16-10, Javi: «pensar en las personas que no entienden mucho»): «+ Agregar archivo», de dónde sacarlo (con guía),
   zona para arrastrar en el computador y «Prefiero que me ayuden». Cada archivo elegido es una fila. */
.origen__icono, .fila__icono svg, .soltar__icono { fill: none; stroke: currentColor; stroke-width: 1.6; }
.filas { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.filas:empty { display: none; }
.fila { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--linea-clara); }
.fila__icono { display: grid; place-items: center; width: 40px; height: 40px; background: var(--hueso); color: var(--tinta-2); }
.fila__icono svg { width: 22px; height: 22px; }
.fila__info { min-width: 0; display: grid; gap: 3px; }
.fila__nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--tinta); }
.fila__dato { font-size: 14.5px; line-height: 1.45; color: var(--tinta-2); overflow-wrap: anywhere; }
.fila__dato b { font-weight: 600; color: var(--verde); white-space: nowrap; }
.fila__barra { position: relative; display: block; height: 4px; overflow: hidden; background: var(--hueso-2); border-radius: 2px; }
.fila__barra i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--p, 0) * 100%); background: var(--verde); transition: width .2s linear; }
.fila__que { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--tinta-2); }
.fila__tipo { min-height: 44px; padding: 0 34px 0 10px; background: var(--blanco-papel) var(--chevron) right 10px center / 12px 8px no-repeat; border: 1px solid var(--linea-campo); border-radius: var(--radio); font: 400 16px/1.2 var(--f-texto); color: var(--tinta); -webkit-appearance: none; appearance: none; cursor: pointer; }
.fila__tipo:focus { outline: 2px solid var(--verde); outline-offset: 1px; }
.fila__acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.fila__boton { min-height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--linea-campo); border-radius: var(--radio); font: 600 14.5px/1 var(--f-texto); color: var(--tinta); cursor: pointer; }
.fila__boton:hover { border-color: var(--tinta); background: var(--hueso); }
.fila__reintentar { border-color: var(--error); color: var(--error); }
.fila__reintentar:hover { background: var(--error); border-color: var(--error); color: #fff; }
.fila--ok { border-color: var(--verde-hilo); }
.fila--ok .fila__icono { background: var(--verde-fondo); color: var(--verde); }
.fila--error { border-color: var(--error); background: #fffaf8; }
.fila--error .fila__icono { background: var(--error-fondo); color: var(--error); }
.fila--grande { border-color: #a07a2c; background: #fffaf0; }
.fila__motivo { font-size: 14px; font-weight: 600; color: var(--error); }
.fila__aviso { font-size: 14px; color: #5e4615; }
.agregar { display: grid; gap: 12px; }
.agregar__boton { width: 100%; min-height: 60px; gap: 10px; font-size: 17px; }
.agregar__mas { font: 300 30px/0 var(--f-display); }
.soltar__icono, .soltar__texto { display: none; }
.origenes__pregunta { margin: 6px 0 0; font-weight: 600; color: var(--tinta); }
.origenes { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.origen { display: grid; grid-template-rows: 1fr auto; background: #fff; border: 1px solid var(--linea-clara); }
.origen__boton { display: grid; align-content: start; justify-items: start; gap: 10px; min-height: 92px; margin: 0; padding: 14px 14px 10px; background: none; border: 0; text-align: left; font: 600 15.5px/1.3 var(--f-texto); color: var(--tinta); cursor: pointer; }
.origen__boton small { display: block; font-size: 14px; font-weight: 400; color: var(--tinta-2); }
.origen__icono { width: 26px; height: 26px; color: var(--verde); }
.origen__boton:hover { background: var(--verde-fondo); }
.origen__guia { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-top: 1px solid var(--linea-clara); font-size: 14.5px; color: var(--verde); text-decoration: underline; text-underline-offset: 3px; }
.origen.es-sugerido { border-color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); }
.calma, .ayuda-humana__nota, .ayuda-humana__eco { margin: 0; padding-left: 12px; border-left: 2px solid var(--verde); font-size: 15.5px; line-height: 1.5; color: var(--tinta); }
.ayuda-humana { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 16px 18px; background: var(--hueso); border: 1px solid var(--linea-clara); cursor: pointer; font-size: 15.5px; line-height: 1.5; color: var(--tinta-2); }
.ayuda-humana b { display: block; font-size: 17px; color: var(--tinta); }
.ayuda-humana input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--verde); cursor: pointer; }
.ayuda-humana:has(input:checked) { border-color: var(--verde); background: var(--verde-fondo); }
.ayuda-humana:has(input:focus-visible) { outline: 2px solid var(--verde); outline-offset: 2px; }
.ayuda-humana__nota, .ayuda-humana__eco, .listo__ayuda { display: none; }
.formulario:has(#ayuda:checked) :is(.ayuda-humana__nota, .ayuda-humana__eco, .listo__ayuda) { display: block; }
.formulario__listo .listo__ayuda { color: var(--tinta); }
/* Computador: zona grande para arrastrar (o hacer clic) con el botón adentro */
@media (hover: hover) and (pointer: fine) {
  .soltar { display: grid; justify-items: center; gap: 10px; padding: 24px 20px; background: #fff; border: 1.5px dashed var(--linea-campo); text-align: center; cursor: pointer; transition: border-color var(--rapido) ease, background-color var(--rapido) ease; }
  .soltar:hover, .soltar.es-encima, .arrastrando .soltar { border-color: var(--verde); background: var(--verde-fondo); }
  .soltar__icono { display: block; width: 32px; height: 32px; color: var(--verde); }
  .soltar__texto { display: block; margin: 0; font: 300 clamp(20px, 1.8vw, 24px)/1.25 var(--f-display); color: var(--tinta); }
  .agregar__boton { width: auto; }
}
/* Paso 3: nombre y correo; cómo te contactamos y el teléfono */
.datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.contacto__opciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contacto__op { position: relative; cursor: pointer; }
.contacto__op input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.contacto__op span { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 8px; background: var(--blanco-papel); border: 1px solid var(--linea-campo); border-radius: var(--radio); font-weight: 600; color: var(--tinta); }
.contacto__op input:checked + span { border-color: var(--verde); background: var(--verde-fondo); box-shadow: inset 0 0 0 2px var(--verde); }
.contacto__op input:focus-visible + span { outline: 2px solid var(--verde); outline-offset: 2px; }
@media (max-width: 900px) {
  .origenes { grid-template-columns: minmax(0, 1fr); }
  .origen { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; }
  .origen__boton { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; }
  .origen__guia { padding: 0 12px; border-top: 0; border-left: 1px solid var(--linea-clara); }
}
@media (max-width: 760px) {
  .pasos-tabs { margin-bottom: 10px; }
  .paso-tab { flex-direction: column; justify-content: center; gap: 6px; min-height: 72px; padding: 8px 4px; text-align: center; font-size: 14.5px; }
  .paso-tab__r { display: none; }
  .paso { padding: 18px 16px; }
  .paso__nav .boton { flex: 1 1 auto; }
  .paso__nav .boton--linea { flex: 0 0 auto; }
  .datos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .fila { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: start; padding: 10px; gap: 8px 10px; }
  .fila__icono { width: 36px; height: 36px; }
  .fila__acciones { flex-direction: column; }
  .fila__dato b { display: block; }
  .fila__dato i { display: none; }
}
@media (max-width: 400px) {
  .origen__boton { font-size: 15px; }
  .origen__guia { font-size: 14px; padding: 0 10px; }
}
