/* EcoBuddy · sitio oficial
   Un solo archivo de estilos para todas las páginas.

   El lenguaje visual sale del personaje: contorno de tinta azul noche, colores
   planos y el «relieve» sólido de las letras 3D del logo, que aquí aparece
   bajo los botones y las tarjetas en lugar de sombras difusas. */

@font-face {
  font-family: "Baloo 2";
  src: url("../fuentes/baloo2.woff") format("woff");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("../fuentes/lexend.woff") format("woff");
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --tinta: #0B2A40;        /* el contorno del personaje */
  --tinta-suave: #3E5A6E;  /* texto secundario */
  --eco: #55C829;          /* «Eco» del logo */
  --eco-hondo: #2B7F10;    /* verde legible sobre blanco */
  --buddy: #009FC7;        /* «Buddy» del logo */
  --buddy-hondo: #00749A;  /* azul legible sobre blanco: enlaces */
  --cielo: #DFF3FB;        /* la cúpula de la cara */
  --cielo-hondo: #BFE6F6;
  --menta: #E7F7DD;        /* el fondo verde suave del logo */
  --perla: #BAD4E0;        /* la carcasa */
  --sol: #FFD23F;          /* las monedas */
  --papel: #FFFFFF;

  --linea: 3px;
  --relieve: 0 6px 0 var(--tinta);
  --radio-l: 32px;
  --radio-m: 20px;
  --radio-s: 12px;

  --ancho: 1180px;
  --margen: clamp(16px, 4vw, 40px);

  --t-chica: 0.875rem;
  --t-base: clamp(1.0625rem, 0.4vw + 0.95rem, 1.1875rem);
  --t-entrada: clamp(1.1875rem, 0.6vw + 1rem, 1.4375rem);
  --t-h3: clamp(1.375rem, 1vw + 1.05rem, 1.75rem);
  --t-h2: clamp(2rem, 3.2vw + 1rem, 3.25rem);
  --t-h1: clamp(2.875rem, 6.2vw + 1rem, 6rem);

  --titulo: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --texto: "Lexend", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: var(--t-base);
  font-weight: 350;
  line-height: 1.6;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--titulo);
  font-weight: 800;
  line-height: 1.02;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); letter-spacing: -0.015em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--t-h3); line-height: 1.1; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 600; }

a { color: var(--buddy-hondo); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--tinta); }

:focus-visible {
  outline: 3px solid var(--buddy);
  outline-offset: 3px;
  border-radius: 6px;
}

.solo-lector {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.saltar {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--papel);
  color: var(--tinta);
  border: var(--linea) solid var(--tinta);
  border-radius: var(--radio-s);
  font-family: var(--titulo);
  font-weight: 700;
}
.saltar:focus { top: 12px; }

.contenedor {
  width: min(100% - 2 * var(--margen), var(--ancho));
  margin-inline: auto;
}
.texto-medida { max-width: 64ch; }

/* ---------- Aviso superior (concursos) ---------- */

.aviso {
  background: var(--tinta);
  color: var(--papel);
  font-size: var(--t-chica);
  font-weight: 400;
}
.aviso[hidden] { display: none; }
.aviso .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  padding-block: 9px;
  text-align: center;
}
.aviso b { font-family: var(--titulo); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.01em; }
.aviso a {
  color: var(--tinta);
  background: var(--sol);
  border-radius: 999px;
  padding: 3px 14px 4px;
  font-family: var(--titulo);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.aviso a:hover { background: var(--papel); }
@media (max-width: 640px) { .aviso__extra { display: none; } .aviso .contenedor { flex-wrap: nowrap; justify-content: space-between; text-align: left; } }

/* ---------- Barra de navegación ---------- */

.barra {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--papel) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--linea) solid var(--tinta);
}
.barra .contenedor {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.barra__logo { flex: none; display: block; line-height: 0; }
.barra__logo img { width: 176px; height: auto; }
.barra__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0;
  list-style: none;
}
.barra__menu a {
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--tinta);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.0625rem;
  white-space: nowrap;
  text-decoration: none;
}
.barra__accion .boton { white-space: nowrap; }
.barra__menu a:hover { background: var(--cielo); }
.barra__menu a[aria-current="page"] { background: var(--cielo); box-shadow: inset 0 0 0 2px var(--tinta); }
.barra__accion { margin-left: 8px; }
.barra__abrir {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: var(--linea) solid var(--tinta);
  border-radius: 14px;
  background: var(--papel);
  color: var(--tinta);
  cursor: pointer;
}
.barra__abrir svg { margin: auto; }

@media (max-width: 1100px) {
  .barra__abrir { display: grid; place-items: center; }
  .barra__nav {
    position: fixed;
    inset: 75px 0 auto 0;
    max-height: calc(100dvh - 75px);
    overflow-y: auto;
    padding: 16px var(--margen) 28px;
    background: var(--papel);
    border-bottom: var(--linea) solid var(--tinta);
    box-shadow: 0 18px 30px rgba(11, 42, 64, 0.18);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }
  .barra--abierta .barra__nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .barra__menu { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .barra__menu a { padding: 12px 14px; font-size: 1.25rem; }
  .barra__accion { margin: 14px 0 0; }
  .barra__accion .boton { width: 100%; }
}
@media (min-width: 1101px) {
  .barra__nav { display: flex; align-items: center; margin-left: auto; }
}

/* ---------- Botones ---------- */

.boton {
  --fondo: var(--eco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 24px 11px;
  border: var(--linea) solid var(--tinta);
  border-radius: 999px;
  background: var(--fondo);
  color: var(--tinta);
  box-shadow: 0 5px 0 var(--tinta);
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.boton:hover { color: var(--tinta); transform: translateY(-2px); box-shadow: 0 7px 0 var(--tinta); }
.boton:active { transform: translateY(5px); box-shadow: 0 0 0 var(--tinta); }
.boton--claro { --fondo: var(--papel); }
.boton--azul { --fondo: var(--buddy); }
.boton--sol { --fondo: var(--sol); }
.boton--chico { min-height: 44px; padding: 8px 18px 9px; font-size: 1.0625rem; box-shadow: 0 4px 0 var(--tinta); }
.boton svg { flex: none; }
.boton[disabled], .boton[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.enlace-flecha {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.125rem;
}

/* ---------- Secciones ---------- */

.seccion { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.seccion--cielo { background: var(--cielo); }
.seccion--menta { background: var(--menta); }
.seccion--tinta { background: var(--tinta); color: var(--papel); }
.seccion--tinta a { color: #8FDCF5; }
.seccion--tinta a:hover { color: var(--papel); }
.seccion--sol { background: var(--sol); }

.encabezado { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.encabezado p { font-size: var(--t-entrada); color: var(--tinta-suave); }
.seccion--tinta .encabezado p { color: #C9DDE8; }
.entrada { font-size: var(--t-entrada); line-height: 1.5; }

/* ---------- Portada ---------- */

.portada {
  position: relative;
  background:
    radial-gradient(60% 70% at 72% 40%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%),
    var(--cielo);
  overflow: hidden;
}
.portada__grilla {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(8px, 3vw, 48px);
  min-height: min(760px, calc(100svh - 110px));
  padding-block: clamp(40px, 6vw, 72px) clamp(96px, 10vw, 140px);
}
.portada h1 { margin-bottom: 0.3em; }
.portada h1 .linea { display: block; }
.portada__bajada {
  font-size: var(--t-entrada);
  line-height: 1.5;
  max-width: 34ch;
  color: var(--tinta);
  margin-bottom: 1.6em;
}
.acciones { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.insignias {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.insignias li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 7px 10px;
  border: 2px solid var(--tinta);
  border-radius: 999px;
  background: var(--papel);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.insignias li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  background: var(--sol);
  border: 2px solid var(--tinta);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.insignias sup, .hito sup { font-size: 0.6em; }
.portada__juego {
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  z-index: 1;
}
.portada__escenario {
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: 100%;
}

/* Mini-juego: residuos que flotan alrededor de EcoBuddy */
.bocados { position: absolute; inset: 0; pointer-events: none; }
.bocado {
  position: absolute;
  left: var(--x); top: var(--y);
  width: clamp(66px, 17%, 98px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  transform: rotate(var(--r));
  filter: drop-shadow(0 6px 0 rgba(11, 42, 64, 0.16));
  -webkit-tap-highlight-color: transparent;
}
.bocado svg { width: 100%; height: 100%; transition: transform 0.15s ease; }
.bocado:hover svg { transform: scale(1.1) rotate(-4deg); }
.bocado:focus-visible { outline-offset: 0; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .bocado { animation: flotar 3.6s ease-in-out var(--d) infinite; }
}
@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-10px) rotate(calc(var(--r) * -0.6)); }
}
.bocado--arrastrando { animation: none !important; cursor: grabbing; z-index: 5; filter: drop-shadow(0 14px 6px rgba(11, 42, 64, 0.25)); }
.bocado--comido { visibility: hidden; }
.bocado--vuelve svg { animation: aparecer 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes aparecer { from { transform: scale(0); } to { transform: scale(1); } }
.vuelo { position: fixed; z-index: 55; pointer-events: none; margin: 0; }
.vuelo svg { width: 100%; height: 100%; }

.marcador {
  position: absolute;
  left: 2%; bottom: 12%;
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
  padding: 6px 14px 7px 8px;
  border: 2px solid var(--tinta);
  border-radius: 999px;
  background: var(--papel);
  box-shadow: 0 4px 0 var(--tinta);
  font-family: var(--titulo); font-weight: 700; font-size: 1.0625rem; line-height: 1;
}
.marcador .app__moneda { width: 22px; height: 22px; border-color: var(--tinta); }
.marcador b { font-weight: 800; font-variant-numeric: tabular-nums; }
.marcador--salta { animation: saltito 0.4s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes saltito { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-4deg); } 100% { transform: scale(1); } }
.pista {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--titulo); font-weight: 700; font-size: 1rem;
  color: var(--tinta-suave);
}
.pista::before { content: "☝ "; }

/* Nubes que cruzan el cielo de la portada */
.nubes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.nube { position: absolute; width: 190px; height: auto; opacity: 0.95; filter: drop-shadow(0 6px 0 rgba(191, 230, 246, 0.9)); }
.nube--1 { top: 9%; left: 52%; width: 170px; }
.nube--2 { top: 30%; left: -6%; width: 120px; opacity: 0.8; }
.nube--3 { top: 64%; left: 38%; width: 140px; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .nube { animation: nube 95s linear infinite; }
  .nube--1 { animation-duration: 110s; animation-delay: -40s; }
  .nube--2 { animation-duration: 80s; animation-delay: -10s; }
  .nube--3 { animation-duration: 140s; animation-delay: -90s; }
}
@keyframes nube { from { translate: -60vw 0; } to { translate: 70vw 0; } }
.portada .contenedor { position: relative; z-index: 1; }
.colina {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(70px, 10vw, 150px);
  color: var(--papel);
  pointer-events: none;
}
.colina svg { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .portada__grilla {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: left;
    padding-top: 8px;
  }
  .portada__juego { order: -1; max-width: 420px; margin-bottom: -8px; }
}

/* ---------- Escenario 3D del personaje ---------- */

.escenario {
  position: relative;
  isolation: isolate;
}
.escenario__suelo {
  position: absolute;
  left: 50%; bottom: 6%;
  width: 62%; height: 9%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 42, 64, 0.22), rgba(11, 42, 64, 0));
  z-index: -1;
}
.escenario__poster,
.escenario canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.escenario__poster {
  object-fit: contain;
  object-position: center bottom;
  transition: opacity 0.35s ease;
}
.escenario--vivo .escenario__poster { opacity: 0; }
.escenario canvas { outline: none; touch-action: pan-y; cursor: pointer; }

/* Globo de diálogo de EcoBuddy */
.globo {
  position: absolute;
  top: 2%;
  left: 2%;
  z-index: 2;
  max-width: min(260px, 70%);
  padding: 12px 18px 13px;
  background: var(--papel);
  border: var(--linea) solid var(--tinta);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--tinta);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 20% 100%;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.3, 1.5, 0.6, 1);
  pointer-events: none;
}
.globo::after {
  content: "";
  position: absolute;
  left: 28px; bottom: -14px;
  width: 22px; height: 22px;
  background: var(--papel);
  border-right: var(--linea) solid var(--tinta);
  border-bottom: var(--linea) solid var(--tinta);
  transform: skewY(40deg) rotate(28deg);
  border-bottom-right-radius: 4px;
}
.globo--visible { opacity: 1; transform: none; }

/* ---------- El problema ---------- */

.problema {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.cifra-grande {
  font-family: var(--titulo);
  font-weight: 800;
  font-size: clamp(5.5rem, 14vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--eco-hondo);
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}
.cifra-grande small { font-size: 0.45em; letter-spacing: 0; }
.hallazgos { display: grid; gap: 14px; margin: 32px 0 28px; padding: 0; list-style: none; }
.hallazgos li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border: 2px solid var(--tinta);
  border-radius: var(--radio-m);
  background: var(--papel);
}
.hallazgos .num {
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--buddy-hondo);
  padding-top: 4px;
}
.hallazgos p { margin: 0; }
.fotos-evidencia { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.foto {
  margin: 0;
  border: var(--linea) solid var(--tinta);
  border-radius: var(--radio-m);
  background: var(--papel);
  padding: 8px;
  box-shadow: var(--relieve);
}
.foto img { border-radius: 12px; width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; }
.foto figcaption { font-size: var(--t-chica); color: var(--tinta-suave); padding: 10px 6px 4px; line-height: 1.4; }
.fotos-evidencia .foto:nth-child(2) { margin-top: 36px; }
.contexto {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px dashed var(--perla);
  font-size: var(--t-chica);
  color: var(--tinta-suave);
}
.contexto a { color: var(--tinta-suave); }

@media (max-width: 860px) {
  .problema { grid-template-columns: 1fr; }
}

/* ---------- Cómo funciona ---------- */

.funciona {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 72px);
}
.funciona__escenario {
  --alto-escenario: min(600px, calc(100svh - 140px));
  position: sticky;
  /* Centrado en la parte visible, bajo la barra de navegación. */
  top: calc(40px + (100svh - var(--alto-escenario)) / 2);
  height: var(--alto-escenario);
  align-self: start;
}
.funciona__escenario .escenario { width: 100%; height: 100%; }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.paso {
  counter-increment: paso;
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 28px;
}
.paso:first-child { min-height: 70svh; justify-content: flex-start; padding-top: 12svh; }
.paso__num {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 14px;
  border: var(--linea) solid var(--tinta);
  border-radius: 50%;
  background: var(--papel);
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 0.2s ease;
}
.paso--activo .paso__num { background: var(--eco); }
.paso h3 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.paso p { max-width: 46ch; color: var(--tinta-suave); }
.paso__muestra { margin-top: 12px; }

/* La pantallita LCD de 16x2 del robot real */
.lcd {
  display: inline-block;
  padding: 10px;
  border: var(--linea) solid var(--tinta);
  border-radius: 10px;
  background: #24323A;
  box-shadow: var(--relieve);
}
.lcd__vidrio {
  display: grid;
  grid-template-columns: repeat(16, 1.1ch);
  gap: 3px 2px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #1E6FE0;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.25rem);
  color: #EAF6FF;
  text-shadow: 0 0 6px rgba(234, 246, 255, 0.6);
}
.lcd__vidrio span { width: 1ch; text-align: center; }

.ficha {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: var(--linea) solid var(--tinta);
  border-radius: var(--radio-m);
  background: var(--papel);
  box-shadow: var(--relieve);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
}
.ficha__punto { width: 16px; height: 16px; border-radius: 50%; background: var(--eco); border: 2px solid var(--tinta); flex: none; }

/* Teléfono con la app */
.telefono {
  width: min(280px, 100%);
  padding: 12px;
  border: var(--linea) solid var(--tinta);
  border-radius: 38px;
  background: var(--tinta);
  box-shadow: 0 8px 0 rgba(11, 42, 64, 0.35);
}
.telefono__pantalla {
  border-radius: 28px;
  background: #F3F8F4;
  padding: 18px 16px 20px;
  color: #14261B;
  font-size: 0.9375rem;
}
.app__fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.app__saludo { font-family: var(--titulo); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.app__monedas {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 5px;
  border-radius: 999px;
  background: #FFF1D6;
  font-family: var(--titulo); font-weight: 800; font-size: 1.0625rem;
}
.app__moneda { width: 18px; height: 18px; border-radius: 50%; background: #F5A623; border: 2px solid #B97300; }
.app__tarjeta { background: #fff; border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 6px 14px rgba(11, 61, 34, 0.08); }
.app__tarjeta b { font-family: var(--titulo); font-weight: 800; font-size: 1.0625rem; display: block; line-height: 1.2; }
.app__tarjeta small { color: #5F6F66; }
.app__barra { height: 10px; border-radius: 999px; background: #DDF5E6; overflow: hidden; margin-top: 8px; }
.app__barra i { display: block; height: 100%; width: 62%; background: #2FB36B; border-radius: inherit; transition: width 0.8s ease; }
.app__aviso { background: #2FB36B; color: #fff; }
.app__aviso small { color: #E6FFF0; }
.mas-monedas {
  display: inline-block;
  font-family: var(--titulo); font-weight: 800;
  color: #B97300;
}

.nota-pasos {
  max-width: 60ch;
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 2px dashed var(--tinta);
  border-radius: var(--radio-m);
  color: var(--tinta-suave);
}

@media (max-width: 860px) {
  .funciona { grid-template-columns: 1fr; }
  .funciona__escenario {
    top: 76px;
    height: 34svh;
    z-index: 2;
    margin-inline: calc(-1 * var(--margen));
    padding-inline: var(--margen);
    background: linear-gradient(var(--menta) 78%, rgba(231, 247, 221, 0));
  }
  .paso, .paso:first-child { min-height: 0; padding-block: 36px; }
}

/* ---------- Lo que medimos ---------- */

.medidas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 2px solid rgba(255, 255, 255, 0.18); }
.medida {
  padding: 26px 24px 28px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
}
.medida__que { font-family: var(--titulo); font-weight: 700; font-size: 1.25rem; color: #C9DDE8; margin-bottom: 10px; }
.medida__cambio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.medida__antes {
  font-family: var(--titulo); font-weight: 700;
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem);
  color: #8BA6B6;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: #E8826A;
}
.medida__ahora {
  font-family: var(--titulo); font-weight: 800;
  font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem);
  line-height: 1;
  color: var(--eco);
}
.medida p { margin: 0; color: #C9DDE8; font-size: 1rem; }

.puerta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(20px, 3vw, 32px);
  border: var(--linea) solid var(--papel);
  border-radius: var(--radio-l);
  background: #0F3654;
}
.puerta img { border-radius: var(--radio-m); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.puerta h3 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.puerta p { color: #C9DDE8; }
@media (max-width: 760px) { .puerta { grid-template-columns: 1fr; } }

/* ---------- Adelanto del futuro ---------- */

.futuro-adelanto {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.futuro-adelanto img {
  width: 100%;
  border: var(--linea) solid var(--tinta);
  border-radius: var(--radio-l);
  background: #EEF5F1;
  box-shadow: 0 8px 0 var(--tinta);
}
@media (max-width: 860px) { .futuro-adelanto { grid-template-columns: 1fr; } }

/* ---------- Trayectoria ---------- */

.linea-tiempo { list-style: none; margin: 0; padding: 0; position: relative; }
.linea-tiempo::before {
  content: "";
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  border-left: var(--linea) dotted var(--tinta);
}
.hito {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 28px;
  padding: 0 0 34px 44px;
}
.hito::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 21px; height: 21px;
  border-radius: 50%;
  border: var(--linea) solid var(--tinta);
  background: var(--papel);
}
.hito--logro::before { background: var(--sol); }
.hito--proximo::before { background: var(--cielo); border-style: dashed; }
.hito__fecha { font-family: var(--titulo); font-weight: 700; color: var(--tinta-suave); font-size: 1.0625rem; line-height: 1.5; }
.hito h3 { font-size: 1.4375rem; margin-bottom: 0.2em; }
.hito p { margin: 0; color: var(--tinta-suave); max-width: 60ch; }
.hito--logro h3 { color: var(--tinta); }
@media (max-width: 640px) {
  .hito { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Canción ---------- */

.cancion {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.cancion__personaje { max-width: 420px; justify-self: center; }
.cancion h2 { font-size: clamp(2.5rem, 4vw + 1rem, 4rem); }
.reproductor {
  margin-top: 24px;
  border: var(--linea) solid var(--tinta);
  border-radius: var(--radio-m);
  background: var(--papel);
  box-shadow: var(--relieve);
  overflow: hidden;
}
.reproductor__activar {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border: 0;
  background: none;
  color: var(--tinta);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.reproductor__activar b { font-family: var(--titulo); font-weight: 800; font-size: 1.25rem; display: block; line-height: 1.2; }
.reproductor__activar small { color: var(--tinta-suave); font-size: var(--t-chica); line-height: 1.4; display: block; }
.reproductor__play {
  flex: none;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: var(--linea) solid var(--tinta);
  background: var(--eco);
}
.reproductor iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.enlaces-cancion { margin: 18px 0 0; font-family: var(--titulo); font-weight: 700; font-size: 1.125rem; }
.enlaces-cancion a { color: var(--tinta); }
@media (max-width: 760px) { .cancion { grid-template-columns: 1fr; } .cancion__personaje { max-width: 280px; } }

/* ---------- Equipo y colegios ---------- */

.dos-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .dos-col { grid-template-columns: 1fr; } }
.personas { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.persona {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 2px solid var(--tinta);
  border-radius: var(--radio-m);
  background: var(--papel);
}
.persona__inicial {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: var(--linea) solid var(--tinta);
  font-family: var(--titulo); font-weight: 800; font-size: 1.75rem; line-height: 1;
}
.persona:nth-child(1) .persona__inicial { background: var(--eco); }
.persona:nth-child(2) .persona__inicial { background: var(--buddy); }
.persona b { font-family: var(--titulo); font-weight: 800; font-size: 1.375rem; display: block; line-height: 1.15; }
.persona__rol { color: var(--tinta-suave); font-size: 1rem; }

.contacto {
  padding: clamp(24px, 4vw, 40px);
  border: var(--linea) solid var(--tinta);
  border-radius: var(--radio-l);
  background: var(--papel);
  box-shadow: 0 8px 0 var(--tinta);
}
.contacto h2 { font-size: clamp(1.875rem, 2.4vw + 1rem, 2.75rem); }
.contacto .nota { font-size: var(--t-chica); color: var(--tinta-suave); margin: 16px 0 0; }

/* ---------- Pie ---------- */

.pie { background: var(--tinta); color: #C9DDE8; padding-block: 64px 40px; font-size: 1rem; }
.pie a { color: var(--papel); text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie__grilla { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.pie__lema { font-family: var(--titulo); font-weight: 800; font-size: 2rem; line-height: 1.05; color: var(--papel); margin: 18px 0 8px; }
.pie h2 { font-size: 1.125rem; color: var(--papel); margin-bottom: 12px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 22px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  font-size: var(--t-chica);
}
.pie__logo { width: 190px; height: auto; background: var(--papel); border-radius: 16px; padding: 10px 14px; }
@media (max-width: 860px) { .pie__grilla { grid-template-columns: 1fr 1fr; } .pie__marca { grid-column: 1 / -1; } }

/* ---------- Toques de juego ---------- */

/* Sello tipo sticker, pegado un poco chueco */
.sello {
  display: inline-block;
  padding: 6px 16px 7px;
  border: var(--linea) solid var(--tinta);
  border-radius: 14px;
  background: var(--sol);
  color: var(--tinta);
  box-shadow: 0 4px 0 var(--tinta);
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1;
  transform: rotate(-6deg);
  vertical-align: middle;
  white-space: nowrap;
}
.sello--verde { background: var(--eco); transform: rotate(5deg); }
.sello--azul { background: var(--buddy); transform: rotate(-4deg); }
h2 .sello { margin-left: 12px; font-size: 1.125rem; letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sello:hover { animation: bamboleo 0.5s ease; }
}
@keyframes bamboleo { 25% { rotate: 6deg; } 50% { rotate: -5deg; } 75% { rotate: 3deg; } }

/* Fotos como pegadas con cinta */
.fotos-evidencia .foto:nth-child(1) { transform: rotate(-2.5deg); }
.fotos-evidencia .foto:nth-child(2) { transform: rotate(2deg); }
.foto { position: relative; }
.foto::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  width: 84px; height: 26px;
  translate: -50% 0;
  rotate: -4deg;
  background: rgba(255, 210, 63, 0.75);
  border-left: 2px dashed rgba(11, 42, 64, 0.18);
  border-right: 2px dashed rgba(11, 42, 64, 0.18);
}
.hallazgos li { transition: transform 0.2s ease; }
.hallazgos li:hover { transform: rotate(-1deg) scale(1.01); }

/* Olas: el borde superior de algunas secciones ondula, como la colina */
.ola { position: relative; }
.ola::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -34px;
  height: 36px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V20C120 4 240 0 360 8s240 26 360 20 240-28 360-24 240 16 360 10v22z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V20C120 4 240 0 360 8s240 26 360 20 240-28 360-24 240 16 360 10v22z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* EcoBuddy se asoma sobre el pie de página: es el botón para volver arriba */
.asoma {
  position: absolute;
  right: clamp(16px, 8vw, 120px);
  top: 0;
  width: clamp(130px, 16vw, 190px);
  padding: 0;
  border: 0;
  background: none;
  translate: 0 -78%;
  cursor: pointer;
  transition: translate 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.asoma img { width: 100%; height: auto; }
.asoma:hover, .asoma:focus-visible { translate: 0 -92%; }
.asoma__texto {
  position: absolute;
  right: 88%; top: 8%;
  padding: 6px 12px 7px;
  border: 2px solid var(--tinta);
  border-radius: 14px;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--titulo); font-weight: 700; font-size: 1rem; line-height: 1.1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.asoma:hover .asoma__texto, .asoma:focus-visible .asoma__texto { opacity: 1; }
.pie { position: relative; }

/* ---------- Páginas de texto (privacidad, aviso legal, prensa) ---------- */

.cabecera-pagina { background: var(--cielo); padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); border-bottom: var(--linea) solid var(--tinta); }
.cabecera-pagina h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
.cabecera-pagina p { font-size: var(--t-entrada); max-width: 60ch; margin: 0; }
.prosa { max-width: 70ch; }
.prosa h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem); margin-top: 1.8em; }
.prosa h3 { margin-top: 1.4em; }
.prosa ul { padding-left: 1.2em; }
.prosa li { margin-bottom: 0.4em; }
.prosa table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 1rem; }
.prosa th, .prosa td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--cielo-hondo); }
.prosa th { font-family: var(--titulo); font-weight: 700; font-size: 1.0625rem; }
.actualizado { color: var(--tinta-suave); font-size: var(--t-chica); }
.tabla-desliza { overflow-x: auto; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.seccion--papel { background: var(--papel); }

/* En el celular el globo va debajo de EcoBuddy, para no taparle la cara. */
@media (max-width: 860px) {
  #escenario-portada .globo {
    top: auto; bottom: -2%;
    left: 50%;
    max-width: 92%;
    width: max-content;
    text-align: center;
    translate: -50% 0;
    transform-origin: 50% 0;
    font-size: 1.0625rem;
  }
  #escenario-portada .globo::after {
    top: -14px; bottom: auto;
    left: calc(50% - 11px);
    transform: skewY(40deg) rotate(208deg);
  }
  .marcador { bottom: auto; top: 0; }
}
.acciones--cancion { margin-top: 22px; }
.acciones--cancion .enlace-flecha { color: var(--tinta); }

/* ---------- Encuesta: el juego ---------- */

.juego-seccion { padding-top: clamp(36px, 5vw, 64px); }
.juego {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.juego h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem); margin-bottom: 0.35em; }
.tarjeta-juego {
  display: flex;
  min-height: 430px;
  padding: clamp(20px, 3vw, 34px);
  border: var(--linea) solid var(--tinta);
  border-radius: var(--radio-l);
  background: var(--papel);
  box-shadow: 0 8px 0 var(--tinta);
}
.vista { width: 100%; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.vista > p { margin: 0; }
.nota-juego { margin: 16px 4px 0; font-size: var(--t-chica); color: var(--tinta-suave); }
.progreso { display: flex; align-items: center; gap: 12px; font-family: var(--titulo); font-weight: 700; color: var(--tinta-suave); }
.progreso ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.progreso li { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--tinta); background: var(--papel); }
.progreso li.bien { background: var(--eco); }
.progreso li.mal { background: #E8574A; }
.progreso li.actual { background: var(--sol); transform: scale(1.25); }
.objeto { width: min(210px, 56%); margin: 4px auto 0; }
.objeto svg { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .vista--pregunta .objeto { animation: entrar 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
}
@keyframes entrar { from { transform: scale(0.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.objeto__nombre { text-align: center; font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); margin: 0; outline: none; }
.respuestas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.respuestas .boton { width: 100%; min-height: 64px; font-size: 1.25rem; }
.respuesta__cabeza { display: flex; align-items: center; gap: 18px; }
.objeto--chico { width: 96px; flex: none; margin: 0; }
.veredicto { margin: 0; font-family: var(--titulo); font-weight: 800; font-size: clamp(2rem, 2vw + 1.2rem, 2.6rem); line-height: 1; outline: none; }
.es-bien .veredicto { color: var(--eco-hondo); }
.es-mal .veredicto { color: #B3261E; }
.clave { margin: 6px 0 0; font-size: 1.125rem; }
.comparacion { font-size: 0.95rem; color: var(--tinta-suave); }
.comparacion__barra { display: block; height: 12px; margin-top: 8px; border-radius: 999px; background: var(--cielo); overflow: hidden; }
.comparacion__barra i { display: block; height: 100%; border-radius: inherit; background: var(--buddy); }
.vista .boton { align-self: flex-start; }
.final__puntaje { margin: 0; font-family: var(--titulo); font-weight: 800; font-size: clamp(2.25rem, 3vw + 1.2rem, 3.25rem); line-height: 1; outline: none; }
.final__resumen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.final__resumen li { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; border: 2px solid var(--tinta); line-height: 1.2; }
.final__resumen li.bien { background: var(--menta); }
.final__resumen li.mal { background: #FDE7E8; }
.final__icono { width: 30px; height: 30px; flex: none; }
.final__icono svg { width: 100%; height: 100%; }
.juego__personaje .escenario { width: 100%; max-width: 520px; aspect-ratio: 1 / 1.02; margin-inline: auto; }
@media (max-width: 860px) {
  .juego { grid-template-columns: 1fr; }
  .juego__personaje { order: -1; }
  .juego__personaje .escenario { max-width: 260px; }
  .juego h1 { text-align: center; }
}

/* ---------- Encuesta: resultados ---------- */

.resultados { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .resultados { grid-template-columns: 1fr; } }
.grafico { margin: 0; }
.grafico figcaption h3 { font-size: 1.5rem; margin: 0 0 4px; }
.grafico figcaption p { margin: 0 0 18px; color: var(--tinta-suave); font-size: 0.95rem; }
.barras { width: 100%; border-collapse: collapse; }
.barras tr { outline: none; }
.barras tr:focus-visible th { text-decoration: underline; text-decoration-thickness: 2px; }
.barras th[scope="row"] {
  width: 1%;
  padding: 6px 14px 6px 0;
  text-align: left;
  white-space: nowrap;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.0625rem;
}
.barras__clave { width: 1%; padding: 6px 14px 6px 0; white-space: nowrap; font-size: 0.8125rem; color: var(--tinta-suave); }
.barras td:last-child { padding: 6px 0; }
.barras__pista {
  --escala: 0.8%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  /* El promedio de la encuesta (86,2 por ciento), como una línea fina que cruza las filas. */
  background: linear-gradient(to right, transparent calc(86.2 * var(--escala) - 1px), var(--tinta-suave) calc(86.2 * var(--escala) - 1px), var(--tinta-suave) calc(86.2 * var(--escala)), transparent calc(86.2 * var(--escala)));
}
.barras__barra { display: block; flex: none; width: calc(var(--v) * var(--escala)); height: 22px; border-radius: 0 4px 4px 0; background: var(--buddy); }
.barras__destacada .barras__barra { background: var(--buddy-hondo); }
.barras__valor { position: relative; z-index: 1; padding: 0 4px; border-radius: 4px; background: var(--papel); font-family: var(--titulo); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.barras tr:hover .barras__pista::after,
.barras tr:focus-visible .barras__pista::after {
  content: attr(data-detalle);
  position: absolute;
  left: calc(var(--v) * var(--escala));
  bottom: calc(100% - 2px);
  translate: -50% 0;
  z-index: 3;
  padding: 4px 10px 5px;
  border-radius: 8px;
  background: var(--tinta);
  color: var(--papel);
  font-size: 0.85rem;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 560px) { .barras__clave { display: none; } .barras th[scope="row"] { font-size: 0.95rem; } }

.resultados__lado { display: grid; gap: 28px; }
.cifra-tarjeta { padding: 20px 22px; border: var(--linea) solid var(--tinta); border-radius: var(--radio-m); background: var(--cielo); box-shadow: var(--relieve); }
.cifra-tarjeta__num { display: block; font-family: var(--titulo); font-weight: 800; font-size: 3.5rem; line-height: 0.9; color: var(--eco-hondo); }
.cifra-tarjeta p { margin: 8px 0 0; }
.grafico--chico figcaption h3 { font-size: 1.25rem; }
.columnas { display: block; width: 100%; }
.columnas tbody { display: flex; align-items: stretch; gap: 6px; height: 190px; }
.columnas tr { display: flex; flex-direction: column; justify-content: flex-end; flex: 1; }
.columnas td {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  border-bottom: 1px solid var(--cielo-hondo);
  font-family: var(--titulo); font-weight: 700; font-size: 0.9rem;
}
.columnas td::after {
  content: "";
  display: block;
  width: min(24px, 80%);
  height: calc(var(--n) / 23 * 140px);
  margin-top: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--buddy);
}
.columnas th { order: 2; padding-top: 6px; text-align: center; font-family: var(--titulo); font-weight: 700; font-size: 0.95rem; color: var(--tinta-suave); }
.por-curso { margin: 0; font-size: 1rem; color: var(--tinta-suave); }

/* ---------- Encuesta: descubrimientos y ficha ---------- */

.descubrimientos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 0 0 clamp(48px, 6vw, 80px); padding: 0; list-style: none; counter-reset: desc; }
.descubrimientos li {
  counter-increment: desc;
  position: relative;
  padding: 26px 22px 22px;
  border: 2px solid var(--tinta);
  border-radius: var(--radio-m);
  background: var(--papel);
}
.descubrimientos li::before {
  content: counter(desc);
  position: absolute;
  top: -18px; left: 18px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: var(--linea) solid var(--tinta);
  border-radius: 50%;
  background: var(--sol);
  font-family: var(--titulo); font-weight: 800; font-size: 1.25rem;
}
.descubrimientos h3 { font-size: 1.375rem; }
.descubrimientos p { margin: 0; color: var(--tinta-suave); }
.ficha-tecnica { display: grid; gap: 12px; margin: 0; }
.ficha-tecnica div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.ficha-tecnica dt { font-family: var(--titulo); font-weight: 700; }
.ficha-tecnica dd { margin: 0; color: var(--tinta-suave); }
.limites { display: grid; gap: 14px; padding-left: 1.1em; margin: 0; }
.limites b { color: var(--tinta); font-weight: 600; }
.limites li { color: var(--tinta-suave); }
.ficha-y-limites h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem); }

/* ---------- Prensa ---------- */

.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.kit__pieza { display: grid; gap: 6px; justify-items: start; padding: 14px; border: 2px solid var(--tinta); border-radius: var(--radio-m); background: var(--papel); }
.kit__pieza b { font-family: var(--titulo); font-weight: 800; font-size: 1.25rem; }
.kit__pieza span { color: var(--tinta-suave); font-size: 0.9rem; margin-bottom: 6px; }
.kit__vista { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--cielo); margin-bottom: 6px; }
.kit__vista img { width: 100%; height: 100%; object-fit: contain; }
.kit__vista--claro { background: var(--papel); border: 1px solid var(--cielo-hondo); }
.colores { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.colores li { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.colores span { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--tinta); flex: none; }
.colores b { font-family: var(--titulo); font-weight: 800; min-width: 64px; }

/* ---------- Página no encontrada ---------- */

.perdido__grilla { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; min-height: 60svh; }
.perdido__grilla img { max-width: 420px; width: 100%; justify-self: center; }
.perdido h1 { font-size: clamp(2.25rem, 4vw + 1rem, 4rem); }
@media (max-width: 760px) { .perdido__grilla { grid-template-columns: 1fr; text-align: center; } .perdido .acciones { justify-content: center; } .perdido__grilla img { max-width: 260px; } }
