/* Balero · paleta Mate (claro por defecto, oscuro según el sistema) */

@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --fondo: #F1F4EC;
  --tarjeta: #FFFFFF;
  --borde: #D9E0D2;
  --texto: #1B2A21;
  --texto-2: #56655B;
  --secundario: #B7C4A1;
  --acento: #2D6A4F;
  --acento-suave: #DCE9DF;
  --apoyo: #B5741F;
  --sobre-acento: #FFFFFF;
  --display: "Bricolage", "DM Sans", system-ui, sans-serif;
  --cuerpo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1120px;
  --radio: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0F1712; --tarjeta: #17221B; --borde: #2A3A30; --texto: #E6ECE3;
    --texto-2: #9AAD9F; --secundario: #3E5446; --acento: #4FAF7E; --acento-suave: #1E3328;
    --apoyo: #E0A04A; --sobre-acento: #0F1712; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #0F1712; --tarjeta: #17221B; --borde: #2A3A30; --texto: #E6ECE3;
  --texto-2: #9AAD9F; --secundario: #3E5446; --acento: #4FAF7E; --acento-suave: #1E3328;
  --apoyo: #E0A04A; --sobre-acento: #0F1712; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font-family: var(--cuerpo); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--acento); }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 4px; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .contenedor { padding: 0 16px; } }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; }

.etiqueta {
  display: inline-block; font-family: var(--cuerpo); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--acento);
  margin-bottom: 14px;
}
.bajada { color: var(--texto-2); font-size: 1.15rem; max-width: 640px; }

/* ---------- Logo ---------- */
.logo {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em;
  color: var(--texto); text-decoration: none; display: inline-flex; align-items: baseline;
  line-height: 1;
}
.bocha {
  display: inline-block; position: relative; width: 0.47em; height: 0.47em;
  margin-left: 0.035em; border-radius: 50%; background: var(--acento);
}
.bocha::after {
  content: ""; position: absolute; width: 26%; height: 18%; top: 13%; left: 40%;
  border-radius: 50%; background: var(--fondo);
}

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--fondo) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.encabezado.con-borde { border-bottom-color: var(--borde); }
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.encabezado .logo { font-size: 1.75rem; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.boton) { color: var(--texto-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.menu a:not(.boton):hover { color: var(--texto); }
@media (max-width: 860px) { .menu a:not(.boton) { display: none; } }

.tema {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--borde); background: transparent;
  color: var(--texto-2); cursor: pointer; transition: color .15s, border-color .15s;
}
.tema:hover { color: var(--texto); border-color: var(--texto-2); }
.tema svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tema .sol { display: none; }
:root[data-theme="dark"] .tema .sol { display: block; }
:root[data-theme="dark"] .tema .luna { display: none; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--cuerpo); font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--acento);
  background: var(--acento); color: var(--sobre-acento); transition: transform .15s, filter .15s;
}
.boton:hover { filter: brightness(1.08); transform: translateY(-1px); }
.boton.chico { padding: 9px 16px; font-size: 0.92rem; }
.boton.fantasma { background: transparent; color: var(--texto); border-color: var(--borde); }
.boton.fantasma:hover { border-color: var(--texto-2); filter: none; }

/* ---------- Portada ---------- */
.portada { padding: 88px 0 72px; position: relative; overflow: hidden; }
.portada .contenedor { position: relative; }
.portada h1 { max-width: 820px; }
.portada h1 .resalte { color: var(--acento); }
.portada .bajada { margin-top: 24px; font-size: 1.25rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trayectoria {
  position: absolute; right: 0; top: -20px; width: 380px; height: auto;
  pointer-events: none;
}
.trayectoria .arco { stroke: var(--secundario); }
.trayectoria .destino { fill: var(--acento); }
.trayectoria .agujero { fill: var(--fondo); }
@media (max-width: 1000px) { .trayectoria { display: none; } }
@media (max-width: 600px) { .portada { padding: 56px 0 48px; } }

/* ---------- Secciones ---------- */
section { scroll-margin-top: 72px; }
.seccion { padding: 88px 0; }
.seccion.alterna { background: var(--tarjeta); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.seccion .cabeza { max-width: 720px; margin-bottom: 48px; }
.seccion .cabeza .bajada { margin-top: 16px; }
@media (max-width: 600px) { .seccion { padding: 64px 0; } }

.grilla { display: grid; gap: 20px; }
.grilla.tres { grid-template-columns: repeat(3, 1fr); }
.grilla.dos { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grilla.tres, .grilla.dos { grid-template-columns: 1fr; } }

.tarjeta {
  background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 28px;
}
.alterna .tarjeta { background: var(--fondo); }
.tarjeta h3 { margin-bottom: 10px; }
.tarjeta p { color: var(--texto-2); }
.numero {
  font-family: var(--display); font-weight: 800; font-size: 0.95rem; color: var(--acento);
  background: var(--acento-suave); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
}

/* Problema */
.problema .tarjeta { box-shadow: inset 4px 0 0 var(--apoyo); }

/* Método */
.metodo .tarjeta .palabra { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--acento); line-height: 1; margin-bottom: 14px; letter-spacing: -0.02em; }

/* Diagnóstico */
.diag { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .diag { grid-template-columns: 1fr; gap: 36px; } }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.pasos li {
  position: relative; padding: 0 0 22px 52px; counter-increment: paso;
}
.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 0.9rem;
  background: var(--acento-suave); color: var(--acento);
}
.pasos li::after {
  content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px;
  border-left: 1.5px dashed var(--secundario);
}
.pasos li:last-child { padding-bottom: 0; }
.pasos li:last-child::after { display: none; }
.pasos strong { display: block; font-weight: 600; }
.pasos span { color: var(--texto-2); font-size: 0.97rem; }

.entrega h3 { margin-bottom: 16px; }
.lista-check { list-style: none; margin: 0; padding: 0; }
.lista-check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.lista-check li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px;
  border-radius: 50%; background: var(--acento);
}
.datos { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--acento-suave); color: var(--acento); font-weight: 600; font-size: 0.88rem;
  padding: 6px 12px; border-radius: 999px;
}

/* Servicios */
.servicios { display: grid; gap: 16px; }
.servicio {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: center;
  background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px 28px;
}
.alterna .servicio { background: var(--fondo); }
.servicio .nivel { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--texto-2); }
.servicio h3 { margin-bottom: 6px; }
.servicio p { color: var(--texto-2); }
.servicio .formato { font-size: 0.9rem; color: var(--texto-2); white-space: nowrap; text-align: right; }
.servicio.destacado { border: 2px solid var(--acento); }
.servicio.destacado .nivel { color: var(--acento); }
@media (max-width: 800px) {
  .servicio { grid-template-columns: 1fr; gap: 8px; }
  .servicio .formato { text-align: left; white-space: normal; }
}

/* Quién */
.quien { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .quien { grid-template-columns: 1fr; gap: 28px; } }
.quien .bajada { margin-top: 16px; }

.hitos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hitos li { background: var(--fondo); border: 1px solid var(--borde); border-radius: 12px; padding: 16px 20px; }
.hitos b { color: var(--acento); font-weight: 600; }

/* Preguntas */
.preguntas { display: grid; gap: 12px; max-width: 820px; }
.pregunta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 12px; }
.pregunta summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--acento); border-bottom: 2px solid var(--acento);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.pregunta[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.pregunta p { padding: 0 22px 20px; color: var(--texto-2); }

/* Cierre */
.cierre { padding: 96px 0; text-align: center; }
.cierre h2 { max-width: 760px; margin: 0 auto; }
.cierre .bajada { margin: 18px auto 0; }
.cierre .acciones { justify-content: center; }
.cierre .mail { margin-top: 18px; color: var(--texto-2); font-size: 0.95rem; }

/* Pie */
.pie { border-top: 1px solid var(--borde); padding: 32px 0 40px; color: var(--texto-2); font-size: 0.9rem; }
.pie .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.pie .logo { font-size: 1.4rem; }
.pie .marca { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.franjas { display: flex; height: 8px; }
.franjas i:nth-child(1) { flex: 5; background: var(--acento); }
.franjas i:nth-child(2) { flex: 1; background: var(--secundario); }
.franjas i:nth-child(3) { flex: 2; background: var(--apoyo); }
.franjas i:nth-child(4) { flex: 1; background: var(--texto); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
}
