/* ==========================================================================
   Chollofinder — Landing de waitlist · Dirección de arte "Cartografía editorial"
   Papel hueso + terracota Madrid. Fraunces / Hanken Grotesk / Space Mono.
   Mobile-first. Radios coherentes: --r-sm 12 / --r-md 20 / --r-lg 28 / pill.
   ========================================================================== */

/* ------------------------------------------- tipografías AUTO-HOSPEDADAS
   Sin Google Fonts: los woff2 viven en fonts/ para que la IP del visitante
   no viaje a Google (RGPD, sentencia LG München 2022). Bajados de gstatic
   el 2026-07-06 con los pesos que usa la landing. Fraunces y Hanken Grotesk
   son fuentes VARIABLES (wght 100–900; la itálica de Fraunces va clavada a
   400); Space Mono es estática. Subsets latin + latin-ext con el
   unicode-range original de Google (el navegador solo baja el que usa).
   og-image.html lleva sus propios @font-face inline a estos mismos woff2. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-normal-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-normal-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fraunces-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fraunces-italic-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/hanken-grotesk-normal-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/hanken-grotesk-normal-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-mono-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-mono-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-normal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-normal-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* Paleta (papel hueso — decisión validada) */
  --papel: #f4efe6;
  --papel-alto: #faf7f0;   /* superficies elevadas: tarjetas, formulario   */
  --papel-bajo: #ece5d6;   /* superficies hundidas: chips, foto de muestra */
  --tinta: #1c1a17;
  --gris: #6b645a;
  --linea: #ded6c8;
  --linea-suave: rgba(28, 26, 23, 0.08);
  --acento: #e4572e;        /* terracota Madrid                             */
  --acento-texto: #c7431f;  /* variante AA para texto pequeño               */
  --acento-suave: rgba(228, 87, 46, 0.09);

  /* Radios */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Tipografías */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-cuerpo: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Space Mono", "Courier New", monospace;

  --ancho: 1180px;
  --sombra: 0 20px 55px -30px rgba(28, 26, 23, 0.25);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-cuerpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--acento); color: var(--papel-alto); }

/* --------------------------------------------- fondo: cuadrícula + grano */
/* Cuadrícula cartográfica muy sutil, fija, detrás de todo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--linea-suave) 1px, transparent 1px),
    linear-gradient(90deg, var(--linea-suave) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
}
/* Grano de papel (ruido SVG embebido, coste cero de red) */
.grano {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ utilidades */
.container {
  width: min(var(--ancho), 100% - 2.5rem);
  margin-inline: auto;
}
.mono { font-family: var(--f-mono); }
.kicker {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--acento);
}
.visualmente-oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.salto-contenido {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  background: var(--tinta);
  color: var(--papel);
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: top 0.2s ease;
}
.salto-contenido:focus-visible { top: 1rem; }

/* Foco visible en toda la página */
:focus-visible {
  outline: 2px solid var(--acento-texto);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------------------------------- tipografía */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.6vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; line-height: 1.2; }
h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--acento-texto);
}
p { max-width: 62ch; }

/* -------------------------------------------------------------- cabecera */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--linea);
}
.cabecera-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.8rem;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.marca svg { width: 26px; height: 26px; }
.nav-enlaces {
  display: none;
  gap: 1.6rem;
  margin-inline: auto;
}
.nav-enlaces a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gris);
  transition: color 0.15s ease;
}
.nav-enlaces a:hover { color: var(--tinta); }
/* El empuje a la derecha lo hace .lang-sel (antes lo hacía el .btn) */
.cabecera .btn { margin-left: 0; }

/* Los dos CTAs van juntos (gap corto, no el 1.5rem del header) y son los que
   empujan a la derecha (antes lo hacía el lang-sel, ahora pegado al logo).
   El de ideas es SECUNDARIO: ghost, más pequeño y en gris — el primario manda. */
.cabecera-ctas {
  margin-left: auto;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
}
.cabecera .cta-ideas {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  color: var(--gris);
}
.cabecera .cta-ideas:hover { color: var(--tinta); }
/* ── Header responsive (anchos MEDIDOS con los textos ES, los más largos) ──
   El logo nunca se aplasta (antes el flex encogía la brújula a 3px), y un CTA
   partido en dos líneas es un CTA roto → nowrap desde 380px. */
.cabecera .marca, .cabecera .marca svg { flex-shrink: 0; }
@media (min-width: 380px) { .cabecera .btn { white-space: nowrap; } }

/* <560px: marca + idioma + CTA principal llenan justo las ~340px útiles de un
   380 — versión compacta de los tres (el primario sigue siendo el único
   relleno en terracota: la jerarquía no cambia, solo el tamaño). */
@media (max-width: 559px) {
  .cabecera-inner { gap: 0.6rem; }
  .marca { font-size: 0.85rem; }
  .lang-sel { font-size: 0.7rem; }
  .lang-sel > span { display: none; }   /* el separador | cede */
  .cabecera .btn-s { font-size: 0.85rem; padding: 0.5rem 0.85rem; }
}

/* El SECUNDARIO (ideas) solo se muestra donde cabe sin aplastar nada
   (RE-MEDIDO en ES 2026-07-06 con el enlace FAQ en el nav): de 600 a 759
   (sin nav) y de 960 en adelante (con nav de 4 enlaces). Donde no cabe, cede
   él: #ideas queda a un scroll y el primario no se toca. En la banda 760–959
   el nav además se compacta (fuente y huecos) para ir en UNA línea. */
@media (max-width: 599px) { .cabecera .cta-ideas { display: none; } }
@media (min-width: 760px) and (max-width: 959px) {
  .cabecera .cta-ideas { display: none; }
  .cabecera-inner { gap: 1rem; }
  .nav-enlaces { gap: 1.1rem; }
  .nav-enlaces a { font-size: 0.88rem; }
}

/* Selector de idioma ES|EN, junto a la marca (i18n.js lo cablea; persiste
   cookie 'idioma'). El separador vertical lo ancla visualmente al logo. */
.lang-sel {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--linea);
  border-left: 1px solid var(--linea);
  padding-left: 0.9rem;
}
.lang-sel button {
  background: none;
  border: none;
  padding: 0.15rem 0.25rem;
  font: inherit;
  color: var(--gris);
  cursor: pointer;
}
.lang-sel button:hover { color: var(--tinta); }
.lang-sel button.activo,
.lang-sel button[aria-pressed="true"] {
  color: var(--acento-texto);
  text-decoration: underline;
  cursor: default;
}

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
  will-change: transform;
}
.btn-primario {
  background: var(--acento);
  color: var(--tinta);
  border-color: rgba(28, 26, 23, 0.28);
}
.btn-primario:hover { background: #d84a20; transform: translateY(-1px); }
.btn-primario:active { transform: translateY(0); }
.btn-fantasma {
  background: transparent;
  color: var(--tinta);
  border-color: rgba(28, 26, 23, 0.28);
}
.btn-fantasma:hover { border-color: var(--tinta); }
.btn-s { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

/* Línea de escasez (cualitativa, jamás con números) */
.escasez {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acento-texto);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.escasez::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acento);
  animation: latido 2.4s ease-in-out infinite;
}
@keyframes latido {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.68); opacity: 0.65; }
}

/* ------------------------------------------------------------------- hero */
.hero { padding-block: clamp(2.2rem, 6vh, 4.5rem) clamp(3.5rem, 8vh, 6rem); }
.hero-coords {
  max-width: none;   /* anula el tope global de <p>: esta regla cruza todo el ancho */
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--linea);
  padding-bottom: 0.55rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  white-space: nowrap;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2.6rem;
  align-items: center;
}
.hero-texto .kicker { margin-bottom: 1.4rem; }
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--gris);
  max-width: 46ch;
}
.hero-texto .escasez { margin-top: 1.9rem; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
}

/* Marco del mapa */
.mapa-marco {
  position: relative;
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--papel-bajo);
  box-shadow: var(--sombra);
  aspect-ratio: 10 / 8.2;
  max-height: 620px;
  touch-action: pan-y;             /* en modo "ver", el dedo hace scroll   */
}
.mapa-marco.dibujando { touch-action: none; cursor: crosshair; }
.mapa-marco.dibujando::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--acento);
  border-radius: var(--r-lg);
  pointer-events: none;
}
#mapa {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--papel-bajo);
  z-index: 10;          /* crea stacking context: los panes internos de Leaflet
                           (z-index 400) quedan CONTENIDOS y no tapan el lasso */
  isolation: isolate;
}
/* Tinte "papel" sobre los tiles CARTO */
#mapa .leaflet-tile-pane {
  filter: grayscale(1) sepia(0.26) brightness(0.97) contrast(1.08);
}
#mapa-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
#lasso-capa {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}
.mapa-contador {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 30;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(250, 247, 240, 0.92);
  border: 1px solid var(--linea);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.9rem;
  opacity: 0;
  pointer-events: none;
}
.pill-dibujar {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--papel-alto);
  border: 1px solid var(--linea);
  border-radius: var(--r-pill);
  padding: 0.6rem 1.1rem;
  box-shadow: 0 8px 22px -12px rgba(28, 26, 23, 0.35);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.pill-dibujar[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--papel);
  border-color: var(--tinta);
}
/* Mira cartográfica que sigue al ratón (solo puntero fino) */
.mira {
  position: absolute;
  z-index: 25;
  top: 0; left: 0;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--tinta);
  background: rgba(250, 247, 240, 0.85);
  border: 1px solid var(--linea);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.55rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -170%);
  white-space: nowrap;
}
.mapa-credito {
  margin-top: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--gris);
  text-align: right;
}

/* Estilos de los elementos SVG del lasso y pins (se crean por JS) */
.lasso-trazo {
  fill: none;
  stroke: var(--acento);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 11;
}
.lasso-relleno { fill: var(--acento); opacity: 0; }
.pin-punto { fill: var(--papel-alto); stroke: var(--tinta); stroke-width: 2; }
.pin-centro { fill: var(--tinta); }
.pin-texto {
  font-family: var(--f-mono);
  font-size: 19px;
  font-weight: 700;
  fill: var(--tinta);
  stroke: var(--papel);
  stroke-width: 5px;
  paint-order: stroke;
  text-anchor: middle;
}
.pin-chollo .pin-punto { fill: var(--acento); }
.pin-chip { fill: var(--acento); }
.pin-chip-texto {
  font-family: var(--f-mono);
  font-size: 18px;
  font-weight: 700;
  fill: var(--tinta);
  text-anchor: middle;
}

/* Mapa SVG de repuesto (plan B sin tiles): siluetas a mano alzada */
.fb-grid { stroke: var(--linea); stroke-width: 1; opacity: 0.6; }
.fb-distrito { fill: var(--papel); stroke: var(--gris); stroke-width: 1.4; opacity: 0.85; }
.fb-rio { fill: none; stroke: var(--gris); stroke-width: 5; opacity: 0.35; stroke-linecap: round; }
.fb-ronda { fill: none; stroke: var(--gris); stroke-width: 1.6; stroke-dasharray: 7 7; opacity: 0.5; }
.fb-etiqueta {
  font-family: var(--f-mono);
  font-size: 17px;
  letter-spacing: 0.14em;
  fill: var(--gris);
  text-anchor: middle;
}

/* ---------------------------------------------------------- secciones base */
.seccion {
  border-top: 1px solid var(--linea);
  padding-block: clamp(4rem, 9vh, 7rem);
  position: relative;
}
.folio {
  position: absolute;
  top: 0.9rem;
  right: max(1.25rem, calc((100% - var(--ancho)) / 2));
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris);
  opacity: 0.75;
}
.seccion-intro { max-width: 46rem; }
.seccion-intro > p { color: var(--gris); font-size: 1.1rem; margin-top: 0.4rem; }

/* --------------------------------------------------------- cómo funciona */
.pasos {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.2rem;
  margin-top: 2.8rem;
  counter-reset: paso;
}
.paso {
  background: var(--papel-alto);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.paso-num {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--acento-texto);
}
.paso-grafico {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.paso p { color: var(--gris); font-size: 0.98rem; }

/* Gráficos de los pasos (SVG inline) */
.g-fondo { fill: var(--papel-bajo); }
.g-linea { stroke: var(--linea); stroke-width: 1; }
.g-trazo {
  fill: none;
  stroke: var(--acento);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 2 8;
}
.g-punto { fill: var(--tinta); }
.g-chip { fill: var(--papel-alto); stroke: var(--linea); }
.g-chip-texto {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--gris);
  font-weight: 700;
}
.g-escaner { fill: var(--acento); }
.g-sobre { fill: var(--papel-alto); stroke: var(--tinta); stroke-width: 1.8; }
.g-solapa { fill: none; stroke: var(--tinta); stroke-width: 1.8; stroke-linejoin: round; }
.g-aviso-chip { fill: var(--acento); }
.g-aviso-texto {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  fill: var(--tinta);
  text-anchor: middle;
}

/* --------------------------------------------------------------- portales */
.muro {
  position: relative;
  height: clamp(340px, 46vw, 440px);
  margin-top: 2.4rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 50% 50%, var(--acento-suave), transparent 42%),
    var(--papel-alto);
  overflow: hidden;
}
.muro-lineas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;               /* debajo de los chips (2) y del centro (5) */
}
.muro-lineas line { stroke: rgba(228, 87, 46, 0.22); stroke-width: 1; }
.muro-lineas .muro-pulso { fill: var(--acento); }
.muro-lineas .muro-ping { fill: none; stroke: var(--acento); stroke-width: 1.5; }
.portal {
  position: absolute;
  z-index: 2;               /* el texto siempre por encima de las líneas */
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--r-pill);
  padding: 0.42rem 0.85rem;
  white-space: nowrap;
  will-change: transform;
}
.muro-centro {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  z-index: 5;
}
.muro-diana { width: 74px; height: 74px; }
.muro-centro .marca-pill {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--tinta);
  color: var(--papel);
  border-radius: var(--r-pill);
  padding: 0.5rem 1.1rem;
}
.cifra-bloque {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.2rem;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  padding-block: 1.4rem;
}
.cifra-grande {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--tinta);
}
.cifra-etiqueta { color: var(--gris); font-size: 1.05rem; }
.muro-nota {
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gris);
}

/* ------------------------------------------------------ el lasso producto */
.lasso-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  margin-top: 1rem;
}
.lasso-copy p { color: var(--gris); font-size: 1.1rem; margin-top: 1rem; }
.lasso-copy .frase {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--tinta);
  margin-top: 1.6rem;
  border-left: 3px solid var(--acento);
  padding-left: 1rem;
}
.formas-marco {
  position: relative;
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  background: var(--papel-alto);
  overflow: hidden;
}
.formas-marco svg { width: 100%; height: auto; }
.forma-caption {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  white-space: nowrap;
  opacity: 0;
}
.f-fondo-parque { fill: var(--papel-bajo); }
.f-metro { fill: none; stroke: var(--gris); stroke-width: 2; opacity: 0.55; }
.f-estacion { fill: var(--papel-alto); stroke: var(--gris); stroke-width: 1.6; }
.f-rio { fill: none; stroke: var(--gris); stroke-width: 7; opacity: 0.3; stroke-linecap: round; }
.f-etiqueta { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; fill: var(--gris); text-anchor: middle; }
.f-forma {
  fill: var(--acento-suave);
  stroke: var(--acento);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
  opacity: 0;
}

/* ----------------------------------------------------------------- chollos */
.chollo-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.6rem;
  align-items: center;
}
.tarjeta-piso {
  background: var(--papel-alto);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  padding: 1.5rem;
  position: relative;
  max-width: 30rem;
}
.badge-demo {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gris);
  background: var(--papel-bajo);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}
.piso-foto {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--linea);
  margin-bottom: 1.1rem;
}
.foto-hatch { fill: var(--papel-bajo); }
.foto-hatch-linea { stroke: var(--linea); stroke-width: 1.4; }
.foto-texto { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.18em; fill: var(--gris); text-anchor: middle; }
.foto-pin { fill: var(--acento); }
.tarjeta-piso h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.piso-precios {
  font-family: var(--f-mono);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.piso-precios s { color: var(--gris); font-size: 1rem; }
.piso-precios strong { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; }
.tag-chollo {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--acento-texto);
  background: var(--acento-suave);
  border: 1px solid rgba(228, 87, 46, 0.35);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.85rem;
}
.piso-meta {
  margin-top: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gris);
}
.medidor { text-align: center; }
.medidor svg { max-width: 380px; margin-inline: auto; }
.medidor-copy { color: var(--gris); margin: 1.2rem auto 0; font-size: 1.05rem; max-width: 42ch; }
.m-arco { fill: none; stroke: var(--linea); stroke-width: 15; stroke-linecap: round; }
.m-zona-chollo { fill: none; stroke: var(--acento); stroke-width: 15; stroke-linecap: round; }
.m-tick { stroke: var(--gris); stroke-width: 1.6; }
.m-etiqueta { font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; fill: var(--gris); }
.m-etiqueta-chollo { fill: var(--acento-texto); }
.m-aguja { stroke: var(--tinta); stroke-width: 3.4; stroke-linecap: round; }
.m-eje { fill: var(--tinta); }

/* ------------------------------------------------------------- testimonios */
.testimonios-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.testimonio {
  background: var(--papel-alto);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  padding: 1.7rem;
}
.testimonio blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.35;
}
.testimonio figcaption {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gris);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--papel-bajo);
  border: 1px solid var(--linea);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.15rem;
  font-style: normal;
  color: var(--acento-texto);
}

/* ---------------------------------------------------------------- waitlist */
.seccion-waitlist { background: var(--papel-bajo); }
.waitlist-grid { display: grid; gap: 2.6rem; }
.escalones {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.escalon {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--papel-alto);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  padding: 1.15rem 1.35rem;
}
/* Terrazas: cada escalón entra un poco más, como curvas de nivel */
.escalon:nth-child(2) { margin-left: 1.4rem; }
.escalon:nth-child(3) { margin-left: 2.8rem; }
.escalon-fundador { border-color: rgba(228, 87, 46, 0.5); box-shadow: inset 3px 0 0 var(--acento); }
.escalon .rango {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--acento-texto);
  min-width: 4.6rem;
  padding-top: 0.25rem;
}
.escalon h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.escalon p { color: var(--gris); font-size: 0.95rem; margin-top: 0.2rem; }
.badge-agotado {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--tinta);
  color: var(--papel);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.6rem;
}
.nota-creditos {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--gris);
}
.nota-creditos strong { color: var(--tinta); }

.form-caja {
  background: var(--papel-alto);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--sombra);
}
.form-caja h3 { margin-bottom: 1.4rem; font-size: 1.45rem; }
.campo { margin-bottom: 1.15rem; }
.campo label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.45rem;
}
.campo input[type="text"],
.campo input[type="email"],
.campo textarea {
  width: 100%;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.05rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.campo textarea {
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 6.5rem;
}
.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 3px var(--acento-suave);
}
/* Ocultos por defecto TAMBIÉN fuera de .campo: los errores de consentimiento
   viven sueltos tras el checkbox y los muestra/oculta el JS con display */
.error-campo {
  display: none;
  font-size: 0.82rem;
  color: var(--acento-texto);
  margin-top: 0.35rem;
}
.campo.con-error input,
.campo.con-error textarea { border-color: var(--acento-texto); }
.campo.con-error .error-campo { display: block; }

.pills-op { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pill-op {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid var(--linea);
  border-radius: var(--r-pill);
  padding: 0.5rem 1.05rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill-op[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--papel);
  border-color: var(--tinta);
}

/* Honeypot: fuera de pantalla, invisible para humanos, visible para bots */
.campo-web {
  position: absolute !important;
  left: -6000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consentimiento {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--gris);
  margin-block: 1.3rem;
}
.consentimiento input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--acento-texto);
  flex-shrink: 0;
}
.consentimiento a { color: var(--tinta); }
.form-caja .btn { width: 100%; }
.form-caja .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.estado-envio {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  min-height: 1.4em;
}
.estado-envio.es-error { color: var(--acento-texto); font-weight: 500; }

/* Panel de éxito con sello */
.exito-panel { text-align: center; padding-block: 1.5rem; position: relative; overflow: hidden; }
.sello {
  display: inline-block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  letter-spacing: 0.12em;
  color: var(--acento-texto);
  border: 3px double var(--acento-texto);
  border-radius: 14px;
  padding: 0.9rem 1.6rem;
  transform: rotate(-7deg);
  text-transform: uppercase;
  margin-block: 1.2rem;
}
.exito-panel h3 { font-size: 1.5rem; }
.exito-msg { color: var(--gris); margin: 0.8rem auto 0; max-width: 34ch; }
.confeti-pieza {
  position: absolute;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  top: -14px;
  pointer-events: none;
}

/* ---------------------------------------------------------- caja de ideas */
.ideas-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.4rem;
}
.campo-pie {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.campo-pie .error-campo { margin-top: 0.35rem; }
.contador-idea {
  margin-left: auto;               /* pegado a la derecha aunque no haya error */
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gris);
}
.contador-idea.al-limite { color: var(--acento-texto); }
.btn-otra-idea {
  margin-top: 1.1rem;
  background: none;
  border: none;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--acento-texto);
  text-decoration: underline;
  cursor: pointer;
}
.ideas-muro { display: flex; flex-direction: column; gap: 1rem; }
.ideas-muro-titulo {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.badge-ejemplo {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  background: var(--papel-bajo);
  border: 1px solid var(--linea);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.55rem;
}
.idea-card {
  background: var(--papel-alto);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  padding: 1.2rem 1.35rem;
}
.idea-card p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
}
.idea-cat {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acento-texto);
  border: 1px solid rgba(228, 87, 46, 0.35);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.65rem;
}
.ideas-muro-nota { font-size: 0.85rem; color: var(--gris); }

/* -------------------------------------------------------------------- faq */
/* Acordeón nativo <details>/<summary> — sin JS: teclado, lector de pantalla
   y móvil funcionan solos. El marcador nativo se oculta y lo sustituye un
   +/− en terracota (::after), que no estorba al textContent del i18n. */
.faq-lista {
  margin-top: 2.6rem;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  background: var(--papel-alto);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  transition: border-color 0.18s ease;
}
.faq-item[open] { border-color: rgba(228, 87, 46, 0.5); }
.faq-item summary {
  list-style: none;                 /* fuera el triángulo nativo */
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  text-wrap: balance;
}
.faq-item summary::-webkit-details-marker { display: none; }  /* Safari */
.faq-item summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--acento-texto);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 1.35rem 1.3rem;
  color: var(--gris);
  font-size: 0.98rem;
}
.faq-item a { color: var(--tinta); }

/* ------------------------------------------------------------------ footer */
.pie {
  border-top: 1px solid var(--linea);
  padding-block: clamp(3rem, 7vh, 5rem) 2rem;
}
.pie-grid { display: grid; gap: 2.2rem; }
.pie-marca { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.pie-marca svg { width: 52px; height: 52px; }
.pie p { color: var(--gris); font-size: 0.95rem; max-width: 44ch; }
.pie-titulo {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.8rem;
}
.pie-enlaces { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pie-enlaces a { color: var(--tinta); text-decoration: none; font-size: 0.95rem; }
.pie-enlaces a:hover { text-decoration: underline; }
.pie-coords {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gris);
}
.pie-legal {
  margin-top: 2.6rem;
  border-top: 1px solid var(--linea);
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--gris);
}

/* ------------------------------------------------- página de privacidad */
.pagina-legal { padding-block: 3rem 5rem; max-width: 46rem; }
.pagina-legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.pagina-legal h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.pagina-legal p, .pagina-legal li { color: var(--gris); margin-top: 0.7rem; }
.pagina-legal strong { color: var(--tinta); }
.pagina-legal .fecha { font-family: var(--f-mono); font-size: 0.75rem; color: var(--gris); }
.volver {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 2rem;
  color: var(--acento-texto);
}

/* -------------------------------------------------------- responsive ≥760 */
@media (min-width: 760px) {
  .nav-enlaces { display: flex; }
  .hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 3rem; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .lasso-grid { grid-template-columns: 0.9fr 1.1fr; }
  .chollo-grid { grid-template-columns: 1.05fr 0.95fr; }
  .testimonios-grid { grid-template-columns: 1fr 1fr; }
  .ideas-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .waitlist-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .pie-grid { grid-template-columns: 1.3fr 0.7fr 1fr; }
}

/* ------------------------------------------- titular rotatorio portales */
.portales-claim {
  /* hereda tamaño/serif del h2; solo alineamos la caja con el texto */
  line-height: 1.15;
}
.portales-sub {
  margin-top: 0.6rem;
  color: var(--tinta-suave, #4a463f);
  max-width: 46ch;
}
.rotador {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: baseline;
  background: var(--acento);
  color: var(--papel-alto);
  border-radius: var(--r-md);
  padding: 0.02em 0.34em 0.1em;
  margin: 0 0.06em;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.72em;
  letter-spacing: -0.01em;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(228, 87, 46, 0.28);
  transform: translateY(0.06em);
}
.rotador-pista {
  display: inline-block;
  white-space: nowrap;
  will-change: transform, opacity;
}
.rotador-salida { animation: rotSalida 0.22s ease forwards; }
.rotador-entrada { animation: rotEntrada 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rotSalida  { to   { transform: translateY(-80%); opacity: 0; } }
@keyframes rotEntrada { from { transform: translateY(80%);  opacity: 0; }
                        to   { transform: translateY(0);     opacity: 1; } }

/* ------------------------------------------------- movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .escasez::before { animation: none; }
}
