/* =========================================================
   ConcursalesLey · Landing Ley de Segunda Oportunidad
   styles.css

   1.  Tipografía
   2.  Variables
   3.  Base
   4.  Utilidades
   5.  Botones
   6.  Cabecera
   7.  Hero
   8.  Cifra y precio
   9.  Test (formulario por pasos)
   10. Franja de confianza
   11. Secciones comunes
   12. Cómo funciona
   13. Tu abogado
   14. Reseñas
   15. CTA final
   16. Pie
   17. Barra fija móvil
   18. Animaciones
   19. Escritorio
   ========================================================= */


/* =========================================================
   1. TIPOGRAFÍA (alojada en la propia landing, sin Google Fonts)
   ========================================================= */
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}


/* =========================================================
   2. VARIABLES
   ========================================================= */
:root {
  /* Colores */
  /* Marca ConcursalesLey: azul marino y crema del logo */
  --c-navy: #1C3649;
  --c-cream: #EBE8BF;

  --c-bg: #F5F3EB;
  --c-bg-2: #EAE7DA;
  --c-surface: #FFFFFF;
  --c-ink: #13212D;
  --c-muted: #55616D;
  --c-line: #DAD6C8;

  --c-accent: var(--c-navy);
  --c-accent-hover: #132838;
  --c-accent-soft: #E3E8EC;

  --c-dark: var(--c-navy);
  --c-dark-2: #152A3A;
  --c-on-dark: #F5F3EB;
  --c-on-dark-muted: #AEB9C3;

  --c-wa: #25D366;
  --c-wa-hover: #1FBE5B;
  --c-wa-ink: #05301A;

  --c-ok: #1E7A46;
  --c-error: #B3261E;

  /* Tipografía */
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Formas */
  --radius-s: 14px;
  --radius: 20px;
  --radius-l: 28px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(19, 33, 45, .06), 0 18px 40px -12px rgba(19, 33, 45, .18);

  /* Medidas */
  --container: 1120px;
  --gutter: 20px;
  --header-h: 60px;
  --sticky-h: 76px;

  /* Movimiento */
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* =========================================================
   3. BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, blockquote {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}


/* =========================================================
   4. UTILIDADES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--c-ink);
  color: var(--c-on-dark);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Palabra en cursiva sobre píldora (firma visual de la landing) */
.pill-word {
  font-style: italic;
  font-weight: 500;
  padding: 0 .28em .02em;
  border-radius: var(--pill);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


/* =========================================================
   5. BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--pill);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, transform .15s ease;
}

.btn:active {
  transform: scale(.98);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn[disabled] {
  opacity: .7;
  cursor: progress;
}

.btn--primary {
  background: var(--c-accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--c-accent-hover);
}

.btn--wa {
  background: var(--c-wa);
  color: var(--c-wa-ink);
}

.btn--wa:hover {
  background: var(--c-wa-hover);
}

.btn--light {
  background: var(--c-cream);
  color: var(--c-navy);
}

.btn--light:hover {
  background: #F4F2D6;
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: 54px;
  padding: 0;
  flex: none;
}

.btn--icon svg {
  width: 26px;
  height: 26px;
}


/* =========================================================
   6. CABECERA
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 243, 235, .85);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--c-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}

.site-header__logo {
  width: auto;
  height: 28px;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__phone svg {
  width: 18px;
  height: 18px;
  color: var(--c-wa);
}


/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 0 44px;
}

/* Foto de fondo: decorativa y muy suave (si falta el archivo, no se rompe nada) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/img/hero-bg-movil.webp") center top / cover no-repeat;
  opacity: .12;
  filter: grayscale(1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  pointer-events: none;
}

/* Manchas de color: dan fondo al efecto cristal */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(480px 340px at 90% 6%, rgba(28, 54, 73, .12), transparent 70%),
    radial-gradient(420px 320px at 0% 55%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(520px 360px at 70% 100%, rgba(235, 232, 191, .45), transparent 70%);
}

.hero__grid {
  display: grid;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1px var(--c-line);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-wa);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .2);
}

.hero__title {
  margin-top: 16px;
  font-size: clamp(34px, 9.4vw, 62px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
}


/* =========================================================
   8. CIFRA Y PRECIO
   ========================================================= */
.stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 16px;
}

.stat__number {
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
}

.stat__text {
  font-weight: 500;
}

.price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.price__item {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
}

.price__item--main {
  background: var(--c-dark);
  color: var(--c-on-dark);
  box-shadow: none;
}

.price__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
}

.price__item--main .price__label {
  color: var(--c-on-dark-muted);
}

.price__item--main .price__amount {
  color: var(--c-cream);
}

.price__amount {
  display: block;
  margin-top: 2px;
  font-size: clamp(27px, 7.6vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.price__amount small {
  margin-left: 2px;
  font-size: .5em;
  font-weight: 500;
  opacity: .8;
}

.price__note {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--c-muted);
}


/* =========================================================
   9. TEST (FORMULARIO POR PASOS)
   ========================================================= */
.quiz {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: var(--radius-l);
  background: var(--c-surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--c-line);
}

/* Cabecera del test: texto + barra de progreso */
.quiz__kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.quiz__meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 20px;
}

.quiz__progress {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: var(--pill);
  background: var(--c-bg-2);
}

.quiz__bar {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--c-accent);
  transition: width .35s var(--ease);
}

.quiz__count {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Pasos */
.quiz__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.js .quiz__step {
  display: none;
}

.js .quiz__step.is-active {
  display: block;
  animation: step-in .35s var(--ease);
}

.no-js .quiz__step + .quiz__step {
  margin-top: 28px;
}

.no-js .quiz__meter,
.no-js .quiz__count {
  display: none;
}

.quiz__question {
  padding: 0;
  font-size: clamp(22px, 5.8vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  outline: none;
}

.quiz__hint {
  margin-top: 6px;
  font-size: 15px;
  color: var(--c-muted);
}

/* Opciones (radios con aspecto de botón) */
.options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: var(--c-bg);
  box-shadow: inset 0 0 0 1.5px var(--c-line);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.option__mark {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 2px var(--c-line);
  transition: box-shadow .15s ease;
}

.option:hover {
  box-shadow: inset 0 0 0 1.5px var(--c-accent);
}

.option:has(input:checked) {
  background: var(--c-accent-soft);
  box-shadow: inset 0 0 0 2px var(--c-accent);
}

.option:has(input:checked) .option__mark {
  box-shadow: inset 0 0 0 7px var(--c-accent);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

/* Campos de contacto */
.field {
  margin-top: 14px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.field__input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--c-bg);
  box-shadow: inset 0 0 0 1.5px var(--c-line);
  font-size: 17px; /* 16px o más: iOS no hace zoom */
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow .15s ease;
}

.field__input::placeholder {
  color: #8E98A2;
}

.field__input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--c-accent);
}

.field.is-invalid .field__input {
  box-shadow: inset 0 0 0 2px var(--c-error);
}

.field__error {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-error);
}

.field__error:empty {
  display: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.consent input {
  width: 22px;
  height: 22px;
  flex: none;
  margin: 0;
  accent-color: var(--c-accent);
}

.quiz__submit {
  margin-top: 18px;
}

.quiz__privacy {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--c-muted);
}

.quiz__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-muted);
  cursor: pointer;
}

.quiz__back svg {
  width: 18px;
  height: 18px;
}

/* Campo antispam: fuera de la vista */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Confirmación */
.quiz__done {
  padding: 6px 2px 2px;
  text-align: center;
}

.quiz__done-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(30, 122, 70, .12);
  color: var(--c-ok);
}

.quiz__done-icon svg {
  width: 28px;
  height: 28px;
}

.quiz__done.is-error .quiz__done-icon {
  background: rgba(179, 38, 30, .1);
  color: var(--c-error);
}

.quiz__done-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  outline: none;
}

.quiz__done-text {
  margin-top: 8px;
  color: var(--c-muted);
}

.quiz__done .btn {
  margin-top: 18px;
}


/* =========================================================
   10. FRANJA DE CONFIANZA (chips con efecto cristal)
   ========================================================= */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 1px 2px rgba(23, 20, 15, .05);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.chip svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--c-accent);
}


/* =========================================================
   11. SECCIONES COMUNES
   ========================================================= */
.section {
  padding-block: 64px;
}

.section--alt {
  background: var(--c-bg-2);
}

.section__head {
  max-width: 680px;
  margin-bottom: 28px;
}

.kicker {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.section__title {
  font-size: clamp(30px, 7.6vw, 48px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.section__lead {
  margin-top: 12px;
  font-size: 18px;
  color: var(--c-muted);
}

.section__cta {
  margin-top: 28px;
}


/* =========================================================
   12. CÓMO FUNCIONA
   ========================================================= */
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  counter-increment: step;
}

.step__num::before {
  content: "0" counter(step);
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--c-accent-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}

.step__title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.step__text {
  font-size: 16px;
  color: var(--c-muted);
}


/* =========================================================
   13. TU ABOGADO
   ========================================================= */
.lawyer {
  display: grid;
  gap: 28px;
  align-items: center;
}

.lawyer__photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, #DCE2E7, #B9C4CD); /* se ve si aún no hay foto */
}

.lawyer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facts {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fact svg {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 2px;
  color: var(--c-accent);
}

.fact strong {
  display: block;
  font-weight: 600;
}

.fact span {
  display: block;
  font-size: 15px;
  color: var(--c-muted);
}


/* =========================================================
   14. RESEÑAS
   ========================================================= */
/* Carrusel continuo de derecha a izquierda (se para al pasar el ratón o tocarlo) */
.marquee {
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding-block: 4px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-inline: var(--gutter);
}

.marquee.is-ready .marquee__track {
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}

.marquee.is-ready:hover .marquee__track,
.marquee.is-ready:focus-within .marquee__track,
.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(calc(var(--marquee-shift, 0px) * -1));
  }
}

/* Sin JavaScript o con animaciones desactivadas: fila que se desliza con el dedo */
.no-js .marquee,
.marquee.is-static {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-mask-image: none;
  mask-image: none;
}

.marquee.is-static .review {
  scroll-snap-align: start;
}

.marquee .review {
  flex: none;
  width: min(340px, 82vw);
}

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
}

.review__stars {
  display: flex;
  gap: 2px;
  color: #E3A21A;
}

.review__stars svg {
  width: 18px;
  height: 18px;
}

.review__text {
  font-size: 17px;
  line-height: 1.5;
}

.review__author {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
}

.reviews__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.reviews__link svg {
  width: 18px;
  height: 18px;
}


/* =========================================================
   15. CTA FINAL
   ========================================================= */
.final {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.final__deco {
  position: absolute;
  right: -4%;
  bottom: -22%;
  font-size: clamp(220px, 60vw, 460px);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(235, 232, 191, .14);
  pointer-events: none;
  user-select: none;
}

.final__inner {
  position: relative;
}

.final__title {
  max-width: 760px;
}

.final .pill-word {
  background: rgba(235, 232, 191, .12);
  box-shadow: inset 0 0 0 1px rgba(235, 232, 191, .3);
  color: var(--c-cream);
}

.final__lead {
  color: var(--c-on-dark-muted);
}

.final__actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}


/* =========================================================
   16. PIE
   ========================================================= */
.site-footer {
  padding: 28px 0 calc(28px + var(--sticky-h));
  background: var(--c-dark-2);
  border-top: 1px solid rgba(235, 232, 191, .1);
  font-size: 14px;
  color: var(--c-on-dark-muted);
}

.site-footer a {
  color: var(--c-on-dark);
  text-underline-offset: 3px;
}

.site-footer__links {
  margin-top: 8px;
}

.site-footer__id,
.site-footer__disclaimer {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
}


/* =========================================================
   17. BARRA FIJA MÓVIL
   ========================================================= */
.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 243, 235, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 var(--c-line);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}

.sticky-cta.is-visible {
  transform: none;
}

.sticky-cta__main {
  flex: 1;
}

/* Tras enviar el formulario solo queda WhatsApp */
.sticky-cta.is-done .sticky-cta__main {
  display: none;
}

.sticky-cta.is-done .btn--icon {
  width: 100%;
}


/* =========================================================
   18. ANIMACIONES
   ========================================================= */
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Aparición al hacer scroll (solo con JS activo) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .quiz__step.is-active {
    animation: none;
  }

  .marquee.is-ready .marquee__track {
    animation: none;
  }

  .quiz__bar,
  .sticky-cta {
    transition: none;
  }
}


/* =========================================================
   19. ESCRITORIO
   ========================================================= */
/* Móviles estrechos: el botón de teléfono queda solo con el icono */
@media (max-width: 379px) {
  .site-header__phone {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .site-header__phone span {
    display: none;
  }
}

@media (min-width: 600px) {
  .final__actions {
    grid-auto-flow: column;
    justify-content: start;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 72px;
    --gutter: 32px;
  }

  body {
    font-size: 18px;
  }

  .site-header__logo {
    height: 36px;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero::after {
    background-image: url("../assets/img/hero-bg.webp");
    background-position: center;
    opacity: .14;
  }

  .hero__grid {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 64px;
  }

  .stat {
    margin-top: 24px;
  }

  .price {
    max-width: 520px;
    margin-top: 28px;
  }

  .quiz {
    padding: 30px 28px 24px;
  }

  .trust {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 48px;
  }

  .section {
    padding-block: 104px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .step {
    padding: 28px 26px;
  }

  .lawyer {
    grid-template-columns: 420px 1fr;
    gap: 72px;
  }

  .site-footer {
    padding-bottom: 28px;
  }

  .sticky-cta {
    display: none;
  }
}