/* revisamostusrentas.es · by Laborai
   Mobile-first: el tráfico llega de anuncios en el móvil, así que el ancho
   estrecho es el caso base y las pantallas grandes son la ampliación.
   Paleta de marca Laborai. Tema claro único y deliberado: todos los colores se
   pintan explícitamente, nada se hereda del navegador. */

:root {
  --blue: #140DD9;
  --blue-dark: #0D088C;
  --navy: #0B0F59;
  --peri: #B4B6F0;
  --peri-text: #C3C5F4;   /* peri legible sobre navy (10,3:1) */
  --lav: #E8E9F5;
  --ink: #0E1020;
  --soft: #54587A;
  --hint: #6B6F94;        /* placeholders: el más claro que aún pasa AA (4,7:1) */
  --line: #DEDFF0;
  --field-line: #8A8EBC;  /* contorno de control: 3,07:1 sobre el campo (WCAG 1.4.11) */
  --disabled: #676BA3;    /* fondo del botón esperando: 4,99:1 con texto blanco */
  --prose: #2A2D45;       /* cuerpo de los textos legales */
  --skeleton: #F4F5FB;    /* destello del hueco mientras carga el embed */
  --star: #AE7600;        /* estrella: 3,9:1 sobre blanco, es información */
  --money: #16B981;       /* verde del importe, el mismo de laborai.es/revisa-* */
  --accent: #5B57FF;      /* azul claro de marca: 4,9:1 sobre blanco y 3,5:1 contra el navy */
  --field: #FCFCFE;
  --bg: #FFFFFF;
  --error: #B3261E;
  --error-bg: #FEF4F3;
  --ok: #1E8E5A;
  --amber: #8A6200;
  --amber-bg: #FFF6DF;

  --pad-x: 20px;          /* margen lateral; crece en pantallas grandes */
  --cta-h: 72px;          /* alto de la barra fija del móvil */

  accent-color: var(--blue);
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
p, h1, h2, ul { margin: 0; }
ul { list-style: none; padding: 0; }

/* Superficies que pinta el navegador: también son parte del diseño. */
::selection { background: var(--lav); color: var(--navy); }
input { caret-color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 40;
  padding: 12px 18px;
  border-radius: 0 0 9px 9px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  transition: top 0.18s ease;
}

.skip:focus { top: 0; }

/* --------------------------------------------------------------- cabecera */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

/* En móvil la firma "by Laborai" baja bajo el nombre: a 320px no cabe en línea. */
.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "mark name" "mark by";
  align-items: center;
  gap: 0 9px;
  min-height: 44px;
}

/* La casilla se dibuja en navy y la corrección que se sale, en azul: la misma
   gramática de color que el titular. */
.mark {
  grid-area: mark;
  width: 30px;
  height: 30px;
  display: block;
  color: var(--navy);
  flex: none;
}

.mark-check { stroke: var(--blue); }

.brandname {
  grid-area: name;
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

/* "tus" parte una palabra larga en algo legible. Va en el azul claro: el azul
   fuerte solo tiene 1,7:1 contra el navy de al lado y no se distinguía. */
.brandname .mid { color: var(--accent); }
.brandname .tld { color: var(--soft); font-weight: 600; }

.by {
  grid-area: by;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--soft);
  font-weight: 600;
  line-height: 1.2;
}

/* Logo oficial de Laborai, sin recolorear. */
.by img { height: 13px; width: auto; display: block; }

/* El teléfono es un objetivo táctil, no una palabra suelta. */
.phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
  white-space: nowrap;
}

.phone svg { width: 15px; height: 15px; flex: none; }
.phone:active { background: var(--lav); }

/* ------------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(180deg, var(--lav) 0%, #fff 62%);
  display: grid;
  grid-template-areas: "copy" "form" "bullets";
  gap: 26px;
  padding: 26px var(--pad-x) 34px;
}

.hero-copy { grid-area: copy; }
.hero .fcard { grid-area: form; }
.hero .bullets { grid-area: bullets; }

h1 {
  display: grid;
  gap: 6px;
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--navy);
  text-wrap: balance;
}

/* La pregunta del segmento va entera en negrita, como en laborai.es. */
h1 .q { font-weight: 700; }

/* La palabra clave se distingue por peso, no por color. Para recuperar el
   segundo azul, basta con darle un color a esta regla. */
h1 .kw { font-weight: 700; }

h1 .a { font-weight: 500; line-height: 1.3; }
h1 .a .em, h1 .a strong { font-weight: 700; }

h1 .a strong {
  color: var(--money);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 768px) {
  h1 { font-size: 42px; line-height: 1; letter-spacing: -1.2px; }
  h1 .a { line-height: 1.18; }
}

@media (min-width: 1025px) {
  h1 { font-size: 48px; line-height: 0.95; letter-spacing: -2.2px; gap: 8px; }
  h1 .a { line-height: 1.12; }
}

.bullets { display: grid; gap: 12px; }

.bullets li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 17.5px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
  text-wrap: pretty;
}

.tick {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* ------------------------------------------------------------- formulario */

.fcard {
  background: #fff;
  border: 1px solid var(--peri);
  border-radius: 14px;
  padding: 20px 18px 22px;
  scroll-margin-top: 16px;
}

.fcard h2 {
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: clamp(21px, 5.2vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 7px;
  text-wrap: balance;
}

.fnote { font-size: 15.5px; line-height: 1.5; color: var(--soft); margin-bottom: 20px; text-wrap: pretty; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--field-line);
  border-radius: 9px;
  padding: 0 14px;
  font: inherit;
  font-size: 17px;      /* menos de 16px y iOS hace zoom al enfocar */
  color: var(--ink);
  background: var(--field);
}

.field input::placeholder { color: var(--hint); }

.field input:focus { border-color: var(--blue); }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  color: var(--soft);
  line-height: 1.5;
  margin-bottom: 18px;
  /* El área táctil de la casilla llega a 44px sin engordar el texto. */
  padding: 6px 0;
}

.consent input { width: 24px; height: 24px; margin: 0; flex: none; }
.consent a { color: var(--blue); text-decoration: underline; }

.btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn:active { transform: scale(0.985); background: var(--blue-dark); }

.legal { font-size: 12.5px; color: var(--soft); line-height: 1.5; margin-top: 14px; }

.warn {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}

.warn code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; }

/* El embed de HubSpot hereda los estilos del formulario nativo. */
.hs-target input[type="tel"],
.hs-target input[type="text"],
.hs-target input[type="email"] {
  width: 100%;
  height: 52px;
  border: 1px solid var(--field-line);
  border-radius: 9px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  background: var(--field);
  margin-bottom: 14px;
}

.hs-target label { font-size: 13px; font-weight: 600; color: var(--navy); }
.hs-target .hs-error-msg { color: var(--error); font-size: 14px; }
.hs-target .hs-form-booleancheckbox label { font-weight: 400; color: var(--soft); font-size: 13.5px; }
.hs-target .hs-form-booleancheckbox input { width: 24px; height: 24px; }

.hs-target input[type="submit"] {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------- barra fija de acción (móvil) */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px max(var(--pad-x), env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(var(--pad-x), env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-bar.is-visible { transform: translateY(0); }

.cta-bar p {
  font-size: 13px;
  line-height: 1.3;
  color: var(--soft);
  flex: 1;
  min-width: 0;
}

.cta-bar p b { display: block; color: var(--navy); font-size: 14.5px; }

.cta-bar .btn { width: auto; padding: 0 22px; font-size: 16px; }

body.cta-open { padding-bottom: var(--cta-h); }

/* ------------------------------------------------------------------ tira */

.strip {
  background: var(--navy);
  color: #fff;
  padding: 22px clamp(20px, 5vw, 64px) 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: left;
}

.strip div {
  display: grid;
  gap: 1px;
  align-content: start;
}

.strip b {
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.strip span {
  font-size: 16px;
  font-weight: 600;
  color: var(--peri-text);
  line-height: 1.3;
}

/* ------------------------------------------------------------------ pie */

.foot {
  display: grid;
  gap: 14px;
  padding: 22px var(--pad-x) 26px;
  font-size: 13px;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

.foot-by {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.foot-by img { height: 16px; width: auto; display: block; }

.flinks { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.flinks a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------- páginas legales */

.legal-page {
  max-width: 78ch;
  margin: 0 auto;
  padding: 22px var(--pad-x) 40px;
}

.legal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
}

.legal-nav a[aria-current="page"] {
  background: var(--lav);
  border-color: var(--peri);
  color: var(--navy);
}

.prose { color: var(--prose); font-size: 16px; line-height: 1.7; }

.prose h1 {
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: clamp(27px, 6.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 8px;
}

.prose h1 b { font-weight: inherit; }

.prose h2 {
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: clamp(18px, 4.4vw, 23px);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}

.prose h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 24px 0 6px; }

.prose p { margin: 0 0 14px; text-wrap: pretty; }

.prose ol, .prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--blue); font-weight: 600; }

/* La política de privacidad numera sus secciones con <li><strong>Título</strong>texto. */
.prose ol > li > strong:first-child {
  display: block;
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: 17.5px;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 6px;
  text-wrap: balance;
}

.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--navy); }
.prose .laborai-legal-date { color: var(--soft); font-size: 14px; }

.prose .table-wrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }

.prose table {
  width: 100%;
  min-width: 460px;          /* por debajo de esto la tabla se scrollea, no se aplasta */
  border-collapse: collapse;
  font-size: 14.5px;
}

.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--lav); color: var(--navy); font-weight: 600; }

.legal-source {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--soft);
  line-height: 1.55;
}

.legal-source a { color: var(--blue); text-decoration: underline; }

/* ====================================================== pantallas medianas */

@media (min-width: 620px) {
  :root { --pad-x: 32px; }

  .brand {
    grid-template-areas: "mark name by";
    grid-template-columns: auto auto auto;
    gap: 10px;
  }

  .by { align-self: center; }

  .strip {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 22px 48px;
  }

  .foot {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }
}

/* ======================================================== dos columnas */

@media (min-width: 900px) {
  :root { --pad-x: clamp(32px, 5vw, 64px); }

  .nav { padding-top: 14px; padding-bottom: 14px; }

  .hero {
    grid-template-areas: "copy form" "bullets form";
    grid-template-columns: 1.02fr 0.98fr;
    align-items: start;
    gap: 30px clamp(32px, 4vw, 56px);
    padding: clamp(44px, 5vw, 72px) var(--pad-x);
    background: linear-gradient(180deg, var(--lav) 0%, #fff 100%);
  }

  /* Flotando junto al texto, la tarjeta se sostiene por elevación, no por borde. */
  .hero .fcard {
    align-self: center;
    padding: 26px 24px 28px;
    border-color: transparent;
    box-shadow: 0 20px 44px -26px rgba(11, 15, 89, 0.5);
  }

  h1 { max-width: 19ch; }

  .bullets { align-self: start; }

  .strip { gap: 22px clamp(28px, 6vw, 72px); padding-block: 26px; }
  .strip b { font-size: 36px; }

  /* En escritorio el formulario está siempre a la vista: la barra sobra. */
  .cta-bar { display: none; }
  body.cta-open { padding-bottom: 0; }
}

/* =================================================== entrada y puntero */

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--blue-dark); }
  .phone:hover { border-color: var(--peri); background: var(--lav); }
  .legal-nav a:hover { color: var(--blue); border-color: var(--peri); }
  .flinks a:hover { color: var(--blue); }
  .legal-source a:hover, .prose a:hover { color: var(--blue-dark); }
}

/* Dedo en vez de ratón: más aire entre objetivos táctiles. */
@media (pointer: coarse) {
  .flinks { gap: 4px 20px; }
  .legal-nav { gap: 10px; }
}

/* En horizontal el notch se come el lateral: ahí sí hacen falta los insets. */
@media (orientation: landscape) {
  .nav, .hero, .strip, .foot, .legal-page {
    padding-left: max(var(--pad-x), env(safe-area-inset-left));
    padding-right: max(var(--pad-x), env(safe-area-inset-right));
  }
}

/* Móvil en horizontal: la altura es el recurso escaso. */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: 18px; padding-bottom: 22px; gap: 18px; }
  h1 { font-size: 26px; line-height: 1.1; letter-spacing: -0.3px; }
  .cta-bar { padding-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }

  /* El destello del esqueleto desaparece, pero el hueco sigue diciendo que
     está cargando: el aviso es texto, no movimiento. */
  .hs-target[aria-busy="true"] { background: var(--lav); }

  /* Sin transición, la barra tiene que poder colocarse igual. */
  .cta-bar { transform: translateY(110%); }
  .cta-bar.is-visible { transform: translateY(0); }
}

/* ------------------------------------- hueco reservado para el embed */

.hs-target[aria-busy="true"]::after {
  content: "Cargando el formulario…";
  display: block;
  padding: 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--soft);
}

.hs-target[aria-busy="true"] {
  min-height: 236px;
  border-radius: 9px;
  background:
    linear-gradient(var(--field) 0 0) padding-box,
    linear-gradient(90deg, var(--lav) 25%, var(--skeleton) 50%, var(--lav) 75%) border-box;
  background-size: 100% 100%, 300% 100%;
  border: 1px solid var(--line);
  animation: hs-wait 1.6s linear infinite;
}

@keyframes hs-wait {
  to { background-position: 0 0, -150% 0; }
}

/* ------------------------------ prueba, alcance y errores del formulario */

.proof-text {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--lav);
}

.proof-body { display: grid; gap: 1px; }
.proof-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proof b { font-size: 15.5px; color: var(--navy); letter-spacing: -0.01em; }
.proof .proof-link { font-size: 13.5px; color: var(--blue); font-weight: 600; }

/* Logo de Google: el mismo glifo en tres tamaños. */
.g-mark { width: 19px; height: 19px; flex: none; display: block; }
.g-mark.g-lg { width: 28px; height: 28px; }
.g-mark.g-xl { width: 34px; height: 34px; }

.stars { display: inline-flex; gap: 1.5px; }
.star { width: 16px; height: 16px; fill: var(--star); flex: none; }

.field-error {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--error);
  display: flex;
  gap: 7px;
}

/* El error no se fía solo del color: lleva su propia marca. */
.field-error::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.field input[aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

.btn:disabled { background: var(--disabled); cursor: progress; }

/* --------------------------------------------------------------- éxito */

.success { display: grid; justify-items: start; gap: 10px; padding: 8px 0 4px; }

.success-mark {
  width: 34px;
  height: 34px;
  color: var(--ok);
  stroke-width: 2.4;
}

.success h2 {
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: clamp(20px, 5vw, 25px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}

.success p { font-size: 15px; line-height: 1.6; color: var(--soft); }

/* ----------------------------------------------------------- cookies */

.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  gap: 12px;
  padding: 16px var(--pad-x) max(16px, env(safe-area-inset-bottom));
  background: var(--navy);
  color: var(--lav);
  border-top: 1px solid var(--navy);
}

.cookies p { font-size: 13.5px; line-height: 1.5; }
.cookies a { color: var(--peri-text); text-decoration: underline; }
.cookies-actions { display: flex; gap: 10px; }
.cookies .btn { min-height: 46px; font-size: 15.5px; }

.ghost {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(180, 182, 240, 0.45);
  border-radius: 9px;
  background: transparent;
  color: var(--lav);
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  white-space: nowrap;
}

.ghost:active { background: rgba(180, 182, 240, 0.16); }

/* Mientras se decide sobre cookies, la barra de acción no compite. */
body.consent-open .cta-bar { transform: translateY(110%); }

@media (min-width: 620px) {
  .cookies {
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .cookies p { max-width: 70ch; }
}

/* --------------------------------------------------------- página de gracias */

.thanks {
  max-width: 60ch;
  margin: 0 auto;
  padding: clamp(40px, 10vw, 90px) var(--pad-x);
}

.thanks .success { gap: 14px; }

.thanks h1 {
  font-size: clamp(28px, 6.4vw, 40px);
  color: var(--navy);
  line-height: 1.08;
  max-width: none;
}

.thanks .success p { font-size: 16.5px; }

/* ------------------------------------------------------- cierre con CTA */

.final {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 32px var(--pad-x) 38px;
  background: var(--lav);
}

.final p {
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--navy);
  text-wrap: pretty;
}

.final .btn { width: auto; min-width: 260px; padding: 0 30px; }

@media (min-width: 900px) {
  .final { padding: 44px var(--pad-x) 50px; gap: 20px; }
  .final p { font-size: 16.5px; }
}

/* ------------------------------------------------------------- reseñas */

.reviews { padding: 34px var(--pad-x) 38px; }

.reviews-head { display: grid; gap: 18px; margin-bottom: 22px; }

.reviews h2 {
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: clamp(24px, 6vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
  text-wrap: balance;
  margin-bottom: 8px;
}

.reviews-head p { font-size: 15.5px; color: var(--soft); text-wrap: pretty; }

.reviews-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--lav);
}

.reviews-score b {
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.reviews-score .stars { margin-bottom: 3px; }
.reviews-score .star { width: 18px; height: 18px; }
.reviews-score-label { display: block; font-size: 13.5px; color: var(--soft); font-weight: 600; }

/* En móvil se deslizan de lado: cuatro tarjetas apiladas alargarían la página. */
.reviews-row:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dos filas en marcha continua, en sentidos opuestos. Cada fila lleva sus
   tarjetas dos veces: al recorrer la mitad exacta la animación vuelve al inicio
   y el empalme no se nota. El medio gap del calc es el que sobra al partir la
   pista por la mitad. */
.reviews-rail {
  --gap: 14px;
  display: grid;
  gap: var(--gap);
  overflow: hidden;
  margin-inline: calc(var(--pad-x) * -1);
}

.reviews-rail:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

.reviews-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: reviews-marquee 72s linear infinite;
}

.reviews-track.is-reverse { animation-duration: 88s; animation-direction: reverse; }

@keyframes reviews-marquee {
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

/* Al pasar por encima, al tabular dentro o al tocarla, la fila se para. */
.reviews-rail:hover .reviews-track,
.reviews-rail:focus-within .reviews-track,
.reviews-rail.is-paused .reviews-track { animation-play-state: paused; }

.review {
  width: min(82vw, 330px);
  flex: none;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.review-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review-who { display: grid; min-width: 0; }
.review-who b { font-size: 15px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-who span { font-size: 13px; color: var(--soft); }
.review-g { width: 19px; height: 19px; flex: none; }

.review p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review.is-open p { -webkit-line-clamp: unset; }

.review-more {
  justify-self: start;
  border: 0;
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}

@media (min-width: 900px) {
  .reviews { padding: 54px 0 58px; }
  .reviews-head {
    padding-inline: var(--pad-x);
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
  }
  .reviews-rail { --gap: 18px; }
  .review { width: 360px; }
}

/* Sin movimiento: las filas se quedan quietas, se recorren a mano y cada
   tarjeta aparece una sola vez. */
@media (prefers-reduced-motion: reduce) {
  .reviews-rail { overflow-x: auto; }
  .reviews-track { width: auto; padding-inline: var(--pad-x); }
  .reviews-track .review[aria-hidden="true"] { display: none; }
}
