/* ==========================================================================
   Clasificados787 — sitio público
   Sistema de diseño compartido (landing + páginas legales)
   Colores EXACTOS de la marca (del código de la app). No inventar.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Marca */
  --yellow:      #FFC72C;
  --yellow-dark: #F5B301;
  --black:       #111315;
  --white:       #FFFFFF;

  /* Grises */
  --grey-900: #1C1F22;
  --grey-700: #3A3F45;
  --grey-500: #6B7178;
  --grey-300: #C9CED3;
  --grey-100: #EEF1F4;
  --grey-50:  #F6F8FA;

  /* Semánticos */
  --success: #2E7D32;
  --danger:  #C62828;
  --info:    #1565C0;

  /* Roles */
  --bg:        var(--white);
  --bg-soft:   var(--grey-50);
  --text:      var(--grey-900);
  --text-soft: var(--grey-700);
  --text-mut:  var(--grey-500);
  --line:      #E5E8EB;

  /* Forma / movimiento */
  --radius-sm: 10px;
  --radius:    16px;   /* mismo radius generoso de los correos */
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(17,19,21,.05), 0 1px 3px rgba(17,19,21,.06);
  --shadow:    0 8px 24px -8px rgba(17,19,21,.14), 0 2px 8px -2px rgba(17,19,21,.08);
  --shadow-lg: 0 32px 64px -24px rgba(17,19,21,.28), 0 8px 24px -8px rgba(17,19,21,.14);
  --shadow-yellow: 0 20px 48px -18px rgba(245,179,1,.55);
  --ease: cubic-bezier(.2,.7,.2,1);

  --maxw: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font-sans);
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* red de seguridad anti-scroll horizontal */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--yellow); color: var(--black); }

/* Foco visible accesible */
:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Salto de accesibilidad */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  /* Al enfocarse aterriza DENTRO del header, que ahora es negro: en negro
     sobre negro era invisible. Amarillo de marca sobre tinta = 11.7:1. */
  background: var(--yellow); color: var(--black); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- Logo (palabra + pastilla 787) ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); }
.logo .word { font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.logo .tag {
  background: var(--yellow); color: var(--black);
  font-weight: 800; line-height: 1;
  border-radius: 8px; padding: .28em .5em;
  box-shadow: 0 2px 8px -2px rgba(245,179,1,.6);
}
.logo--light .word { color: var(--white); }
.logo--dark  .word { color: var(--black); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* .94 y no .82: con el fondo casi blanco del hero debajo, un alfa bajo
     componia a gris carbon (rgb 50,52,54) en vez de negro. Aqui compone a
     rgb(31,33,35) — se lee negro y conserva el blur del contenido al pasar. */
  background: rgba(17,19,21,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* Sobre fondo negro, la linea y la sombra claras del tema no se ven: van
   invertidas (hairline blanca tenue + sombra mas profunda que la --shadow-sm). */
.site-header.is-stuck {
  border-bottom-color: rgba(255,255,255,.10);
  box-shadow: 0 10px 28px -12px rgba(0,0,0,.55);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.site-header .logo { font-size: 21px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link {
  color: var(--grey-300); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a.nav-link:hover { color: var(--white); background: rgba(255,255,255,.09); }
.header-cta { display: inline-flex; }

@media (max-width: 720px) {
  .nav .nav-link { display: none; }
  .site-header__inner { height: 60px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--yellow); color: var(--black);
  box-shadow: 0 10px 24px -12px rgba(245,179,1,.9);
}
.btn-primary:hover { background: var(--yellow-dark); box-shadow: var(--shadow-yellow); transform: translateY(-2px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--grey-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  background: var(--white); color: var(--black); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--grey-300); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Store badges (Google Play / App Store) ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--black); color: var(--white);
  border-radius: 14px; padding: 11px 18px 11px 16px;
  min-width: 180px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-badge .glyph { width: 26px; height: 26px; flex: none; }
.store-badge .store-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .store-txt .small { font-size: 11px; color: var(--grey-300); letter-spacing: .02em; }
.store-badge .store-txt .big { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
/* estado próximamente */
.store-badge.is-soon { cursor: default; }
.store-badge.is-soon::after {
  content: "Próximamente";
  position: absolute; top: -10px; right: -8px;
  background: var(--yellow); color: var(--black);
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(245,179,1,.9);
  text-transform: uppercase;
}
.store-badge.is-soon:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 720px; height: 720px; right: -180px; top: -260px;
  background: radial-gradient(closest-side, rgba(255,199,44,.55), rgba(255,199,44,0));
  filter: blur(10px); pointer-events: none;
}
/* (Sin .hero::after: el radial azul de la esquina inferior izquierda se
   retiró — bajo el slab negro de .islandband se leía como lodo, y la banda
   es deliberadamente bicolor: oro sobre negro.) */
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(20px, 3vw, 36px);
}
/* La copia se alinea arriba para que el teléfono (columna más alta) pueda
   hundirse en la banda sin que el texto oscuro caiga sobre el mar. */
.hero-copy { align-self: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--line);
  color: var(--text-soft); font-weight: 600; font-size: 13.5px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(46,125,50,.15); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(38px, 6.4vw, 66px);
  color: var(--black);
}
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--black); }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .34em; z-index: -1;
  background: var(--yellow); border-radius: 6px;
  transform: rotate(-1.2deg);
}
.hero .lead {
  margin-top: 22px; font-size: clamp(16.5px, 2.1vw, 20px);
  color: var(--text-soft); max-width: 44ch;
}
.hero .cta-row { margin-top: 30px; }
.hero .microtrust {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 14px; color: var(--text-mut);
}
.hero .microtrust span { display: inline-flex; align-items: center; gap: 7px; }
.hero .microtrust svg { width: 17px; height: 17px; color: var(--success); flex: none; }

/* ---------- Phone / device ---------- */
.devices { position: relative; display: flex; justify-content: center; align-items: center; padding-block: 28px; }
.device {
  position: relative; z-index: 2;
  width: clamp(230px, 30vw, 308px);
  aspect-ratio: 1080 / 2205;
  background: var(--black);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
  animation: deviceFloat 7s ease-in-out infinite;
}
.device::before { /* notch */
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 40%; height: 22px; background: var(--black); border-radius: 0 0 16px 16px; z-index: 3;
}
.device .screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--black);
}
.device .screen canvas { width: 100%; height: 100%; display: block; }
.device--front { z-index: 2; }

/* Aura ambiental detras del telefono: partículas + brillo respirando */
.aura {
  position: absolute; z-index: 0; inset: -18% -10%;
  pointer-events: none;
  /* Se desvanece antes de tocar el agua: el mar de .islandband va VACÍO.
     El derrame cálido bajo el teléfono se repinta dentro del canvas de la
     banda (allí sí se controla), así que no se pierde nada. */
  -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 71%);
          mask-image: linear-gradient(to bottom, #000 56%, transparent 71%);
}
.aura canvas { width: 100%; height: 100%; display: block; }

/* Tarjetas de anuncio "escapando" del telefono: vida sin ser el foco */
.flycard {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 14px 9px 9px; box-shadow: var(--shadow);
  font-size: 12.5px; line-height: 1.25; white-space: nowrap;
  animation: flycardDrift 9s ease-in-out infinite;
}
.flycard b { display: block; color: var(--black); font-size: 13px; font-weight: 700; }
.flycard i { display: block; color: var(--text-mut); font-style: normal; }
.flycard__icon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
}
.flycard__icon svg { width: 18px; height: 18px; }
.flycard__icon--auto { background: #EAF1FB; color: var(--info); }
.flycard__icon--casa { background: #FFF6DE; color: var(--yellow-dark); }
.fly-a { right: -8%; top: 6%; animation-delay: .4s; }
.fly-b { left: -10%; bottom: 10%; animation-delay: 2.1s; }

.devices .float-tag {
  position: absolute; z-index: 4;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 700; color: var(--black);
  display: inline-flex; align-items: center; gap: 9px;
  animation: tagFloat 6s ease-in-out infinite;
}
.devices .float-tag svg { width: 18px; height: 18px; flex: none; }
.devices .tag-a { left: -2%; top: 10%; animation-delay: .8s; }
.devices .tag-b { left: 4%; bottom: 16%; animation-delay: 3s; }
.devices .tag-a .ic { color: var(--success); }
.devices .tag-b .ic { color: var(--info); }

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes flycardDrift {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .device, .devices .float-tag, .flycard { animation: none; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta-row .stores, .hero .microtrust { justify-content: center; }
  .eyebrow { margin-inline: auto; }
  .devices { margin-top: 8px; }
  .devices .tag-a { left: 0; }
  .devices .tag-b { left: auto; right: 0; }
  .fly-a { right: -2%; }
  .fly-b { left: -2%; }
}
@media (max-width: 420px) {
  .devices .float-tag { display: none; }
  .flycard { display: none; }
}

/* ---------- Hero banner "Isla Encendida" (suelo del hero) ----------
   Banda oscura a sangre completa que ocupa la franja inferior del hero.
   El margin-top negativo la sube hasta MORDER el teléfono: la línea de agua
   cruza el device y éste queda medio sumergido. El borde amarillo inferior
   es regla de póster: corta la escena oscura contra la sección clara. */
.islandband {
  position: relative; z-index: 1;
  width: 100%;
  height: 320px;
  margin-top: -176px;            /* muerde el teléfono ~110px */
  background: #0E1012;           /* fallback antes del primer frame */
  border-top: 1.5px solid rgba(255,199,44,.20);
  border-bottom: 3px solid var(--yellow);
  pointer-events: auto;          /* necesario para la linterna */
  overflow: hidden;
}
.islandband canvas { display: block; width: 100%; height: 100%; }
.islandband__foot {
  position: absolute; left: 0; right: 0; bottom: 20px;
  pointer-events: none;
}
.islandband__kicker {
  display: inline-block;
  font-family: var(--font-sans); font-weight: 600; font-size: 12.5px;
  letter-spacing: .09em; text-transform: uppercase;
  color: #8E959C; line-height: 1;
}

@media (max-width: 1199px) {
  /* El tirón NO puede ser fijo en este tramo. Por debajo de ~1030px el
     teléfono encoge (width: clamp(230px,30vw,308px)) mucho más rápido de lo
     que crece la copia, así que el techo de la banda sube POR ENCIMA del
     <p class="microtrust"> y ese texto gris (#6B7178) queda pintado sobre el
     mar casi negro: contraste ~3.6:1, por debajo del 4.5:1 que exige WCAG AA,
     y el borde superior de la banda parte la fila de glifos por la mitad.
     Medido en Chrome con el -160px fijo, holgura (islandband.top −
     microtrust.bottom): -18.4px a 861, -15.3 a 870, -11.8 a 880, -4.9 a 900,
     +2.1 a 920, +9.0 a 940, +16.7 a 960, +25.6 a 980 (negativo = solape).
     La recta de abajo devuelve exactamente ese déficit y deja >=28px de aire
     en TODO el tramo de 2 columnas, sin escalón: a partir de 1000px el calc
     ya cae por debajo de -160px y el tirón vuelve a ser el de siempre.
     El teléfono sigue sumergido 60-102px, así que la mordida no se pierde. */
  .islandband { height: 280px; margin-top: max(-160px, calc(174px - 33.4vw)); }
}
@media (max-width: 860px) {
  /* El grid del hero colapsa a 1 columna centrada: el teléfono queda
     centrado y ya no puede sumergirse sobre la isla, solo BESA el agua. */
  .islandband { height: 240px; margin-top: -64px; }
  .islandband__foot { text-align: center; }
}
@media (max-width: 560px) {
  .islandband { height: 200px; margin-top: -62px; border-bottom-width: 2px; }
  .islandband__kicker { font-size: 11px; letter-spacing: .07em; }
}
@media (max-width: 420px) {
  .islandband { height: 180px; }
}

/* ---------- Encabezado de sección ---------- */
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 14px;
}
.sec-head h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.08; color: var(--black);
}
.sec-head p { margin-top: 16px; font-size: clamp(16px, 2vw, 18.5px); color: var(--text-soft); }

/* ---------- Beneficios ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--grey-300); }
.benefit .ic-wrap {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, #FFF3CE, #FFE49A);
  color: var(--black); box-shadow: inset 0 0 0 1px rgba(245,179,1,.35);
}
.benefit .ic-wrap svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--black); margin-bottom: 8px; }
.benefit p { font-size: 14.6px; color: var(--text-soft); }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- Showcase (banda oscura con screenshots reales) ---------- */
.showcase { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.showcase::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(255,199,44,.16), rgba(255,199,44,0));
}
.showcase .container { position: relative; z-index: 1; }
.showcase .sec-head h2 { color: var(--white); }
.showcase .sec-head p { color: #C6CBD1; }
.showcase .kicker { color: var(--yellow); }
.shots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 30px);
  align-items: end; margin-top: 8px;
}
.shot {
  border-radius: 26px; padding: 8px; background: #0C0D0F;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .3s var(--ease);
  container-type: inline-size; /* las cqw de .mock* escalan con ESTE ancho, no el viewport */
}
.shot:nth-child(odd) { transform: translateY(14px); }
.shot:hover { transform: translateY(0) scale(1.02); }
.shot figcaption {
  margin-top: 12px; text-align: center; font-size: 13px; color: #AEB4BB; font-weight: 600;
}
@media (max-width: 780px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .shot:nth-child(odd) { transform: none; }
}

/* ---------- "Así se ve": maquetas de UI reales en HTML/CSS ----------
   Nada de fotos de relleno: la propia app (ver el screenshot que compartió
   el dueño) es blanca con barra negra y acentos amarillos — se reconstruye
   fiel con los MISMOS tokens de marca, así que nunca desentona ni depende
   de una foto de datos de prueba. */
.mock {
  aspect-ratio: 640 / 1137; border-radius: 20px; overflow: hidden;
  background: var(--bg-soft); display: flex; flex-direction: column;
  font-family: var(--font-sans); color: var(--text);
}
.mock__bar {
  flex: none; background: var(--black); color: var(--white);
  display: flex; align-items: center; gap: 8px;
  padding: 0 5.5%; height: 12.5%;
}
.mock__word { font-family: var(--font-display); font-weight: 700; font-size: 4.6cqw; }
.mock__word b { background: var(--yellow); color: var(--black); border-radius: 4px; padding: 0 3px; margin-left: 2px; }
.mock__pagetitle { font-family: var(--font-display); font-weight: 700; font-size: 4.6cqw; }
.mock__icons { margin-left: auto; display: flex; gap: 10px; color: var(--white); }
.mock__icons svg, .mock__back, .mock__share { width: 4.4cqw; height: 4.4cqw; flex: none; }
.mock__back { margin-right: 2px; }
.mock__share { margin-left: auto; }

.mock__body { flex: 1; padding: 5.5%; overflow: hidden; }
.mock__body--flush { padding: 0; display: flex; flex-direction: column; }

.mock__rowhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 3.2%; }
.mock__rowhead b { font-size: 4cqw; font-weight: 700; }
.mock__rowhead i { font-style: normal; font-size: 2.9cqw; color: var(--text-mut); }
.mock__rowhead--peek { margin-top: 5%; opacity: .45; }

.mock__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4%; }
.mock__card { display: flex; flex-direction: column; }
.mock__title { display: block; font-size: 3.15cqw; font-weight: 700; margin-top: 2.4%; line-height: 1.25; }
.mock__price { display: block; font-style: normal; font-size: 3.4cqw; font-weight: 800; color: var(--black); margin-top: .8%; }

.mock__thumb {
  position: relative; aspect-ratio: 1/.86; border-radius: 12px;
  display: grid; place-items: center; overflow: hidden;
}
.mock__thumb svg { width: 34%; height: 34%; opacity: .5; }
.mock__thumb--sm { aspect-ratio: 1/1; border-radius: 10px; flex: none; width: 17%; }
.thumb-casa   { background: linear-gradient(150deg, #FFE9A8, #FFC72C); color: #6B4E00; }
.thumb-solar  { background: linear-gradient(150deg, #CDEBD2, #6FBE7C); color: #1E5127; }
.thumb-apto   { background: linear-gradient(150deg, #CFE0F7, #6FA3E0); color: #0E3B6B; }
.thumb-oficina{ background: linear-gradient(150deg, #4A4F55, #1C1F22); color: #E7E9EB; }

.mock__badge {
  position: absolute; top: 6%; left: 6%; z-index: 1;
  background: var(--yellow); color: var(--black);
  font-size: 2.4cqw; font-weight: 800; letter-spacing: .01em;
  padding: .8% 2.6%; border-radius: 999px; text-transform: uppercase;
}
.mock__badge--sm { font-size: 6.4px; padding: 2px 5px; }

.mock__search {
  display: flex; align-items: center; gap: 2%;
  background: var(--white); border: 1px solid var(--line); border-radius: 11px;
  padding: 3.2% 4%; font-size: 3cqw; color: var(--text-mut); margin-bottom: 5%;
}
.mock__search svg { width: 4cqw; height: 4cqw; flex: none; color: var(--text-mut); }

.mock__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.mock__cat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4% 3%; }
.mock__cat b { display: block; font-size: 2.7cqw; font-weight: 700; margin-top: 4%; }
.mock__cat i { display: block; font-style: normal; font-size: 2.35cqw; color: var(--text-mut); margin-top: .6%; }
.mock__cicon { display: grid; place-items: center; width: 26%; aspect-ratio: 1; border-radius: 9px; }
.mock__cicon svg { width: 60%; height: 60%; }
.ci-casa  { background: #FFF6DE; color: #8A6300; }
.ci-auto  { background: #E9F1FB; color: #1565C0; }
.ci-tech  { background: #EEF1F4; color: #111315; }
.ci-hogar { background: #EAF6EC; color: #2E7D32; }
.ci-empleo{ background: #F3EAFB; color: #6A3FA0; }
.ci-serv  { background: #FDECEC; color: #B23A3A; }

.mock__tabs { display: flex; gap: 2%; margin-bottom: 4%; }
.mock__tab {
  font-size: 2.7cqw; font-weight: 700; padding: 2.2% 3.6%; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--text-soft);
}
.mock__tab.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.mock__toolbar { display: flex; gap: 3%; margin-bottom: 4.5%; }
.mock__pill {
  display: inline-flex; align-items: center; gap: 1.6%;
  font-size: 2.6cqw; font-weight: 700; color: var(--text-soft);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2% 3.6%;
}
.mock__pill svg { width: 3.4cqw; height: 3.4cqw; }

.mock__list { display: flex; flex-direction: column; gap: 3%; }
.mock__row {
  display: flex; align-items: center; gap: 3%;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 2.6%;
}
.mock__rowtext b { display: block; font-size: 2.85cqw; font-weight: 700; }
.mock__rowtext i { display: block; font-style: normal; font-size: 2.5cqw; color: var(--text-mut); margin-top: 1%; }

.mock__hero { position: relative; aspect-ratio: 1/.92; border-radius: 0; flex: none; }
.mock__hero svg { width: 22%; height: 22%; opacity: .45; }
.mock__dots { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.mock__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); }
.mock__dots i.is-on { background: var(--white); width: 14px; border-radius: 3px; }
.mock__detail { padding: 5.5%; display: flex; flex-direction: column; }
.mock__dtitle { font-size: 4cqw; font-weight: 700; line-height: 1.2; }
.mock__dprice { font-family: var(--font-display); font-size: 5.6cqw; font-weight: 800; margin-top: 2%; }
.mock__dloc { display: inline-flex; align-items: center; gap: 1.6%; font-size: 2.8cqw; color: var(--text-mut); margin-top: 2%; }
.mock__dloc svg { width: 3.6cqw; height: 3.6cqw; }
.mock__cta { display: flex; gap: 3%; margin-top: 6%; }
.mock__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 1.8%;
  font-size: 3cqw; font-weight: 700; border-radius: 11px; padding: 3.6% 0;
}
.mock__btn svg { width: 3.6cqw; height: 3.6cqw; }
.mock__btn--dark { background: var(--black); color: var(--white); }
.mock__btn--yellow { background: var(--yellow); color: var(--black); }

/* ---------- Categorías ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 18px;
  font-weight: 600; font-size: 15px; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.cat-chip .emoji { font-size: 17px; line-height: 1; }
.cat-chip:hover { transform: translateY(-3px); border-color: var(--yellow); background: #FFFBEF; box-shadow: var(--shadow); }

/* ---------- CTA final ---------- */
.cta-band { background: var(--bg-soft); }
.cta-box {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 72px);
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-box::before, .cta-box::after {
  content: ""; position: absolute; border-radius: 50%;
}
.cta-box::before { width: 320px; height: 320px; background: rgba(255,255,255,.16); left: -120px; top: -140px; }
.cta-box::after { width: 260px; height: 260px; background: rgba(17,19,21,.06); right: -100px; bottom: -120px; }
.cta-box h2 {
  position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800;
  letter-spacing: -.025em; color: var(--black); font-size: clamp(28px, 4.6vw, 46px); line-height: 1.05;
}
.cta-box p { position: relative; z-index: 1; color: #4A3B06; margin-top: 14px; font-size: clamp(16px,2vw,19px); font-weight: 500; }
.cta-box .stores { position: relative; z-index: 1; justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #AEB4BB; padding-block: clamp(48px, 7vw, 72px) 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(28px,5vw,56px); }
.site-footer .logo { font-size: 24px; margin-bottom: 16px; }
.site-footer .tagline { max-width: 34ch; font-size: 14.5px; color: #9AA0A6; }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #AEB4BB; font-size: 15px; margin-bottom: 11px; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: clamp(36px,5vw,52px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: #7E858C;
}
.footer-bottom .mini-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: var(--yellow); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brandcol { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animación reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .benefit, .store-badge, .cat-chip, .step, .shot { transition: none !important; }
}

/* ==========================================================================
   Páginas legales — mismo marco, tipografía y branding que la landing
   El CONTENIDO legal se conserva íntegro; solo cambia la presentación.
   ========================================================================== */
.legal-notice {
  background: #FFF8E1; border-bottom: 1px solid var(--yellow);
  color: #6B4E00; font-size: 13px; text-align: center;
  padding: 10px 18px;
}
.legal-hero {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding-block: clamp(36px, 6vw, 64px);
}
.legal-hero .container { max-width: 820px; }
.legal-hero .backlink {
  display: inline-flex; align-items: center; gap: 7px; color: var(--text-mut);
  font-weight: 600; font-size: 14px; margin-bottom: 18px;
}
.legal-hero .backlink:hover { color: var(--black); }
.legal-hero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.05; color: var(--black);
}
.legal-hero .updated { margin-top: 12px; color: var(--text-mut); font-size: 14.5px; }
.legal-nav { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.legal-nav a {
  font-size: 13.5px; font-weight: 600; color: var(--text-soft);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; transition: border-color .18s var(--ease), color .18s var(--ease);
}
.legal-nav a:hover { border-color: var(--yellow); color: var(--black); }
.legal-nav a[aria-current="page"] { background: var(--black); color: var(--white); border-color: var(--black); }

.legal-body { padding-block: clamp(36px, 6vw, 64px); }
.legal-body .container { max-width: 820px; }
.legal-body h2 {
  font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 23px); font-weight: 700;
  letter-spacing: -.01em; color: var(--black);
  margin-top: 40px; margin-bottom: 14px;
  padding-left: 16px; border-left: 4px solid var(--yellow);
  scroll-margin-top: 84px;
}
.legal-body h2:first-of-type { margin-top: 8px; }
.legal-body h3 { font-size: 16px; font-weight: 700; color: var(--black); margin-top: 22px; margin-bottom: 8px; }
.legal-body p, .legal-body li { font-size: 15.5px; color: var(--text-soft); margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 16px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--black); }
.legal-body a { color: var(--yellow-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: #C68A00; }
.legal-body .callout {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 18px 0; box-shadow: var(--shadow-sm);
}
.legal-body .callout p:last-child { margin-bottom: 0; }
.legal-body .callout.warn { border-color: var(--yellow); background: #FFFBEF; }
.legal-body .steps-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 8px; margin: 18px 0; box-shadow: var(--shadow-sm);
}
.legal-body .steps-card li { margin-bottom: 14px; }
.legal-body table {
  width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px;
  display: block; overflow-x: auto; /* nunca desbordar en móvil */
}
.legal-body table tbody { display: table; width: 100%; }
.legal-body th, .legal-body td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
.legal-body th { background: var(--bg-soft); color: var(--black); font-weight: 700; }
.legal-body .btn-inline {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--yellow); color: var(--black); font-weight: 800; text-decoration: none;
  border-radius: var(--radius); padding: 14px 22px; margin: 12px 0 6px;
  box-shadow: 0 10px 24px -12px rgba(245,179,1,.9);
  transition: transform .18s var(--ease), background .2s var(--ease);
}
.legal-body .btn-inline:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.legal-body .muted { color: var(--text-mut); font-size: 14px; }
.legal-body .back { display: inline-block; margin-top: 28px; font-weight: 700; }
