/* ==========================================================================
   Con Erre — estilos
   Paleta: verde tinta, amarillo sol, hueso. Tipos: Bricolage Grotesque + Instrument Sans.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --verde: #0f3d2e;
  --verde-2: #0a2b20;
  --verde-3: #1c5a45;
  --sol: #ffc83d;
  --sol-2: #f5b100;
  --hueso: #f3f6f2;
  --hueso-2: #e6ece5;
  --salvia: #dde9df;
  --tinta: #15171a;
  --tinta-2: #4b5157;
  --blanco: #ffffff;
  --linea: rgba(21, 23, 26, 0.12);
  --linea-clara: rgba(247, 245, 239, 0.16);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texto: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
  --sombra: 0 1px 2px rgba(15, 61, 46, 0.06), 0 12px 32px -12px rgba(15, 61, 46, 0.18);
  --sombra-alta: 0 2px 4px rgba(15, 61, 46, 0.08), 0 28px 60px -20px rgba(15, 61, 46, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-rebote: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ancho: 1180px;
  --borde: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--hueso);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 640px) { h1, h2 { line-height: 1.14; } }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 3px solid var(--sol-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sol); color: var(--tinta); }

.contenedor { width: min(100% - var(--borde) * 2, var(--ancho)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salto {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--verde); color: var(--hueso); padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s;
}
.salto:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--verde); --fg: var(--hueso);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: 999px;
  font-family: var(--texto); font-weight: 650; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.985); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(15, 61, 46, 0.55); }
  .btn:hover svg.flecha { transform: translateX(4px); }
}
.btn-sol { --bg: var(--sol); --fg: var(--tinta); }
@media (hover: hover) { .btn-sol:hover { background: #ffd35f; box-shadow: 0 14px 28px -12px rgba(245, 177, 0, 0.8); } }
.btn-claro { --bg: var(--blanco); --fg: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn-linea { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-wa { --bg: #15803d; --fg: #fff; }
.btn-s { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn-ancho { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
/* "Gratis" resaltado dentro de un botón: amarillo sobre verde, pastilla verde sobre amarillo. */
.btn .gratis { font-weight: 800; color: var(--sol); }
.btn .gratis[hidden] { display: none; }
.btn-sol .gratis { display: inline-block; margin-left: 2px; padding: 5px 11px; border-radius: 999px; background: var(--verde); color: var(--sol); line-height: 1; }

.enlace {
  font-weight: 650; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size 0.35s var(--ease);
}
@media (hover: hover) { .enlace:hover { background-size: 0 1.5px; background-position: 100% 100%; } }

/* ---------- Piezas pequeñas ---------- */
.ceja {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--verde-3);
}
.ceja::before { content: ""; width: 22px; height: 2px; background: var(--sol-2); border-radius: 2px; }
.oscuro .ceja { color: var(--sol); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea);
  font-size: 0.86rem; font-weight: 600;
}
.punto { width: 8px; height: 8px; border-radius: 50%; background: #1fa855; box-shadow: 0 0 0 4px rgba(31, 168, 85, 0.18); }
.marcador { position: relative; white-space: nowrap; z-index: 0; }
.marcador svg {
  position: absolute; left: -3%; bottom: -0.12em; width: 106%; height: 0.42em; z-index: -1; overflow: visible;
}
.marcador path {
  fill: none; stroke: var(--sol); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  animation: trazo 0.9s 0.55s var(--ease) backwards;
}
/* Si la animación no corre, el subrayado igual queda dibujado. */
@keyframes trazo { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-ver] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-ver].visto { opacity: 1; transform: none; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: fixed; inset: 14px 0 auto 0; z-index: 100;
  pointer-events: none;
}
.cabecera-in {
  pointer-events: auto;
  width: min(100% - 24px, var(--ancho) + 24px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(247, 245, 239, 0.94);
  box-shadow: inset 0 0 0 1px var(--linea);
  transition: box-shadow 0.4s var(--ease), background 0.4s;
}
@supports (backdrop-filter: blur(12px)) {
  .cabecera-in { background: rgba(247, 245, 239, 0.78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.cabecera.baja .cabecera-in { box-shadow: inset 0 0 0 1px var(--linea), var(--sombra); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--verde); }
.logo-iso { width: 38px; height: 38px; flex: none; }
.logo-iso .anillo {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: anillo-abre 1.1s 0.15s var(--ease) forwards;
  transition: stroke-dashoffset 0.6s var(--ease);
}
@keyframes anillo-abre { to { stroke-dashoffset: 15; } }
.logo:hover .logo-iso .anillo, .logo:focus-visible .logo-iso .anillo { animation: none; stroke-dashoffset: 0; }
.logo-txt { font-family: var(--display); font-size: 1.32rem; letter-spacing: -0.035em; line-height: 1; font-weight: 500; }
.logo-txt b { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-size: 0.96rem; font-weight: 600; color: var(--tinta);
  transition: background 0.25s, color 0.25s;
}
@media (hover: hover) { .nav a:hover { background: var(--salvia); color: var(--verde); } }
.nav a[aria-current="page"] { background: var(--salvia); color: var(--verde); }
.cabecera-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--verde); color: var(--hueso); cursor: pointer; place-items: center;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .cabecera-cta .btn { display: none; }
  .nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; border-radius: 24px;
    background: var(--hueso); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-alta);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav a { padding: 14px 16px; font-size: 1.08rem; }
  .nav .nav-cta { display: flex; margin-top: 8px; }
  .cabecera.abierta .nav { opacity: 1; visibility: visible; transform: none; }
}
.nav .nav-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(128px, 15vw, 176px) 0 clamp(56px, 8vw, 96px);
  overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 88% 8%, rgba(255, 200, 61, 0.28), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(15, 61, 46, 0.1) 1px, transparent 0) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.55rem, 5.5vw, 4.5rem); margin: 22px 0 22px; letter-spacing: -0.04em; }
.hero h1 .suave { color: var(--verde-3); }
.hero-bajada { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--tinta-2); max-width: 34em; }
.hero-bajada b { color: var(--tinta); font-weight: 650; }

.probar { margin-top: 30px; max-width: 560px; }
.probar-campo {
  display: flex; gap: 8px; padding: 8px;
  background: var(--blanco); border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--linea), var(--sombra);
  transition: box-shadow 0.3s var(--ease);
}
.probar-campo:focus-within { box-shadow: inset 0 0 0 2px var(--verde), var(--sombra-alta); }
.probar-campo input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 0 8px 0 20px; font-size: 1.08rem; font-weight: 600;
}
.probar-campo input::placeholder { color: #6b7075; font-weight: 500; }
.probar-nota { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 0.9rem; color: var(--tinta-2); }
.probar-nota span { display: inline-flex; align-items: center; gap: 7px; }
.probar-nota svg { width: 16px; height: 16px; color: var(--verde-3); }

/* El sello: pieza animada del hero */
.sello { position: relative; }
.sello-panel {
  position: relative; aspect-ratio: 1 / 1.04; border-radius: var(--r-l);
  background: var(--verde); color: var(--hueso);
  overflow: hidden; isolation: isolate;
  box-shadow: var(--sombra-alta);
}
.sello-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(255, 200, 61, 0.22), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(247, 245, 239, 0.1) 1px, transparent 0) 0 0 / 22px 22px;
}
.orbita { position: absolute; left: 50%; top: 50%; width: 128%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; animation: girar 80s linear infinite; }
.orbita circle { fill: none; stroke: rgba(247, 245, 239, 0.16); stroke-width: 0.4; }
.orbita circle:nth-child(2) { stroke-dasharray: 1.2 2.4; stroke: rgba(255, 200, 61, 0.45); }
@keyframes girar { to { rotate: 360deg; } }

.etiqueta {
  position: absolute; left: 50%; top: 47%;
  width: min(80%, 400px); translate: -50% -50%; rotate: -5deg;
  padding: 26px 28px 24px;
  background: var(--hueso); color: var(--tinta);
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
  transition: rotate 0.8s var(--ease), translate 0.8s var(--ease);
}
.sello:hover .etiqueta { rotate: -2deg; }
.etiqueta::before {
  content: ""; position: absolute; left: 22px; top: 20px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--verde); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.4);
}
.etiqueta-ceja { margin-left: 28px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--verde-3); }
.etiqueta-nombre {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 26px 0 22px; min-height: 2.1em;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98;
  font-size: calc(clamp(2rem, 4.4vw, 3.3rem) * var(--ajuste, 1));
  overflow-wrap: anywhere;
}
.etiqueta-nombre .nombre { display: inline-block; }
.cambia .nombre { animation: entra-nombre 0.6s var(--ease) both; }
@keyframes entra-nombre { from { opacity: 0; transform: translateY(0.35em); filter: blur(6px); } }
.erre { position: relative; flex: none; width: 0.52em; height: 0.52em; margin-top: -0.04em; color: var(--verde); }
.erre svg { width: 100%; height: 100%; overflow: visible; }
.erre .aro { fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.erre .letra { fill: none; stroke: currentColor; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform-origin: 50% 50%; }
.erre .onda { fill: none; stroke: var(--sol-2); stroke-width: 6; opacity: 0; transform-origin: 50% 50%; }
.cambia .erre .aro { animation: aro 0.7s 0.35s var(--ease) forwards; }
.cambia .erre .letra { animation: golpe 0.5s 0.85s var(--ease-rebote) forwards; }
.cambia .erre .onda { animation: onda 0.9s 0.95s ease-out forwards; }
@keyframes aro { to { stroke-dashoffset: 0; } }
@keyframes golpe { from { opacity: 0; transform: scale(2.4) rotate(-18deg); } to { opacity: 1; transform: none; } }
@keyframes onda { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }
.etiqueta-pie {
  display: flex; justify-content: space-between; gap: 12px; padding-top: 14px;
  border-top: 1.5px dashed var(--linea);
  font-size: 0.8rem; font-weight: 600; color: var(--tinta-2);
}
.etiqueta-pie b { color: var(--verde); }

.flota {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 999px;
  background: rgba(247, 245, 239, 0.12); color: var(--hueso);
  box-shadow: inset 0 0 0 1px rgba(247, 245, 239, 0.22);
  font-size: 0.86rem; font-weight: 600; white-space: nowrap;
  animation: flotar 7s ease-in-out infinite;
}
@supports (backdrop-filter: blur(8px)) { .flota { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
.flota i { width: 20px; height: 20px; border-radius: 50%; background: var(--sol); color: var(--tinta); display: grid; place-items: center; }
.flota i svg { width: 12px; height: 12px; }
.flota-1 { left: 7%; top: 8%; }
.flota-2 { right: 6%; top: 17%; animation-delay: -2.5s; }
.flota-3 { right: 9%; bottom: 9%; animation-delay: -4.5s; }
@keyframes flotar { 50% { translate: 0 -9px; } }

.quien-mini {
  position: absolute; left: -18px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: var(--blanco); color: var(--tinta);
  box-shadow: var(--sombra-alta);
  font-size: 0.86rem; line-height: 1.25;
}
.quien-mini img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quien-mini b { display: block; font-size: 0.95rem; }
.quien-mini span { color: var(--tinta-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sello { max-width: 520px; margin-inline: auto; width: 100%; }
  .sello-panel { aspect-ratio: 1 / 0.92; }
  .quien-mini { left: 12px; bottom: -18px; }
}
@media (max-width: 520px) {
  .probar-campo { flex-direction: column; border-radius: 26px; padding: 10px; }
  .probar-campo input { padding: 12px 14px; text-align: center; }
  .flota-2 { display: none; }
  .etiqueta { width: 86%; padding: 22px 22px 20px; }
}

/* ---------- Franja de datos ---------- */
.datos { padding: 8px 0 clamp(40px, 6vw, 72px); }
.datos-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-m); background: var(--blanco);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.dato { padding: 26px 28px; border-left: 1px solid var(--linea); }
.dato:first-child { border-left: 0; }
.dato-n { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; color: var(--verde); }
.dato-n small { font-size: 0.45em; font-weight: 700; letter-spacing: -0.01em; margin-left: 4px; }
.dato p { margin-top: 8px; font-size: 0.93rem; color: var(--tinta-2); line-height: 1.4; }
.datos-fuente { margin-top: 12px; font-size: 0.8rem; color: var(--tinta-2); text-align: right; }
@media (max-width: 860px) {
  .datos-grid { grid-template-columns: 1fr 1fr; }
  .dato:nth-child(3) { border-left: 0; }
  .dato:nth-child(n + 3) { border-top: 1px solid var(--linea); }
}
@media (max-width: 440px) { .dato { padding: 20px 18px; } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec-cab { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-cab h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin: 18px 0 18px; }
.sec-cab p { font-size: 1.14rem; color: var(--tinta-2); max-width: 38em; }
.oscuro { background: var(--verde); color: var(--hueso); }
.oscuro .sec-cab p { color: rgba(247, 245, 239, 0.74); }
.salvia { background: var(--salvia); }
.redonda { border-radius: var(--r-l); margin-inline: clamp(8px, 1.4vw, 20px); }

/* ---------- Por qué registrar ---------- */
.casos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.caso {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; gap: 14px;
  padding: 30px 28px 28px; border-radius: var(--r-m);
  background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
@media (hover: hover) { .caso:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-alta); } }
.caso > :not(.caso-ico):not(h3) { grid-column: 1 / -1; }
.caso-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--salvia); color: var(--verde); }
.caso-ico svg { display: block; width: 28px; height: 28px; overflow: visible; }

/* Íconos animados: se dibujan una vez al aparecer y otra al pasar el mouse.
   main.js pone la clase .juega; sin ella el ícono se ve completo y quieto. */
.ico * { transform-box: view-box; }
.ico .acento { stroke: var(--sol-2); }
.ico .lleno { fill: currentColor; stroke: none; }
.ico .lleno.acento { fill: var(--sol-2); }
.ico .punto { fill: var(--sol-2); stroke: var(--salvia); stroke-width: 1.5; }
.ico .punto, .ico .pop { transform-box: fill-box; transform-origin: center; }
.ico .aguja, .ico .aguja-2 { transform-origin: 12px 13px; }
.ico .sobre, .ico .gira, .ico .giro, .ico .pulso { transform-origin: 12px 12px; }
.ico .d1 { --d: 0s; } .ico .d2 { --d: 0.14s; } .ico .d3 { --d: 0.28s; } .ico .d4 { --d: 0.42s; }
.juega .trazo { stroke-dasharray: 1; animation: ico-dibuja 0.8s var(--espera, 0s) var(--ease) both; }
.juega .trazo-2 { stroke-dasharray: 1; animation: ico-dibuja 0.5s calc(var(--espera, 0s) + 0.5s) var(--ease) both; }
.juega .pop { animation: ico-salta 0.45s calc(var(--espera, 0s) + 0.35s + var(--d, 0s)) var(--ease-rebote) both; }
.juega .gira { animation: ico-vuelta 1.2s calc(var(--espera, 0s) + 0.35s) var(--ease) both; }
.juega .giro { animation: ico-giro 0.9s var(--espera, 0s) var(--ease) both; }
.juega .pulso { animation: ico-pulso 0.5s calc(var(--espera, 0s) + 1s) ease-in-out both; }
.juega .busca { animation: ico-busca 0.9s calc(var(--espera, 0s) + 0.95s) ease-in-out both; }
.juega .cae { animation: ico-cae 0.45s calc(var(--espera, 0s) + 0.55s) var(--ease-rebote) both; }
.juega .aguja { animation: ico-vuelta 1.2s calc(var(--espera, 0s) + 0.35s) var(--ease) both; }
.juega .aguja-2 { animation: ico-cuarto 1.2s calc(var(--espera, 0s) + 0.35s) var(--ease) both; }
.juega .punto { animation: ico-salta 0.5s calc(var(--espera, 0s) + 0.95s) var(--ease-rebote) both; }
.juega .sobre { animation: ico-sacude 0.5s calc(var(--espera, 0s) + 1s) ease-in-out both; }
@keyframes ico-dibuja { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes ico-cae { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ico-vuelta { from { opacity: 0; transform: rotate(-360deg); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ico-cuarto { from { opacity: 0; transform: rotate(-90deg); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ico-salta { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes ico-giro { from { transform: rotate(-140deg); } to { transform: none; } }
@keyframes ico-pulso { 0%, 100% { transform: none; } 45% { transform: scale(1.14); } }
@keyframes ico-busca { 0%, 100% { transform: none; } 25% { transform: translate(-1.5px, -1px); } 55% { transform: translate(1.5px, -1.5px); } 80% { transform: translate(1px, 1px); } }
@keyframes ico-sacude { 0%, 100% { transform: none; } 30% { transform: rotate(-7deg); } 65% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .juega .ico * { animation: none; stroke-dasharray: none; } }
.caso h3 { font-size: 1.4rem; letter-spacing: -0.025em; line-height: 1.12; }
.caso p { color: var(--tinta-2); font-size: 1rem; }
.caso-ok { align-self: end; padding-top: 16px; border-top: 1.5px dashed var(--linea); font-size: 0.95rem; font-weight: 600; color: var(--verde); display: flex; gap: 10px; }
.caso-ok svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
@media (max-width: 900px) { .casos { grid-template-columns: 1fr; } }

/* ---------- Hasta el diploma ---------- */
.ruta-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.ruta-fija { position: sticky; top: 120px; }
.ruta-fija h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); margin: 18px 0; }
.ruta-fija p { color: rgba(247, 245, 239, 0.74); font-size: 1.12rem; }
.ruta-medidor { margin-top: 30px; display: flex; align-items: center; gap: 14px; font-size: 0.9rem; font-weight: 600; color: rgba(247, 245, 239, 0.8); }
.ruta-medidor i { flex: 1; height: 6px; border-radius: 6px; background: var(--linea-clara); overflow: hidden; }
.ruta-medidor i::after { content: ""; display: block; height: 100%; background: var(--sol); border-radius: 6px; transform-origin: left; transform: scaleX(var(--p, 0)); }

.pasos { position: relative; padding-left: 58px; }
.pasos::before, .pasos-avance {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: var(--linea-clara);
}
.pasos-avance { background: var(--sol); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 18px rgba(255, 200, 61, 0.6); }
.paso { position: relative; padding: 0 0 clamp(36px, 5vw, 56px); }
.paso-punto {
  position: absolute; left: -58px; top: 0; width: 41px; height: 41px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde); color: rgba(247, 245, 239, 0.6);
  box-shadow: inset 0 0 0 2px var(--linea-clara);
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  transition: background 0.5s var(--ease), color 0.5s, box-shadow 0.5s, transform 0.6s var(--ease-rebote);
}
.paso.activo .paso-punto { background: var(--sol); color: var(--tinta); box-shadow: 0 0 0 7px rgba(255, 200, 61, 0.18); transform: scale(1.08); }
.paso-cuerpo { opacity: 0.75; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transform: translateX(10px); }
.paso.activo .paso-cuerpo { opacity: 1; transform: none; }
html:not(.js) .paso-cuerpo { opacity: 1; transform: none; }
.paso h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-top: 6px; }
.paso-dura { font-family: var(--texto); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.02em; padding: 5px 11px; border-radius: 999px; background: rgba(247, 245, 239, 0.1); color: var(--sol); }
.paso > .paso-cuerpo > p { margin-top: 12px; color: rgba(247, 245, 239, 0.78); max-width: 34em; }
.paso-quien { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 18px; }
.paso-quien div { font-size: 0.93rem; line-height: 1.45; color: rgba(247, 245, 239, 0.86); }
.paso-quien b { display: block; margin-bottom: 3px; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sol); }
.paso-quien .tu b { color: #a9d6bd; }

.diploma-zona { position: relative; padding-top: 6px; }
.diploma {
  position: relative; max-width: 480px; padding: 34px 32px 30px; text-align: center;
  background: var(--hueso); color: var(--tinta); border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  clip-path: inset(0 0 100% 0 round 18px);
  transform: translateY(18px) rotate(-1.5deg);
  transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease);
}
.diploma::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(15, 61, 46, 0.3); border-radius: 11px; pointer-events: none; }
.diploma::after { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(15, 61, 46, 0.16); border-radius: 8px; pointer-events: none; }
.diploma.abierto, html:not(.js) .diploma { clip-path: inset(0 0 0 0 round 18px); transform: none; }
.diploma-ceja { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--verde-3); }
.diploma-nombre {
  margin: 18px 0 10px; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-size: calc(clamp(2rem, 4.6vw, 3rem) * var(--ajuste, 1)); overflow-wrap: anywhere; color: var(--verde);
}
.diploma p { font-size: 0.92rem; color: var(--tinta-2); }
.diploma-pie { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; text-align: left; font-size: 0.78rem; color: var(--tinta-2); }
.diploma-pie b { display: block; color: var(--tinta); font-size: 0.86rem; }
.diploma-sello { width: 62px; height: 62px; flex: none; transform: scale(0) rotate(-40deg); transition: transform 0.7s 0.7s var(--ease-rebote); }
.diploma.abierto .diploma-sello, html:not(.js) .diploma-sello { transform: none; }
.chispas { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; }
.chispas i { position: absolute; width: 9px; height: 9px; border-radius: 3px; background: var(--sol); opacity: 0; }
.diploma.abierto ~ .chispas i { animation: chispa 1.2s 0.6s var(--ease) forwards; }
.chispas i:nth-child(1) { --x: -210px; --y: -90px; }
.chispas i:nth-child(2) { --x: -160px; --y: 60px; background: #a9d6bd; }
.chispas i:nth-child(3) { --x: -80px; --y: -150px; }
.chispas i:nth-child(4) { --x: 70px; --y: -160px; background: var(--hueso); }
.chispas i:nth-child(5) { --x: 190px; --y: -80px; }
.chispas i:nth-child(6) { --x: 230px; --y: 40px; background: #a9d6bd; }
.chispas i:nth-child(7) { --x: 120px; --y: 120px; }
.chispas i:nth-child(8) { --x: -110px; --y: 130px; background: var(--hueso); }
@keyframes chispa { 0% { opacity: 1; transform: translate(0, 0) scale(0.4) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.1) rotate(200deg); } }
.diploma-nota { margin-top: 22px; font-size: 0.84rem; color: rgba(247, 245, 239, 0.6); max-width: 34em; }

@media (max-width: 900px) {
  .ruta-grid { grid-template-columns: 1fr; }
  .ruta-fija { position: static; }
  .ruta-medidor { display: none; }
}
@media (max-width: 520px) {
  .pasos { padding-left: 50px; }
  .paso-punto { left: -50px; width: 37px; height: 37px; }
  .pasos::before, .pasos-avance { left: 17px; }
  .paso-quien { grid-template-columns: 1fr; }
}

/* ---------- Calculadora ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
/* Los hijos de una grilla no deben ensancharla por su contenido (evita desbordes en celular). */
.hero-grid > *, .calc-grid > *, .ruta-grid > *, .yanett-grid > *, .faq-grid > *, .dos > *, .vias > *, .cero > * { min-width: 0; }
.calc-txt h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 18px 0; }
.calc-txt h2 em { font-style: normal; color: var(--verde-3); }
.calc-txt > p { font-size: 1.12rem; color: var(--tinta-2); max-width: 32em; }
.clases { margin-top: 30px; padding: 22px 24px; border-radius: var(--r-m); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); }
.clases-fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.clases label { font-weight: 650; font-size: 1.05rem; }
.clases small { display: block; margin-top: 12px; color: var(--tinta-2); font-size: 0.9rem; line-height: 1.5; }
.contador { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--hueso); box-shadow: inset 0 0 0 1px var(--linea); }
.contador button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--verde); color: var(--hueso); font-size: 1.3rem; font-weight: 600; line-height: 1;
  transition: transform 0.3s var(--ease-rebote), background 0.2s, opacity 0.2s;
}
.contador button:active { transform: scale(0.88); }
.contador button:disabled { opacity: 0.25; cursor: not-allowed; }
.contador output { min-width: 46px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.5rem; }

.boleta {
  position: relative; padding: 30px 30px 26px; border-radius: var(--r-l);
  background: var(--verde); color: var(--hueso);
  box-shadow: var(--sombra-alta);
}
.boleta-tit { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247, 245, 239, 0.7); }
.boleta-tit b { color: var(--sol); letter-spacing: 0.04em; }
.boleta-linea { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--linea-clara); }
.boleta-linea span { color: rgba(247, 245, 239, 0.86); }
.boleta-linea small { display: block; font-size: 0.8rem; color: rgba(247, 245, 239, 0.56); }
.boleta-linea b { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.boleta-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 0 6px; }
.boleta-total span { font-weight: 650; }
.boleta-total b { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; color: var(--sol); font-variant-numeric: tabular-nums; }
.pagos { margin-top: 18px; }
.pagos-barra { display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: var(--linea-clara); gap: 3px; }
.pagos-barra i { display: block; height: 100%; border-radius: 12px; transition: flex-grow 0.7s var(--ease); flex: 1 1 0; }
.pagos-barra i:first-child { background: var(--sol); flex-grow: var(--a, 1); }
.pagos-barra i:last-child { background: #a9d6bd; flex-grow: var(--b, 1); }
.pagos-txt { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; font-size: 0.86rem; color: rgba(247, 245, 239, 0.7); }
.pagos-txt b { display: block; margin-top: 2px; font-family: var(--display); font-size: 1.18rem; color: var(--hueso); font-variant-numeric: tabular-nums; }
.pagos-txt div::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--sol); }
.pagos-txt div:last-child::before { background: #a9d6bd; }
.boleta-nota { margin-top: 18px; font-size: 0.8rem; line-height: 1.5; color: rgba(247, 245, 239, 0.6); }
.boleta .btn { margin-top: 20px; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .boleta { padding: 24px 20px 22px; } .boleta-linea b { font-size: 1.05rem; } }

/* ---------- Servicios ---------- */
.etapas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.etapa { padding: 26px 22px 14px; border-radius: var(--r-m); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); }
.etapa-tit { display: flex; align-items: center; gap: 12px; margin: 0 6px 14px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.etapa-tit i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sol); font-style: normal; font-size: 0.95rem; font-weight: 800; }
.servicio {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center;
  padding: 16px 14px; margin: 0 -8px; border-radius: 14px; text-decoration: none;
  border-top: 1px solid var(--linea);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.servicio b { grid-column: 2; font-size: 1.06rem; }
.servicio span { grid-column: 2; font-size: 0.92rem; color: var(--tinta-2); line-height: 1.4; }
.serv-ico { grid-row: 1 / span 2; grid-column: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--salvia); color: var(--verde); }
.serv-ico svg { display: block; width: 24px; height: 24px; overflow: visible; }
.servicio > svg { grid-row: 1 / span 2; grid-column: 3; width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: var(--hueso); color: var(--verde); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
@media (hover: hover) {
  .servicio:hover { background: var(--hueso); }
  .servicio:hover > svg { background: var(--verde); color: var(--sol); transform: translateX(4px); }
}
.etapas-nota { margin-top: 20px; font-size: 0.9rem; color: var(--tinta-2); }
@media (max-width: 900px) { .etapas { grid-template-columns: 1fr; } }

/* ---------- Quién te atiende ---------- */
.yanett-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.retrato { position: relative; }
.retrato-marco { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--r-l); overflow: hidden; background: var(--verde); box-shadow: var(--sombra-alta); }
.retrato-marco img { width: 100%; height: 100%; object-fit: cover; }
.retrato-tarjeta {
  position: absolute; right: -14px; bottom: 28px; max-width: 250px;
  padding: 16px 18px; border-radius: 18px; background: var(--blanco); box-shadow: var(--sombra-alta);
  font-size: 0.92rem; line-height: 1.4;
}
.retrato-tarjeta b { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.02em; }
.yanett-txt h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 18px 0 20px; }
.yanett-txt > p { font-size: 1.12rem; color: var(--tinta-2); max-width: 36em; }
.yanett-txt > p + p { margin-top: 14px; }
.promesas { display: grid; gap: 12px; margin-top: 26px; }
.promesas li { display: flex; gap: 14px; align-items: flex-start; font-weight: 550; }
.promesas svg { width: 26px; height: 26px; flex: none; padding: 5px; border-radius: 50%; background: var(--verde); color: var(--sol); }
.aviso { margin-top: 28px; padding: 20px 22px; border-radius: var(--r-m); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); font-size: 0.98rem; color: var(--tinta-2); }
.aviso b { color: var(--tinta); }
.yanett-txt .enlace { display: inline-block; margin-top: 22px; }
@media (max-width: 900px) {
  .yanett-grid { grid-template-columns: 1fr; }
  .retrato { max-width: 420px; }
  .retrato-tarjeta { right: 12px; }
}

/* ---------- Comparación ---------- */
.tabla-caja { overflow-x: auto; overflow-y: visible; border-radius: var(--r-m); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); -webkit-overflow-scrolling: touch; }
.tabla { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 0.97rem; }
.tabla th, .tabla td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); line-height: 1.45; }
.tabla tr:last-child th, .tabla tr:last-child td { border-bottom: 0; }
.tabla thead th { font-family: var(--display); font-size: 1.08rem; letter-spacing: -0.02em; vertical-align: bottom; }
.tabla tbody th { font-weight: 650; color: var(--tinta-2); width: 19%; }
.tabla td { color: var(--tinta-2); }
.tabla .nos { background: var(--verde); color: var(--hueso); font-weight: 600; border-bottom-color: var(--linea-clara); }
.tabla thead .nos { color: var(--sol); border-radius: 0; font-size: 1.2rem; }
.tabla-pista { display: none; margin-top: 10px; font-size: 0.84rem; color: var(--tinta-2); }
@media (max-width: 820px) { .tabla-pista { display: block; } }
/* Celular: cada fila de la tabla pasa a ser una tarjeta, con Con Erre primero */
@media (max-width: 640px) {
  .tabla-caja { overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .tabla, .tabla tbody { display: block; min-width: 0; }
  .tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabla tbody tr { display: flex; flex-direction: column; margin-bottom: 14px; border-radius: var(--r-m); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); overflow: hidden; }
  .tabla tbody th { order: -2; width: auto; padding: 18px 18px 12px; border: 0; font-family: var(--display); font-size: 1.12rem; letter-spacing: -0.02em; color: var(--tinta); }
  .tabla tbody td { display: block; padding: 12px 18px; }
  .tabla tbody td.nos { order: -1; padding-block: 14px; font-size: 1.02rem; }
  .tabla tbody tr td:last-child { border-bottom: 0; }
  .tabla tbody td::before { display: block; margin-bottom: 3px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tinta-2); }
  .tabla tbody td:nth-of-type(1)::before { content: "Hacerlo solo"; }
  .tabla tbody td:nth-of-type(2)::before { content: "Estudio jurídico"; }
  .tabla tbody td:nth-of-type(3)::before { content: "Plataforma masiva"; }
  .tabla tbody td.nos::before { content: "Con Erre"; color: var(--sol); }
  .tabla-pista { display: none; }
}

/* ---------- Caso cero ---------- */
.cero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-l); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); }
.cero h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 16px 0 14px; }
.cero p { color: var(--tinta-2); }
.cero-pasos { display: grid; gap: 10px; }
.cero-pasos li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--hueso); font-weight: 600; font-size: 0.98rem; }
.cero-pasos i { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.8rem; font-weight: 800; background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--linea); color: var(--tinta-2); }
.cero-pasos .hecho i { background: var(--verde); color: var(--sol); box-shadow: none; }
.cero-pasos .hecho i svg { width: 14px; height: 14px; }
.cero-pasos .sigue { box-shadow: inset 0 0 0 1.5px var(--sol-2); background: #fff8e2; }
.cero-pasos small { margin-left: auto; font-weight: 600; font-size: 0.8rem; color: var(--tinta-2); white-space: nowrap; }
.resenas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.resena { padding: 26px; border-radius: var(--r-m); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); }
.resena p { font-size: 1.02rem; }
.resena footer { margin-top: 16px; font-size: 0.9rem; color: var(--tinta-2); }
.resena footer b { color: var(--tinta); display: block; }
.resena .estrellas { color: var(--sol-2); letter-spacing: 2px; margin-bottom: 10px; }
@media (max-width: 900px) { .cero, .resenas { grid-template-columns: 1fr; } }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq-grid .sec-cab { position: sticky; top: 120px; margin: 0; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: inset 0 0 0 1.5px var(--verde); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.02em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--hueso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f3d2e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.45s var(--ease), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--sol); }
.faq .resp { padding: 0 22px 22px; color: var(--tinta-2); max-width: 44em; animation: abre 0.45s var(--ease); }
.faq .resp p + p { margin-top: 10px; }
.faq .resp a { color: var(--verde); font-weight: 600; }
@keyframes abre { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-cab { position: static; } }

/* Video "El punto" bajo el título de Por qué registrar (solo en la portada) */
.manifiesto { margin: 0 0 clamp(28px, 4vw, 44px); }
.manifiesto-marco { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--hueso); box-shadow: inset 0 0 0 1px var(--linea), 0 18px 40px -26px rgba(15, 61, 46, 0.35); }
.manifiesto-marco video { display: block; width: 100%; height: 100%; object-fit: cover; }
.manifiesto-sonido { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 13px; border: 0; border-radius: 999px; background: rgba(15, 61, 46, 0.92); color: var(--hueso); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background-color 0.25s; }
.manifiesto-sonido:hover { background: var(--verde); }
.manifiesto-sonido svg { width: 20px; height: 20px; }
.manifiesto-sonido .ondas { opacity: 0; transition: opacity 0.25s; }
.manifiesto-sonido[aria-pressed="true"] .ondas { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .manifiesto-sonido { display: none; } }

/* Video "Hablemos" bajo el título de las preguntas (solo en la portada) */
.faq-con-video { grid-template-areas: "cab faq" "video faq"; grid-template-rows: auto 1fr; row-gap: 32px; }
.faq-con-video .sec-cab { grid-area: cab; position: static; }
.faq-con-video .faq { grid-area: faq; }
.faq-video { grid-area: video; width: min(100%, 340px); }
.video-tarjeta { aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--salvia); box-shadow: 0 1px 0 rgba(15, 61, 46, 0.06), 0 18px 40px -22px rgba(15, 61, 46, 0.35); }
.video-tarjeta video { display: block; width: 100%; height: 100%; object-fit: cover; }
.faq-video .btn { margin-top: 14px; }
@media (max-width: 900px) {
  .faq-con-video { grid-template-areas: "cab" "faq" "video"; grid-template-rows: auto; row-gap: 28px; }
  .faq-video { margin-inline: auto; }
}

/* ---------- Contacto ---------- */
.contacto { padding: clamp(64px, 9vw, 112px) 0; }
.contacto .sec-cab h2 em { font-style: normal; color: var(--sol); }
.vias { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: start; }
.via { padding: clamp(24px, 3vw, 34px); border-radius: var(--r-m); background: rgba(247, 245, 239, 0.07); box-shadow: inset 0 0 0 1px var(--linea-clara); }
.via-clara { background: var(--hueso); color: var(--tinta); box-shadow: var(--sombra-alta); }
.via h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.via > p { margin-top: 8px; font-size: 0.98rem; opacity: 0.78; }
.via-num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--sol); color: var(--tinta); font-family: var(--display); font-weight: 800; font-size: 0.9rem; }
.vias-lado { display: grid; gap: 18px; }

.form { display: grid; gap: 14px; margin-top: 22px; }
.form-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 650; }
.campo input, .campo textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 0; outline: 0;
  background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--linea);
  font-size: 1.02rem; transition: box-shadow 0.25s;
}
.campo textarea { min-height: 84px; resize: vertical; }
.campo input:focus, .campo textarea:focus { box-shadow: inset 0 0 0 2px var(--verde); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.acepto { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--tinta-2); line-height: 1.45; }
.acepto input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--verde); flex: none; }
.acepto a { color: var(--verde); font-weight: 600; }
.form-pie { font-size: 0.86rem; color: var(--tinta-2); text-align: center; }
.form-msj { display: none; padding: 14px 16px; border-radius: 14px; background: #fff3d0; font-size: 0.95rem; font-weight: 550; }
.form-msj.ver { display: block; }
.form-msj a { color: var(--verde); font-weight: 700; }
.cita { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--salvia); font-weight: 650; font-size: 0.95rem; }
.cita.ver { display: flex; }
.cita button { border: 0; background: none; cursor: pointer; font-size: 0.86rem; font-weight: 650; color: var(--verde); text-decoration: underline; }
.enviando .btn[type="submit"] { opacity: 0.6; pointer-events: none; }

.dias, .horas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dias button, .horas button {
  border: 0; cursor: pointer; border-radius: 14px; padding: 10px 6px; min-width: 60px; flex: 1 0 60px;
  background: rgba(247, 245, 239, 0.08); color: var(--hueso); box-shadow: inset 0 0 0 1px var(--linea-clara);
  font-size: 0.8rem; font-weight: 600; line-height: 1.25; text-transform: capitalize;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-rebote);
}
.dias button b { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 800; }
.horas button { font-size: 0.95rem; padding: 11px 6px; }
.dias button:active, .horas button:active { transform: scale(0.94); }
@media (hover: hover) { .dias button:hover, .horas button:hover { background: rgba(247, 245, 239, 0.16); } }
.dias button[aria-pressed="true"], .horas button[aria-pressed="true"] { background: var(--sol); color: var(--tinta); box-shadow: none; }
.agenda-pie { margin-top: 14px; font-size: 0.84rem; opacity: 0.7; }
.agenda-marco { margin-top: 16px; border-radius: 16px; overflow: hidden; background: var(--blanco); }
.agenda-marco iframe { display: block; width: 100%; height: 620px; border: 0; }
@media (max-width: 900px) { .vias { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-dos { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.pie { background: var(--verde-2); color: rgba(247, 245, 239, 0.74); padding: clamp(48px, 7vw, 80px) 0 110px; font-size: 0.95rem; }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pie .logo { color: var(--hueso); }
.pie-lema { margin-top: 16px; max-width: 24em; }
.pie h2 { font-family: var(--texto); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sol); margin-bottom: 14px; }
.pie li + li { margin-top: 9px; }
.pie a { text-decoration: none; transition: color 0.2s; }
@media (hover: hover) { .pie a:hover { color: var(--hueso); } }
.pie-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--linea-clara); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; font-size: 0.84rem; line-height: 1.55; }
.pie-legal p { max-width: 58em; }
@media (max-width: 860px) { .pie-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pie-grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .pie { padding-bottom: clamp(40px, 5vw, 56px); } }

/* ---------- Barra móvil ---------- */
.barra {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 90;
  display: none; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(10, 43, 32, 0.94); box-shadow: var(--sombra-alta);
  transform: translateY(140%); transition: transform 0.5s var(--ease);
}
.barra.ver { transform: none; }
.barra .btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: 0.95rem; }
@media (max-width: 760px) { .barra { display: flex; } }

/* ---------- Aviso de cookies ---------- */
.cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 120; max-width: 380px;
  padding: 18px 20px; border-radius: 20px; background: var(--blanco); box-shadow: var(--sombra-alta), inset 0 0 0 1px var(--linea);
  font-size: 0.9rem; line-height: 1.5;
}
.cookies div { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 760px) { .cookies { right: 16px; bottom: 84px; max-width: none; } }

/* ---------- Páginas interiores ---------- */
.portada { padding: clamp(136px, 16vw, 190px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: clip; }
.portada::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 92% 0%, rgba(255, 200, 61, 0.26), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(15, 61, 46, 0.1) 1px, transparent 0) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.portada h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin: 20px 0; max-width: 17em; letter-spacing: -0.038em; }
.portada .bajada { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--tinta-2); max-width: 38em; }
.portada-acc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
/* En pantallas angostas el botón largo puede partirse en dos líneas en vez de salirse. */
@media (max-width: 480px) {
  .portada-acc .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding: 10px 18px; gap: 8px; font-size: 0.95rem; }
}
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--tinta-2); margin-bottom: 20px; }
.migas a { text-decoration: none; font-weight: 600; }
.migas a:hover { color: var(--verde); }

.dos { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.prosa h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 44px 0 14px; }
.prosa h2:first-child { margin-top: 0; }
.prosa h3 { font-size: 1.25rem; margin: 28px 0 8px; letter-spacing: -0.02em; }
.prosa p { color: var(--tinta-2); max-width: 42em; }
.prosa p + p { margin-top: 12px; }
.prosa a:not(.btn) { color: var(--verde); font-weight: 600; }
.prosa ul.lista, .prosa ol.lista { display: grid; gap: 10px; margin: 14px 0; }
.prosa .lista li { position: relative; padding-left: 34px; color: var(--tinta-2); max-width: 42em; }
.prosa ul.lista li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc83d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.prosa ol.lista { counter-reset: n; }
.prosa ol.lista li { counter-increment: n; }
.prosa ol.lista li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--sol); color: var(--tinta); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }
.prosa .lista b { color: var(--tinta); }
.ficha { position: sticky; top: 110px; padding: 26px; border-radius: var(--r-m); background: var(--verde); color: var(--hueso); box-shadow: var(--sombra-alta); }
.ficha h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.ficha dl { margin: 0; }
.ficha dt { margin-top: 16px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sol); }
.ficha dd { margin: 3px 0 0; font-size: 1rem; line-height: 1.4; color: rgba(247, 245, 239, 0.9); }
.ficha .btn { margin-top: 22px; }
.ficha small { display: block; margin-top: 12px; font-size: 0.8rem; color: rgba(247, 245, 239, 0.6); line-height: 1.45; }
@media (max-width: 900px) { .dos { grid-template-columns: 1fr; } .ficha { position: static; } }

.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tarjeta { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-m); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); text-decoration: none; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
@media (hover: hover) { .tarjeta:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-alta); } }
.tarjeta h2, .tarjeta h3 { font-size: 1.4rem; letter-spacing: -0.025em; line-height: 1.12; }
.tarjeta p { color: var(--tinta-2); font-size: 0.98rem; }
.tarjeta .mas { margin-top: auto; padding-top: 8px; font-weight: 650; color: var(--verde); display: inline-flex; align-items: center; gap: 8px; }
.tarjeta .mas svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
@media (hover: hover) { .tarjeta:hover .mas svg { transform: translateX(5px); } }
@media (max-width: 900px) { .tarjetas { grid-template-columns: 1fr; } }

.cierre { text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px); border-radius: var(--r-l); background: var(--verde); color: var(--hueso); }
.cierre h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 16em; margin-inline: auto; }
.cierre p { margin: 16px auto 0; max-width: 34em; color: rgba(247, 245, 239, 0.76); }
.cierre .portada-acc { justify-content: center; }

.ejemplos { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ejemplos th, .ejemplos td { padding: 16px 18px; text-align: right; border-bottom: 1px solid var(--linea); font-variant-numeric: tabular-nums; }
.ejemplos th:first-child, .ejemplos td:first-child { text-align: left; }
.ejemplos thead th { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-2); }
.ejemplos td:last-child { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--verde); }

.centro { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.centro h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 20px auto; max-width: 14em; }
.centro p { color: var(--tinta-2); max-width: 32em; margin-inline: auto; font-size: 1.15rem; }
.centro .portada-acc { justify-content: center; }
.gran-sello { width: 120px; height: 120px; margin: 0 auto; }
.gran-sello .aro { stroke-dasharray: 100; stroke-dashoffset: 100; animation: aro 0.9s 0.2s var(--ease) forwards; }
.gran-sello .letra { opacity: 0; transform-origin: 50% 50%; animation: golpe 0.5s 0.9s var(--ease-rebote) forwards; }

/* ---------- Movimiento reducido: solo se apaga lo que se mueve en bucle ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbita, .flota { animation: none; }
  .chispas { display: none; }
}

@media print {
  .cabecera, .barra, .cookies, .sello, .contacto, .faq-video, .manifiesto { display: none !important; }
  .js [data-ver] { opacity: 1; transform: none; }
}
