/* Tidy Verifactu · mini-web (25-oct-2026). Dirección «La frase es la composición» (taste-skill, semilla 1609246568).
   Paleta de la marca (verde azulado del icono), tipografía Erode. Sin degradados, sin sombras en reposo, sin líneas finas. */
:root {
  --bg: #f2f4f3; --surface: #e2e9e7; --ink: #0c1d1b; --muted: #3c4e4b;
  --accent: #0f766e; --accent-ink: #ffffff; --accent-press: #0b5f58;
  --field: #187168; --field-ink: #021614; --field-paper: #e9f3f1;
  --deep: #0c1d1b; --deep-paper: #eef3f2; --deep-step: #172b28;
  --m: clamp(20px, 2.6vw, 32px);
  /* escala única: pequeño · texto · entrada · título · sección · enunciado · cartel (y el nombre del pie, que es un dibujo) */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1rem + 2.2vw, 2.75rem);
  --step-section: clamp(2.5rem, 5.5vw, 5rem);
  --step-statement: clamp(3rem, 8.5vw, 7.75rem);
  --step-display: clamp(4rem, 15vw, 16rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: Erode, Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: var(--step-body); line-height: 1.5; font-weight: 400; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: .95; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── botones: rectángulo plano, un solo color, esquinas rectas ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink);
  font: 600 var(--step-body)/1 Erode, Georgia, serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .18s var(--ease), background-color .18s var(--ease); }
.btn:hover { background: var(--accent-press); }
.btn:active { transform: translateY(1px) scale(.98); }
.link { font-weight: 600; transition: opacity .18s var(--ease); }
.link:hover { opacity: .7; }

/* ── cabecera: barra plana que toma los colores del capítulo de debajo ── */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 var(--m);
  background: var(--bg); color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease); }
.top[data-tone="field"] { background: var(--field); color: var(--field-paper); }
.top[data-tone="deep"] { background: var(--deep); color: var(--deep-paper); }
.top[data-tone="surface"] { background: var(--surface); }
.top .marca { font-weight: 600; font-size: var(--step-body); text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.top nav { display: flex; gap: 24px; }
.top nav a { text-decoration: none; font-size: var(--step-body); transition: opacity .18s; }
.top nav a:hover { opacity: .65; }
.top .btn { min-height: 40px; padding: 0 16px; }
.top[data-tone="field"] .btn { background: var(--field-paper); color: var(--field); }
.top[data-tone="deep"] .btn { background: var(--deep-paper); color: var(--deep); }

/* ── portada: dos campos, la frase cortada por la costura ── */
.hero { position: relative; height: calc(100svh + 30svh); min-height: 760px; background: var(--field); --seam: 50svh; }
.hero .arriba { position: absolute; left: 0; right: 0; top: 0; height: var(--seam); background: var(--bg); }
.hero .abajo-marca { position: absolute; left: 0; right: 0; top: var(--seam); bottom: 0; }
/* un solo titular con dos tintas: la costura (a 1,2 em de su borde superior) corta la segunda línea por su tercio alto */
.frase { position: absolute; left: var(--m); right: var(--m); top: calc(var(--seam) - 1.2em); font-size: var(--step-display); font-weight: 500; letter-spacing: -0.035em; line-height: .9; margin: 0; }
.frase .tinta { display: block; }
.frase .tinta > span { display: block; white-space: nowrap; }
.frase .a { color: var(--ink); clip-path: inset(0 0 calc(100% - 1.2em) 0); }
.frase .b { position: absolute; inset: 0; color: var(--field-ink); clip-path: inset(1.2em 0 0 0); }
.qr { display: inline-block; width: .82em; height: .82em; vertical-align: -.02em; margin-right: .16em; background: #fff; padding: .05em; }
.qr svg { width: 100%; height: 100%; }
.hero .apoyo { position: absolute; left: var(--m); bottom: calc(30svh + 76px); max-width: 34ch; color: var(--field-paper); font-size: var(--step-lead); line-height: 1.3; margin: 0; }
.hero .nota { position: absolute; left: var(--m); bottom: calc(30svh + 36px); color: var(--field-paper); font-size: var(--step-small); margin: 0; opacity: .9; }

/* ── secciones: capítulos de color ── */
section { position: relative; }
.cap-paper { background: var(--bg); color: var(--ink); }
.cap-field { background: var(--field); color: var(--field-paper); }
.cap-deep { background: var(--deep); color: var(--deep-paper); }
.cap-surface { background: var(--surface); color: var(--ink); }
.pad { padding: 168px var(--m); }

/* ── cómo funciona: arrastra por las etapas ── */
.etapas { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'izq der' 'riel riel'; grid-template-rows: 1fr auto; min-height: 88svh; position: relative; }
.etapas .izq { grid-area: izq; background: var(--deep); color: var(--deep-paper); padding: 120px var(--m) 96px; }
.etapas .der { grid-area: der; background: var(--surface); display: grid; place-items: center; padding: 96px var(--m); }
.clausula { font-size: var(--step-section); max-width: 14ch; min-height: 2em; font-weight: 500; line-height: .95; letter-spacing: -0.025em; margin: 0; }
h1, h2, h3, .clausula { text-wrap: balance; }
.etapas .explica { margin-top: 28px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.vis { transition: opacity .2s var(--ease); }
.vis[hidden] { display: none; }
.riel { grid-area: riel; position: relative; background: var(--bg); padding: 28px var(--m) 32px; }
.riel input { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; }
.pista { position: absolute; left: var(--m); right: var(--m); top: 40px; height: 8px; background: #9db1ad; pointer-events: none; }
.pista i { display: block; height: 100%; width: var(--pct, 0%); background: var(--ink); transition: width .2s var(--ease); }
.riel input { position: relative; }
.riel input::-webkit-slider-runnable-track { height: 8px; background: transparent; }
.riel input::-moz-range-track { height: 8px; background: transparent; }
.riel input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--accent); border: 0; transition: transform .15s var(--ease); }
.riel input::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 0; }
.riel input:active::-webkit-slider-thumb { transform: scale(1.12); }
.nombres { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.nombres button { background: none; border: 0; padding: 6px 0; text-align: left; font: 400 var(--step-body)/1.2 Erode, Georgia, serif; color: var(--muted); cursor: pointer; transition: color .2s; }
.nombres button[aria-current="true"] { color: var(--ink); font-weight: 600; }
.nombres button:hover { color: var(--ink); }

/* fragmentos de la app (data-ui: bordes y tipografía de la interfaz real) */
[data-ui] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1a1a1a; }
.panel { width: min(440px, 100%); background: #fff; border-radius: 12px; border: 1px solid #d8dedd; /* taste-skill-ignore: interfaz real (data-ui) */ padding: 20px; font-size: 15px; line-height: 1.45; }
.panel h4 { margin: 0 0 12px; font-size: 16px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; letter-spacing: 0; }
.panel .fila { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid #eef1f0; } /* taste-skill-ignore: filas de la interfaz real (data-ui) */
.panel .fila:first-of-type { border-top: 0; }
.panel .total { font-weight: 650; }
.panel .mut { color: #616a69; font-size: 13px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #dff5e7; color: #0b6b3a; }
.chip.gris { background: #eceff1; color: #3d4a4f; }
.panel code { display: block; margin-top: 6px; font: 12.5px/1.45 ui-monospace, Menlo, monospace; word-break: break-all; color: #2b3a38; background: #f3f6f5; padding: 8px 10px; border-radius: 8px; }
.panel .enl { color: #1f5fbf; font-weight: 600; }
.panel .qrp { width: 112px; height: 112px; padding: 6px; background: #fff; border: 1px solid #e3e8e7; } /* taste-skill-ignore: interfaz real (data-ui) */

/* ── qué cubre: filas colgadas de un eje, fotos al margen ── */
.cubre .titulo { min-height: 60svh; display: flex; align-items: center; padding: 0 var(--m) 0 30%; }
.cubre .titulo h2 { font-size: var(--step-section); max-width: 11ch; }
.filas { padding: 0 var(--m) 120px; }
.fila-c { display: grid; grid-template-columns: 30% 1fr auto; align-items: start; gap: 0 40px; margin-bottom: 88px; }
.fila-c .txt { grid-column: 2; max-width: 34ch; }
.fila-c h3 { font-size: var(--step-head); margin-bottom: 14px; }
.fila-c p { font-size: var(--step-body); }
.fila-c .img { grid-column: 3; }
.fila-c img, .fila-c video { object-fit: cover; object-position: left top; background: var(--surface); }
.w45 { width: clamp(240px, 24vw, 360px); aspect-ratio: 4 / 5; } .w32 { width: clamp(320px, 34vw, 520px); aspect-ratio: 3 / 2; } .w11 { width: clamp(180px, 20vw, 300px); aspect-ratio: 1; }
.w45 img, .w45 video, .w32 img, .w32 video, .w11 img { width: 100%; height: 100%; }

/* ── pruébalo: el titular es un campo de texto ── */
.prueba { min-height: 88svh; padding: 140px var(--m) 72px; display: flex; flex-direction: column; }
.prueba label.sr + .linea { margin: 0; }
.linea { position: relative; display: flex; align-items: baseline; }
.linea input { width: 100%; background: transparent; border: 0; outline: 0; padding: 0; color: var(--field-paper); caret-color: transparent;
  font: 500 var(--step-statement)/1 Erode, Georgia, serif; letter-spacing: -0.035em; }
.linea input:focus-visible { outline: 3px solid var(--field-paper); outline-offset: 6px; }
.cursor { position: absolute; top: .12em; width: .08em; height: .82em; background: var(--field-paper); font-size: var(--step-statement); animation: parpadeo 1.05s steps(1) infinite; pointer-events: none; }
@keyframes parpadeo { 50% { opacity: 0; } }
.respuesta { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 560px); }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.prueba .ayuda { margin-top: auto; padding-top: 48px; max-width: 46ch; }
.ejemplos { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ejemplos button { background: none; border: 0; padding: 4px 0; color: var(--field-paper); font: 600 var(--step-body)/1.3 Erode, Georgia, serif; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; transition: opacity .18s; }
.ejemplos button:hover { opacity: .7; }

/* ── precio: una frase con la cifra como objeto ── */
.precio { min-height: 80svh; padding: 168px var(--m) 96px; display: flex; flex-direction: column; justify-content: space-between; }
.precio h2 { font-size: var(--step-statement); line-height: .95; }
.precio h2 .l { display: block; }
.cifra { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0 .15em; line-height: 1; }
.precio .base { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-top: 64px; }
.precio .base p { max-width: 52ch; font-size: var(--step-lead); line-height: 1.35; margin: 0; }
.precio .acciones { display: grid; justify-items: end; gap: 12px; }

/* ── preguntas: título ancho, preguntas sangradas ── */
.faq { overflow-x: clip; }
.faq h2 { font-size: var(--step-section); max-width: 12ch; }
.faq .lista { margin: 80px 0 0 35%; }
.faq details { margin: 0 -24px 36px; padding: 0 24px; transition: background-color .25s var(--ease); }
.faq details[open] { background: var(--surface); padding: 20px 24px 8px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-lead); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { max-width: 48ch; margin: 14px 0 16px; }

/* ── cierre invertido y pie con el nombre recortado ── */
.cierre { min-height: 90svh; padding: 168px var(--m) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.cierre h2 { font-size: var(--step-statement); line-height: .9; max-width: 11ch; }
.cierre .base { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.cierre .base p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; margin: 0; }
.pie { min-height: 100svh; padding: 160px var(--m) 0; overflow: hidden; display: flex; flex-direction: column; }
.pie .inv { display: grid; grid-template-columns: 7fr 2fr 3fr; gap: 32px; }
.pie h2 { font-size: var(--step-section); max-width: 12ch; margin-bottom: 28px; }
.pie .enlaces { grid-column: 3; display: grid; gap: 10px; align-content: start; }
.pie .enlaces a { text-decoration: none; font-size: var(--step-body); }
.pie .enlaces a:hover { text-decoration: underline; }
.pie .legal { margin-top: auto; display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); padding-bottom: 8px; }
.pie .nombre { font-size: 26vw; font-weight: 600; letter-spacing: -0.05em; line-height: .8; white-space: nowrap; transform: translateY(30%); margin: 0; }

/* ── guía ── */
.g-hero { padding: 168px var(--m) 120px; }
.g-hero h1 { font-size: var(--step-statement); max-width: 12ch; }
.g-hero p { margin-top: 36px; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
.fechas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); }
.fechas div { padding: 8px 0; }
.fechas b { display: block; font-size: var(--step-statement); font-weight: 500; letter-spacing: -0.035em; line-height: .95; }
.fechas span { display: block; margin-top: 14px; font-size: var(--step-lead); }
.quedan { margin-top: 10px; font-size: var(--step-body); }
.par { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: start; }
.par h2 { font-size: var(--step-section); margin-bottom: 28px; max-width: 14ch; }
ul.si { list-style: none; padding: 0; margin: 0; }
ul.si li { position: relative; padding: 10px 0 10px 34px; }
ul.si li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.cap-deep ul.si li::before, .cap-field ul.si li::before { border-color: var(--field-paper); }
.check { list-style: none; padding: 0; margin: 0; }
.check label { display: flex; gap: 16px; padding: 12px 0; cursor: pointer; font-size: var(--step-lead); line-height: 1.35; }
.check input { flex: none; width: 26px; height: 26px; margin-top: .2em; accent-color: var(--accent); cursor: pointer; }
.progreso { margin-top: 24px; font-size: var(--step-body); }
.fuentes a { overflow-wrap: anywhere; }
.g-fig img { width: 100%; height: auto; background: #fff; }

/* ── entradas (solo con JS; sin JS todo se ve) ── */
.js [data-in] { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js [data-in].dentro { opacity: 1; transform: none; }
.mueve { animation: deriva 14s var(--ease) infinite alternate; }
.entra { animation: sube .8s var(--ease) both; animation-delay: calc(250ms + var(--d, 0) * 120ms); }
@keyframes sube { from { opacity: 0; transform: translateY(18px); } }
@keyframes deriva { from { transform: scale(1); } to { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-in] { opacity: 1; transform: none; transition: none; }
  .mueve, .cursor, .entra { animation: none; }
  * { transition-duration: 1ms !important; }
}

/* ── tableta ── */
@media (max-width: 1100px) and (min-width: 761px) {
  .fila-c { grid-template-columns: 1fr auto; } .fila-c .txt { grid-column: 1; } .fila-c .img { grid-column: 2; }
  .w32 { width: 260px; } .w45 { width: 200px; } .w11 { width: 160px; }
  .cubre .titulo { padding-left: var(--m); } .faq .lista { margin-left: 18%; }
}

/* ── móvil: su propia composición ── */
@media (max-width: 760px) {
  .top { gap: 14px; } .top nav { display: none; } .top .marca { font-size: 1.1rem; }
  .hero { --seam: 46svh; min-height: 680px; }
  .frase { font-size: 15vw; }
  .hero .apoyo { font-size: 1.125rem; max-width: 28ch; bottom: calc(30svh + 64px); }
  .hero .nota { bottom: calc(30svh + 24px); max-width: 32ch; }
  .pad { padding: 112px var(--m); }
  .etapas { grid-template-columns: 1fr; }
  .etapas .der { min-height: 46svh; padding: 88px var(--m) 32px; }
  .etapas .izq { padding: 40px var(--m) 72px; }
  .clausula { font-size: var(--step-head); }
  .etapas { grid-template-areas: 'der' 'riel' 'izq'; grid-template-rows: auto auto auto; }
  .riel input::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }
  .nombres { grid-template-columns: 1fr 1fr; }
  .cubre .titulo { min-height: 50svh; padding: 0 var(--m); } .cubre .titulo h2 { font-size: var(--step-section); }
  .fila-c { grid-template-columns: 1fr; margin-bottom: 64px; } .fila-c .txt, .fila-c .img { grid-column: 1; }
  .fila-c .img { margin-top: 18px; } 
  .fila-c:nth-child(3n+1) .img { width: 100%; } .fila-c:nth-child(3n+2) .img { width: 70%; justify-self: end; } .fila-c:nth-child(3n) .img { width: 55%; }
  .fila-c .img > * { width: 100%; height: auto; }
  .prueba { padding: 104px var(--m) 56px; } .linea input, .cursor { font-size: var(--step-statement); }
  .ticket { grid-template-columns: 1fr; }
  .ejemplos button { background: var(--field-paper); color: var(--field); text-decoration: none; min-height: 44px; padding: 0 14px; }
   .precio .base, .cierre .base { grid-template-columns: 1fr; } .precio .acciones { justify-items: stretch; }
  .precio .btn, .cierre .btn { width: 100%; }
   .faq .lista { margin-left: 0; } .faq details { margin: 0 calc(-1 * var(--m)) 28px; padding: 0 var(--m); } .faq details[open] { padding: 18px var(--m) 6px; }
  
  .cierre { min-height: 80svh; } 
  .pie .inv { grid-template-columns: 1fr; }  .pie .enlaces { grid-column: 1; grid-auto-flow: column; justify-content: start; gap: 18px; overflow-x: auto; }
  .pie .nombre { font-size: 34vw; } .pie .legal { flex-direction: column; gap: 4px; }
  .fechas, .par { grid-template-columns: 1fr; gap: 40px; }
  
}
