/*
 * Aprendare — landing comercial
 * Paleta y tokens extraídos 1:1 de saime-skill-hub/src/styles.css
 * (azul institucional + acento ámbar de gamificación, oklch).
 * Extendida aquí con tokens propios de landing (mesh, glow, sombras largas)
 * — nunca colores nuevos fuera de esta familia.
 */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

/* Transición nativa entre páginas (sin JS, sin framework): en navegadores
   que la soportan, cruza en fundido en vez de recargar en blanco. En los
   que no, esta regla se ignora y el sitio navega exactamente como antes —
   cero riesgo. Ver: https://developer.chrome.com/docs/web-platform/view-transitions/cross-document */
@view-transition {
  navigation: auto;
}

:root {
  color-scheme: light;

  /* ---- Tokens de marca (idénticos a la app de participante) ---- */
  --background: oklch(0.985 0.006 250);
  --foreground: oklch(0.22 0.045 258);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.045 258);
  --primary: oklch(0.44 0.145 255);
  --primary-foreground: oklch(0.985 0.008 250);
  --secondary: oklch(0.945 0.02 250);
  --secondary-foreground: oklch(0.32 0.08 256);
  --muted: oklch(0.955 0.012 250);
  --muted-foreground: oklch(0.42 0.03 258);
  --accent: oklch(0.78 0.16 65);
  --accent-foreground: oklch(0.26 0.06 60);
  --success: oklch(0.62 0.14 155);
  --success-foreground: oklch(0.985 0.005 250);
  --border: oklch(0.9 0.015 252);

  --marino: oklch(0.33 0.11 258);
  --modulo: oklch(0.94 0.055 72);
  --modulo-borde: oklch(0.82 0.11 68);
  --ruta-hecho: oklch(0.7 0.18 142);
  --ruta-actual: oklch(0.7 0.17 55);

  --belt-blanco: oklch(0.93 0.005 250);
  --belt-amarillo: oklch(0.86 0.16 95);
  --belt-naranja: oklch(0.73 0.17 55);
  --belt-verde: oklch(0.65 0.15 150);
  --belt-azul: oklch(0.55 0.15 250);
  --belt-negro: oklch(0.28 0.02 260);

  --gradient-hero: linear-gradient(135deg, oklch(0.28 0.1 260) 0%, oklch(0.36 0.14 258) 32%, oklch(0.48 0.15 250) 62%, oklch(0.62 0.13 232) 100%);
  --gradient-eco: linear-gradient(120deg, oklch(0.78 0.16 65) 0%, oklch(0.84 0.15 85) 100%);
  --shadow-card: 0 1px 2px oklch(0.3 0.05 258 / 0.06), 0 12px 32px -12px oklch(0.3 0.05 258 / 0.18);
  --shadow-glow: 0 0 0 4px oklch(0.78 0.16 65 / 0.22);

  /* ---- Extensiones propias de landing (misma familia, nunca fuera de ella) ---- */
  --ink-900: oklch(0.16 0.04 258);
  --hero-mesh-1: oklch(0.55 0.15 250 / 0.55);
  --hero-mesh-2: oklch(0.78 0.16 65 / 0.35);
  --hero-mesh-3: oklch(0.62 0.13 232 / 0.4);
  --shadow-lift: 0 24px 64px -24px oklch(0.2 0.06 258 / 0.35);
  --shadow-lift-lg: 0 40px 100px -32px oklch(0.2 0.06 258 / 0.45);
  --radius-sm: 0.6rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= Reset base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--foreground);
}
p { margin: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-foreground); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 900px) { .container { padding-inline: 40px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-glow), 0 10px 24px -10px oklch(0.6 0.15 65 / 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow), 0 16px 32px -12px oklch(0.6 0.15 65 / 0.6); }
.btn-ghost-light {
  background: oklch(1 0 0 / 0.08);
  color: #fff;
  border-color: oklch(1 0 0 / 0.28);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: oklch(1 0 0 / 0.16); transform: translateY(-2px); }
.btn-dark {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 14px 28px -14px oklch(0.44 0.145 255 / 0.55);
}
.btn-dark:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--secondary); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ================= Nav ================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background 0.3s var(--ease-out), padding 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nav.is-scrolled {
  background: oklch(1 0 0 / 0.86);
  backdrop-filter: blur(14px);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--border), 0 12px 24px -18px oklch(0.2 0.05 258 / 0.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.nav.is-scrolled .brand,
.nav.is-scrolled .navlinks a { color: var(--foreground); }
.brand { color: #fff; transition: color 0.3s; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.navlinks { display: none; align-items: center; gap: 22px; color: oklch(1 0 0 / 0.86); font-weight: 600; font-size: 0.92rem; transition: color 0.3s; }
.navlinks a { position: relative; padding-block: 4px; white-space: nowrap; }
.navlinks a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent);
  transition: right 0.25s var(--ease-out);
}
.navlinks a:hover::after { right: 0; }
@media (min-width: 1080px) { .navlinks { display: flex; } }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.88rem; }
.btn-nav-secondary {
  background: transparent;
  color: oklch(1 0 0 / 0.86);
  padding: 10px 4px;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.btn-nav-secondary:hover { color: #fff; border-bottom-color: oklch(1 0 0 / 0.5); }
.nav.is-scrolled .btn-nav-secondary { color: var(--muted-foreground); }
.nav.is-scrolled .btn-nav-secondary:hover { color: var(--foreground); border-bottom-color: var(--border); }
@media (max-width: 720px) {
  .nav-cta .btn-nav-secondary { display: none; }
}
@media (max-width: 560px) {
  .nav-cta .btn-primary { display: none; }
}

.mobile-menu a.mobile-menu-login {
  margin-top: 18px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: oklch(1 0 0 / 0.65);
  border-bottom: none;
  padding-block: 4px;
}
.nav-burger {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid oklch(1 0 0 / 0.3); background: oklch(1 0 0 / 0.08);
  color: #fff;
}
.nav.is-scrolled .nav-burger { color: var(--foreground); border-color: var(--border); background: var(--secondary); }
@media (min-width: 1080px) { .nav-burger { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink-900);
  display: flex; flex-direction: column;
  padding: 100px 28px 40px;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  padding-block: 14px; border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.mobile-menu .btn { margin-top: 24px; }

/* ================= Hero ================= */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 120px;
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(38% 46% at 14% 18%, var(--hero-mesh-2), transparent 70%),
    radial-gradient(46% 52% at 88% 12%, var(--hero-mesh-3), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, var(--hero-mesh-1), transparent 70%);
  z-index: -2;
  animation: mesh-drift 22s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(oklch(1 0 0 / 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  z-index: -1;
  opacity: 0.5;
}
@keyframes mesh-drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.06); }
}
.reduce-motion .hero::before { animation: none; }

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1040px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero-eyebrow {
  color: oklch(0.9 0.06 85);
  background: oklch(1 0 0 / 0.1);
  border: 1px solid oklch(1 0 0 / 0.22);
  padding: 8px 16px;
  border-radius: 999px;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  color: #fff;
  line-height: 1.08;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: oklch(0.86 0.14 85); }
.hero-sub {
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: oklch(0.94 0.02 250 / 0.88);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-microcopy { margin-top: 18px; font-size: 0.85rem; color: oklch(1 0 0 / 0.6); }

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: oklch(1 0 0 / 0.14);
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat { background: oklch(1 0 0 / 0.05); padding: 20px 18px; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: #fff; }
.hero-stat span { display: block; margin-top: 6px; font-size: 0.78rem; line-height: 1.4; color: oklch(1 0 0 / 0.68); }

/* ---- Panel visual del hero: recreación del sistema del panel del participante ---- */
.hero-panel-wrap { position: relative; }
.hero-panel {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift-lg);
  padding: 22px;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.6s var(--ease-out);
}
.hero-panel-wrap:hover .hero-panel { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.hero-panel-top { display: flex; align-items: center; justify-content: space-between; }
.hero-panel-user { display: flex; align-items: center; gap: 10px; }
.hero-panel-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-hero);
}
.hero-panel-user strong { display: block; font-size: 0.86rem; color: var(--foreground); }
.hero-panel-user span { font-size: 0.74rem; color: var(--muted-foreground); }
.hero-panel-dots { display: flex; gap: 5px; }
.hero-panel-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }

.panel-progress { margin-top: 18px; background: var(--secondary); border-radius: var(--radius-md); padding: 16px; }
.panel-progress-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; font-weight: 700; color: var(--secondary-foreground); }
.panel-bar { margin-top: 10px; height: 8px; border-radius: 999px; background: oklch(0.44 0.145 255 / 0.14); overflow: hidden; }
.panel-bar-fill { height: 100%; border-radius: 999px; background: var(--primary); width: 62%; }

.panel-route { margin-top: 18px; display: flex; align-items: flex-end; gap: 6px; overflow: hidden; }
.panel-node { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.panel-node em {
  font-style: normal;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #fff;
  background: var(--border);
}
.panel-node.done em { background: var(--ruta-hecho); }
.panel-node.now em { background: var(--ruta-actual); box-shadow: 0 0 0 5px oklch(0.7 0.17 55 / 0.22); }
.panel-node span { font-size: 0.6rem; color: var(--muted-foreground); font-weight: 700; }

.panel-row2 { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-chip { border-radius: var(--radius-md); padding: 14px; }
.panel-chip.eco { background: var(--gradient-eco); color: var(--accent-foreground); }
.panel-chip.streak { background: var(--marino); color: #fff; }
.panel-chip p:first-child { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; opacity: 0.8; }
.panel-chip strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 1.3rem; }

.hero-panel-badge {
  position: absolute; top: -18px; right: -18px;
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); padding: 12px 16px;
  min-width: 252px;
  animation: float-badge 5s ease-in-out infinite;
}
.hero-panel-badge-content {
  display: flex; align-items: center; gap: 10px;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.hero-panel-badge-content.is-swapping { opacity: 0; transform: translateY(5px); }
.hero-panel-badge svg { width: 30px; height: 30px; flex-shrink: 0; }
.hero-panel-badge-icon {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem;
}
.hero-panel-badge strong { display: block; font-size: 0.8rem; color: var(--foreground); white-space: nowrap; }
.hero-panel-badge span { font-size: 0.68rem; color: var(--muted-foreground); white-space: nowrap; }
@media (max-width: 480px) {
  .hero-panel-badge { min-width: 0; max-width: calc(100vw - 64px); }
  .hero-panel-badge strong, .hero-panel-badge span { white-space: normal; }
}
@keyframes float-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.reduce-motion .hero-panel-badge { animation: none; }

.hero-panel-tag {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--marino); color: #fff;
  border-radius: var(--radius-md); padding: 10px 14px;
  font-size: 0.72rem; font-weight: 700; box-shadow: var(--shadow-lift);
  display: flex; align-items: center; gap: 8px;
}
.hero-panel-caption { text-align: center; margin-top: 20px; font-size: 0.76rem; color: oklch(1 0 0 / 0.55); }

/* ================= Reveal on scroll ================= */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="scale"] { transform: translateY(0) scale(0.94); }
[data-reveal="scale"].is-visible { transform: scale(1); }

/* ================= Protagonismo continuo al hacer scroll ================= */
/* A diferencia de [data-reveal] (dispara una vez y se queda), esto se
   recalcula en cada scroll: la tarjeta más cercana al centro de la
   pantalla crece, las demás se achican — el protagonismo se mueve de
   una a otra mientras el usuario baja. JS controla transform/opacity
   por inline style cuadro a cuadro; esto solo suaviza la transición
   entre esos valores para que no se sienta a saltos. */
.how-step, .syllabus-item {
  transition: transform 0.15s linear, opacity 0.15s linear;
  will-change: transform, opacity;
}

/* ================= Franja de confianza ================= */
.trust {
  background: var(--marino);
  color: oklch(1 0 0 / 0.82);
  padding-block: 22px;
}
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; text-align: center; font-size: 0.85rem; font-weight: 600; }
.trust-inner strong { color: #fff; }
.trust-inner span { display: inline-flex; align-items: center; gap: 9px; }
.trust-inner span::before {
  content: "✓";
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: oklch(0.78 0.16 65 / 0.22); color: oklch(0.86 0.14 85);
  font-size: 0.65rem; font-weight: 800;
}
@media (max-width: 680px) {
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
}

/* ================= Cómo funciona ================= */
.how { background: var(--background); }
.how-flow {
  display: grid;
  gap: 18px;
  counter-reset: step;
}
@media (min-width: 900px) { .how-flow { grid-template-columns: repeat(4, 1fr); } }
.how-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.how-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.how-step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
}
.how-step h3 { margin-top: 16px; font-size: 1.05rem; }
.how-step p { margin-top: 8px; font-size: 0.88rem; line-height: 1.55; color: var(--muted-foreground); }
.how-step .tag { display: inline-block; margin-top: 14px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-foreground); background: var(--gradient-eco); padding: 4px 10px; border-radius: 999px; }
.how-arrow { display: none; }
@media (min-width: 900px) {
  .how-step:not(:last-child)::after {
    content: "";
    position: absolute; right: -18px; top: 50%; translate: 0 -50%;
    width: 24px; height: 2px; background: var(--border);
  }
}

/* ---- Vista del producto (recreación del panel, no captura) ---- */
.product-preview {
  margin-top: 64px;
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1000px) { .product-preview { grid-template-columns: 1fr 1fr; } }
.pp-copy .badge-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.pp-copy .badge-list li { display: flex; gap: 12px; font-size: 0.92rem; color: var(--foreground); }
.pp-copy .badge-list svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--success); margin-top: 2px; }

.mock { background: var(--marino); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-lift-lg); position: relative; overflow: hidden; }
.mock::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 100% 0%, oklch(1 0 0 / 0.08), transparent 70%); }
.mock-head { position: relative; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.mock-head h4 { font-size: 0.95rem; color: #fff; }
.mock-head span { font-size: 0.72rem; color: oklch(1 0 0 / 0.6); }
.mock-route { position: relative; margin-top: 22px; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.mock-node { flex-shrink: 0; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mock-node em { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: #fff; background: oklch(1 0 0 / 0.14); border: 2px solid oklch(1 0 0 / 0.2); }
.mock-node.done em { background: var(--ruta-hecho); border-color: transparent; }
.mock-node.now em { background: var(--ruta-actual); border-color: transparent; box-shadow: 0 0 0 5px oklch(0.7 0.17 55 / 0.25); }
.mock-node span { font-size: 0.58rem; color: oklch(1 0 0 / 0.55); font-weight: 700; }
.mock-cards { position: relative; margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card { background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.12); border-radius: var(--radius-md); padding: 14px 10px; text-align: center; }
.mock-card svg { width: 26px; height: 26px; margin-inline: auto; }
.mock-card strong { display: block; margin-top: 8px; font-size: 0.72rem; color: #fff; }
.mock-card span { font-size: 0.62rem; color: oklch(1 0 0 / 0.6); }
.mock-foot { position: relative; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; background: oklch(1 0 0 / 0.06); border-radius: var(--radius-md); padding: 12px 14px; }
.mock-foot .streakline { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 0.8rem; font-weight: 700; }
.mock-foot .pct { color: var(--ruta-hecho); font-family: var(--font-display); font-weight: 800; }
.mock-caption { margin-top: 16px; font-size: 0.74rem; color: var(--muted-foreground); text-align: center; }

/* ================= Cursos (carrusel) ================= */
.courses { background: var(--background); }
.courses-carousel-wrap { position: relative; }
.courses-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  /* Safari a veces aplica "smooth" también a los cambios directos de scrollLeft,
     no solo a scrollBy/scrollIntoView — eso hace que cada micro-paso del
     auto-desplazamiento se cancele con el siguiente antes de notarse. Forzamos
     "auto" (instantáneo) aquí; los botones siguen pidiendo scroll suave ellos
     mismos vía scrollBy({behavior:"smooth"}) en el JS. */
  scroll-behavior: auto;
  /* Sin scroll-snap: compite con el auto-desplazamiento continuo y lo frena en seco. */
  padding: 6px 6px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  cursor: grab;
  /* Sin restringir touch-action: así el navegador deja pasar el swipe horizontal
     del dedo hacia el scroll nativo del carrusel (antes "pan-y" se lo bloqueaba). */
}
.courses-carousel.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.courses-carousel.is-dragging .course-card { pointer-events: none; }
.courses-carousel::-webkit-scrollbar { height: 8px; }
.courses-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.course-card {
  flex: 0 0 auto;
  width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.course-card.is-live { border-color: oklch(0.62 0.14 155 / 0.4); }
.course-card.is-next { border-color: var(--accent); }
.course-status {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.status-live { background: oklch(0.62 0.14 155 / 0.15); color: oklch(0.34 0.1 155); }
.status-next { background: var(--gradient-eco); color: var(--accent-foreground); }
.status-soon { background: var(--muted); color: var(--muted-foreground); }
.course-icon { font-size: 2.1rem; margin-top: 16px; }
.course-card h3 { margin-top: 12px; font-size: 1.05rem; line-height: 1.3; }
.course-card p { margin-top: 10px; font-size: 0.87rem; line-height: 1.55; color: var(--muted-foreground); flex: 1; }
.course-meta { margin-top: 14px; font-size: 0.74rem; font-weight: 700; color: var(--primary); }
.course-card-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 8px 16px;
  background: var(--primary); color: #fff;
  font-size: 0.82rem; font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out), background 0.2s;
  /* El dedo puede rozar el carrusel al tocar el botón; esto le dice al
     navegador que priorice el tap sobre el gesto de scroll/zoom aquí. */
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}
.course-card-link:hover, .course-card:hover .course-card-link { box-shadow: var(--shadow-lift); }
.course-card-link span { display: inline-block; transition: transform 0.2s var(--ease-out); }
.course-card-link:hover span, .course-card:hover .course-card-link span { transform: translateX(3px); }
.courses-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: -8px; }
.courses-nav-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--foreground);
  display: grid; place-items: center; transition: background 0.2s, border-color 0.2s;
}
.courses-nav-btn:hover { background: var(--secondary); border-color: var(--primary); }
.courses-nav-btn svg { width: 18px; height: 18px; }
.courses-note { margin-top: 28px; text-align: center; font-size: 0.82rem; color: var(--muted-foreground); }

/* ================= Manifiesto ================= */
.manifesto { background: var(--secondary); }
.manifesto-inner { max-width: 740px; margin-inline: auto; text-align: center; }
.manifesto-inner h2 { margin-top: 18px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.manifesto-inner p { margin-top: 20px; font-size: 1.05rem; line-height: 1.75; color: var(--foreground); text-align: left; }
.manifesto-inner p em { font-style: italic; color: var(--primary); }
.manifesto-quote {
  margin: 40px auto 0; padding: 0; max-width: 520px;
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic; font-weight: 600;
  color: var(--marino); line-height: 1.45;
}
.manifesto-quote cite {
  display: block; margin-top: 14px; font-family: var(--font-sans); font-style: normal;
  font-size: 0.82rem; font-weight: 700; color: var(--muted-foreground);
}
.manifesto-toggle { display: none; }

/* En móvil el manifiesto es demasiado texto para caber en la pantalla de
   un vistazo — se colapsa tras el primer párrafo con un "Leer más" en vez
   de mostrar las 4 fajas de texto seguidas. */
@media (max-width: 680px) {
  .manifesto { padding-block: 48px; }
  .manifesto-inner p { margin-top: 14px; font-size: 1rem; line-height: 1.65; }
  .manifesto-quote { margin-top: 28px; font-size: 1.15rem; }
  .manifesto-collapse {
    position: relative;
    max-height: 90px;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .manifesto-collapse::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 52px;
    background: linear-gradient(to bottom, transparent, var(--secondary));
    pointer-events: none;
  }
  .manifesto-collapse.is-expanded { max-height: 2000px; }
  .manifesto-collapse.is-expanded::after { display: none; }
  .manifesto-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 18px; padding: 0; border: none; background: none;
    font-family: var(--font-sans); font-weight: 700; font-size: 0.92rem;
    color: var(--primary); cursor: pointer;
  }
  .manifesto-toggle svg { transition: transform 0.25s ease; }
  .manifesto-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
}

/* ================= Foto: para quién lo construimos ================= */
.photo-banner { background: var(--background); }
.photo-banner-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .photo-banner-grid { grid-template-columns: 1.05fr 0.95fr; } }
.photo-banner-media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 3 / 2; object-fit: cover;
}
.photo-banner-copy h2 { margin-top: 14px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.18; }
.photo-banner-copy p { margin-top: 16px; font-size: 1rem; line-height: 1.65; color: var(--muted-foreground); }

/* ================= Beneficios ================= */
.benefits { background: var(--secondary); }
.benefits-head { display: grid; gap: 36px; align-items: end; margin-bottom: 48px; }
@media (min-width: 900px) { .benefits-head { grid-template-columns: 1.3fr 1fr; } }
.benefits-head-media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.benefits-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.benefit-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.benefit-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gradient-hero);
  display: grid; place-items: center; color: #fff;
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card h3 { margin-top: 18px; font-size: 1.05rem; }
.benefit-card p { margin-top: 8px; font-size: 0.88rem; line-height: 1.55; color: var(--muted-foreground); }

/* ================= Testimonios ================= */
.testi { background: var(--background); }
.testi-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 18px;
}
.testi-stars { display: flex; gap: 3px; color: var(--accent); }
.testi-stars svg { width: 16px; height: 16px; }
.testi-card blockquote { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--foreground); font-style: normal; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gradient-hero); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.testi-person strong { display: block; font-size: 0.88rem; }
.testi-person span { font-size: 0.76rem; color: var(--muted-foreground); }
.testi-note { margin-top: 28px; font-size: 0.76rem; color: var(--muted-foreground); text-align: center; }

/* ================= Precios ================= */
.pricing { background: var(--marino); color: #fff; position: relative; overflow: hidden; }
.pricing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 0%, oklch(0.78 0.16 65 / 0.16), transparent 70%); }
.pricing .section-head h2, .pricing .section-head .eyebrow { color: #fff; }
.pricing .section-head p { color: oklch(1 0 0 / 0.72); }
.pricing-grid { position: relative; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan {
  background: oklch(1 0 0 / 0.06);
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease-out), background 0.35s;
  display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-8px); background: oklch(1 0 0 / 0.09); }
.plan.is-featured { border-color: var(--accent); background: oklch(1 0 0 / 0.1); box-shadow: var(--shadow-lift-lg); }
.plan-tag { align-self: flex-start; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; background: var(--gradient-eco); color: var(--accent-foreground); padding: 5px 12px; border-radius: 999px; }
.plan h3 { margin-top: 18px; font-size: 1.15rem; color: #fff; }
.plan .range { font-size: 0.8rem; color: oklch(1 0 0 / 0.6); margin-top: 4px; }
.plan .price { margin-top: 22px; display: flex; align-items: baseline; gap: 8px; }
.plan .price strong { font-family: var(--font-display); font-size: 2.4rem; }
.plan .price span { font-size: 0.85rem; color: oklch(1 0 0 / 0.65); }
.plan .per-user { margin-top: 4px; font-size: 0.76rem; color: oklch(1 0 0 / 0.55); }
.plan ul { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 0.86rem; color: oklch(1 0 0 / 0.88); }
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.plan .btn { margin-top: 26px; }
.pricing-foot { position: relative; margin-top: 40px; text-align: center; font-size: 0.85rem; color: oklch(1 0 0 / 0.72); }
.pricing-foot strong { color: #fff; }

/* ---------- Calculadora de precio ---------- */
.pricing-calc {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  background: oklch(1 0 0 / 0.06);
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 20px;
}
.pricing-launch-badge {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.03em;
  background: var(--gradient-eco); color: var(--accent-foreground);
  padding: 6px 14px; border-radius: 999px;
}
.pricing-calc-body {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pricing-calc-body { grid-template-columns: 1.1fr 1fr; align-items: center; }
}
.pricing-calc-input label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: oklch(1 0 0 / 0.75); margin-bottom: 8px;
}
.pricing-calc-input input[type="number"] {
  width: 100%; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: #fff; background: oklch(1 0 0 / 0.08); border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 12px;
}
.pricing-calc-input input[type="range"] {
  width: 100%; accent-color: var(--accent);
}
.pricing-calc-result {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.pricing-calc-stat { display: flex; flex-direction: column; gap: 4px; }
.pricing-calc-stat span { font-size: 0.76rem; color: oklch(1 0 0 / 0.62); }
.pricing-calc-stat strong { font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.pricing-calc-note { font-size: 0.82rem; color: oklch(1 0 0 / 0.65); }

/* ---------- Tabla de tarifas ---------- */
.pricing-table-wrap { margin-top: 32px; overflow-x: auto; }
.pricing-table {
  width: 100%; max-width: 620px; margin-inline: auto;
  border-collapse: collapse; font-size: 0.88rem;
}
.pricing-table th, .pricing-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.pricing-table th { color: oklch(1 0 0 / 0.6); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-table td:last-child, .pricing-table th:last-child { text-align: right; }
.pricing-table td { color: oklch(1 0 0 / 0.9); }
.pricing-table tr.is-current { background: oklch(1 0 0 / 0.08); }
.pricing-table tr.is-current td { color: #fff; font-weight: 700; }

/* ================= Contacto ================= */
.contact { background: var(--background); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-info h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.14; }
.contact-info p { margin-top: 16px; font-size: 1rem; line-height: 1.65; color: var(--muted-foreground); }
.contact-points { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-point { display: flex; gap: 14px; }
.contact-point .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--secondary); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-point .ic svg { width: 20px; height: 20px; }
.contact-point strong { display: block; font-size: 0.92rem; }
.contact-point span { font-size: 0.85rem; color: var(--muted-foreground); }

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lift);
}
.form-row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { margin-top: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--background); color: var(--foreground);
  font: inherit; font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.44 0.145 255 / 0.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.contact-card .btn { margin-top: 22px; }
.form-note { margin-top: 14px; font-size: 0.76rem; color: var(--muted-foreground); text-align: center; }
.form-success {
  display: none; align-items: center; gap: 12px; margin-top: 16px;
  background: oklch(0.62 0.14 155 / 0.12); color: oklch(0.34 0.1 155);
  border: 1px solid oklch(0.62 0.14 155 / 0.35); border-radius: var(--radius-md); padding: 14px 16px; font-size: 0.85rem; font-weight: 600;
}
.form-success.is-shown { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

.form-error {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  background: oklch(0.58 0.22 27 / 0.1); color: oklch(0.5 0.19 27);
  border: 1px solid oklch(0.58 0.22 27 / 0.3); border-radius: var(--radius-md); padding: 14px 16px; font-size: 0.85rem; font-weight: 600;
}
.form-error[hidden] { display: none; }
.form-error svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Trampa para bots: presente en el DOM y accesible por tabulación evitada,
   pero invisible y fuera del flujo para una persona real. */
.field-honeypot {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ================= CTA final ================= */
.final-cta { position: relative; background: var(--gradient-hero); color: #fff; padding-block: 90px; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(45% 60% at 20% 100%, var(--hero-mesh-2), transparent 70%), radial-gradient(45% 60% at 85% 0%, var(--hero-mesh-3), transparent 70%); }
.final-cta-inner { position: relative; text-align: center; max-width: 720px; margin-inline: auto; }
.final-cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; color: #fff; }
.final-cta p { margin-top: 16px; font-size: 1.02rem; color: oklch(1 0 0 / 0.85); }
.final-cta .hero-actions { justify-content: center; margin-top: 32px; }

/* ================= Footer ================= */
.footer { background: var(--ink-900); color: oklch(1 0 0 / 0.6); padding-block: 56px 28px; }
/* minmax(0, ...) en vez de solo "1fr": una columna de grid sin esto tiene un
   mínimo implícito igual al min-content de su contenido (aquí, el correo sin
   espacios) — el grid nunca se encoge más allá de eso y desborda la página
   entera en móvil, aunque el contenido individual ya pueda partirse. */
.footer-top { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 780px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-about { margin-top: 14px; font-size: 0.85rem; line-height: 1.6; max-width: 32ch; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 800; }
.footer-col ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
/* overflow-wrap: el correo (una sola palabra sin espacios) es más ancho que
   la columna del footer a 375px — sin esto empuja todo el documento a
   desbordar horizontalmente en móvil. */
.footer-col a { font-size: 0.86rem; transition: color 0.2s; overflow-wrap: break-word; }
.footer-col a:hover { color: #fff; }
.footer-legal-id { margin-top: 16px; font-size: 0.76rem; line-height: 1.6; color: oklch(1 0 0 / 0.4); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid oklch(1 0 0 / 0.1); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal-links a, .footer-legal-link-btn {
  font-size: 0.78rem; color: oklch(1 0 0 / 0.6); background: none; border: none; padding: 0;
  font-family: inherit; transition: color 0.2s;
}
.footer-legal-links a:hover, .footer-legal-link-btn:hover { color: #fff; text-decoration: underline; cursor: pointer; }
.footer-note { margin-top: 18px; font-size: 0.74rem; color: oklch(1 0 0 / 0.4); }

/* ================= Banner de cookies ================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--ink-900);
  border-top: 1px solid oklch(1 0 0 / 0.14);
  padding: 20px 0;
  animation: cookie-in 0.4s var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-inner {
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between;
}
.cookie-banner-inner p { flex: 1 1 320px; font-size: 0.85rem; line-height: 1.55; color: oklch(1 0 0 / 0.75); }
.cookie-banner-inner p a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 10px 22px; font-size: 0.85rem; }
.cookie-banner-actions .btn-outline { color: #fff; border-color: oklch(1 0 0 / 0.3); }

/* ================= Páginas legales ================= */
.legal-hero { background: var(--marino); color: #fff; padding: 150px 0 56px; }
.legal-hero .eyebrow { color: oklch(0.86 0.14 85); }
.legal-hero h1 { margin-top: 14px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: #fff; }
.legal-hero p { margin-top: 12px; color: oklch(1 0 0 / 0.7); font-size: 0.9rem; }
.legal-body { padding-block: 56px 96px; }
.legal-prose { max-width: 780px; margin-inline: auto; }
.legal-prose h2 { font-size: 1.3rem; margin-top: 44px; padding-top: 4px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 { font-size: 1.05rem; margin-top: 28px; }
.legal-prose p { margin-top: 14px; font-size: 0.95rem; line-height: 1.7; color: var(--muted-foreground); }
.legal-prose ul, .legal-prose ol { margin-top: 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-prose li { font-size: 0.95rem; line-height: 1.65; color: var(--muted-foreground); }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose a { color: var(--primary); text-decoration: underline; }
.legal-prose strong { color: var(--foreground); }
.legal-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table th { background: var(--secondary); font-weight: 700; color: var(--secondary-foreground); white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: none; }

/* ================= Página de detalle de curso ================= */
/* El hero de curso se diferencia a propósito del hero de home: no es el
   mismo gradiente de marca -- es la foto real del curso, con una franja
   de acento arriba y texto a una sola columna (formato editorial, no
   "landing de llegada"). Así se nota, sin decirlo, que es otro espacio
   del sitio -- y de paso se ve mejor con contenido real en vez de un
   fondo abstracto repetido. */
.course-hero {
  padding-top: 136px;
  padding-bottom: 88px;
  border-top: 4px solid var(--accent);
  background-image:
    linear-gradient(180deg, oklch(0.16 0.04 258 / 0.5) 0%, oklch(0.16 0.04 258 / 0.9) 100%),
    url("assets/img/curso-escucha-activa.webp");
  background-size: cover;
  background-position: center 30%;
}
.course-hero::before,
.course-hero::after { display: none; }
@media (min-width: 1040px) {
  .course-hero .hero-grid { grid-template-columns: 1fr; max-width: 640px; }
}

.course-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; font-weight: 600; color: oklch(1 0 0 / 0.6);
  margin-bottom: 20px;
}
.course-breadcrumb a { color: oklch(1 0 0 / 0.6); text-decoration: none; }
.course-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.course-breadcrumb span[aria-hidden] { opacity: 0.45; }
.course-breadcrumb strong { color: #fff; font-weight: 700; }

.course-hero-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.85rem; color: oklch(1 0 0 / 0.85); }
.course-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.course-hero .hero-actions { margin-top: 30px; }

.temario-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.temario-badges span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 700; color: var(--primary);
  background: var(--card); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 999px;
}

/* Tarjetas-ícono compactas: densidad de un listado, peso visual de una
   tarjeta -- para "lo que se aprende" y "qué recibe la empresa". */
.outcome-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-width: 900px; margin: 0 auto; }
.outcome-grid-wide { max-width: 800px; }
.outcome-tile {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.outcome-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.outcome-tile-detailed { align-items: flex-start; }
.outcome-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient-hero); display: grid; place-items: center; font-size: 1.15rem;
}
.outcome-tile p { font-size: 0.9rem; font-weight: 700; line-height: 1.3; color: var(--foreground); }
.outcome-tile p span { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 500; line-height: 1.45; color: var(--muted-foreground); }

/* Metodología como flujo, no como texto plano. */
.method-flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 30px; }
.method-step {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 20px 10px 10px; box-shadow: var(--shadow-card);
  font-size: 0.85rem; font-weight: 700; color: var(--foreground);
}
.method-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gradient-eco); color: var(--accent-foreground);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
}
.method-arrow { color: var(--border); font-size: 1.3rem; }
@media (max-width: 720px) { .method-arrow { display: none; } }

/* Temario: vista previa compacta (siempre visible) + detalle completo
   detrás de un toggle -- nunca se muestra el temario completo de una. */
.temario-preview { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 32px; }
.temario-preview-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; text-align: center; }
.temario-preview-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  display: grid; place-items: center; font-size: 1.4rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.temario-preview-item:hover .temario-preview-icon { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.temario-preview-item span:last-child { font-size: 0.72rem; font-weight: 700; color: var(--muted-foreground); line-height: 1.25; }
.temario-full-toggle {
  display: flex; align-items: center; gap: 8px; width: fit-content; margin: 30px auto 0;
  background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 22px; font-family: var(--font-sans); font-weight: 700; font-size: 0.85rem;
  color: var(--primary); cursor: pointer;
}
.temario-full-toggle svg { transition: transform 0.25s ease; }
.temario-full-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Cada módulo se expande individualmente para mostrar una descripción
   corta (2 frases) -- a propósito NO el desglose nivel por nivel: eso
   es demasiado para esta página (ver de qué va, no cursarlo desde acá).
   Sin motion de scroll (ver initScrollSpotlightAndTilt en main.js): son
   filas de un acordeón, no protagonistas de un carrusel. */
.syllabus-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; background: none; border: none; padding: 0; margin: 0;
  font-family: var(--font-sans); text-align: left; cursor: pointer;
}
.syllabus-row-text { min-width: 0; }
.syllabus-row-chevron { flex-shrink: 0; color: var(--muted-foreground); transition: transform 0.25s ease; }
.syllabus-row[aria-expanded="true"] .syllabus-row-chevron { transform: rotate(180deg); }
.syllabus-desc { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.syllabus-desc p { font-size: 0.85rem; line-height: 1.6; color: var(--muted-foreground); }
.course-hero-media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}

.syllabus { max-width: 780px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 16px; }
/* El "display: flex" de arriba es una regla de autor y le gana al
   "[hidden] { display: none }" del navegador (que es de origen
   user-agent) sin importar el orden -- por eso hacía falta esta regla
   explícita, más específica, para que el atributo hidden sí oculte
   el temario completo cuando el toggle lo colapsa. */
.syllabus[hidden] { display: none; }
/* Las tarjetas del temario son más altas que las de metodología (título
   más largo + párrafo de 2-3 líneas), así que la misma escala del efecto
   de scroll genera más superposición en píxeles reales -- se ven
   "pegadas" en vertical, a diferencia de las más cortas de "cómo funciona".
   Más separación en móvil (una sola columna, más obvio) compensa eso. */
@media (max-width: 680px) {
  .syllabus { gap: 40px; }
}
.syllabus-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.syllabus-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.syllabus-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-eco); color: var(--accent-foreground);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.syllabus-item h3 { font-size: 1rem; line-height: 1.35; }
.syllabus-item h3 .syllabus-icon { margin-right: 6px; }
.syllabus-item p { margin-top: 8px; font-size: 0.88rem; line-height: 1.55; color: var(--muted-foreground); }
.syllabus-meta { display: inline-block; margin-top: 10px; font-size: 0.72rem; font-weight: 700; color: var(--primary); }

.check-list { max-width: 640px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; font-size: 0.95rem; color: var(--foreground); }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--success); margin-top: 2px; }
.check-list li > span:first-child { flex-shrink: 0; width: 22px; text-align: center; font-size: 1.05rem; line-height: 1.4; }

.course-price-box { max-width: 540px; margin: 32px auto 0; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 36px 32px; }
.course-price { margin-top: 10px; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.course-price strong { font-family: var(--font-display); font-size: 2.6rem; color: var(--primary); }
.course-price span { font-size: 0.85rem; color: var(--muted-foreground); }
.course-price-box > p { margin-top: 14px; font-size: 0.85rem; color: var(--muted-foreground); }

.course-price-calc { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--border); text-align: left; }
.course-price-calc label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--foreground); margin-bottom: 8px; }
.course-price-calc input[type="number"] {
  width: 100%; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--foreground); background: var(--secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 12px;
}
.course-price-calc input[type="range"] { width: 100%; accent-color: var(--primary); }
.course-price-calc-result { margin-top: 18px; display: flex; gap: 28px; flex-wrap: wrap; }
.course-price-calc-result div { display: flex; flex-direction: column; gap: 4px; }
.course-price-calc-result span { font-size: 0.74rem; color: var(--muted-foreground); }
.course-price-calc-result strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary); }
.course-price-calc-note { margin-top: 12px; font-size: 0.78rem; color: var(--muted-foreground); }

.course-price-toggle {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; font-family: var(--font-sans);
  font-weight: 700; font-size: 0.85rem; color: var(--primary); cursor: pointer;
}
.course-price-toggle svg { transition: transform 0.25s ease; }
.course-price-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.course-price-table-wrap { margin-top: 18px; text-align: left; overflow-x: auto; }
.course-price-table-wrap table { margin-top: 0; }
.course-price-fineprint { margin-top: 14px; font-size: 0.78rem; color: var(--muted-foreground); }
.course-price-table-wrap tr.is-current { background: var(--secondary); }
.course-price-table-wrap tr.is-current td { color: var(--primary); font-weight: 700; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-size: 0.88rem; font-weight: 700; color: var(--primary); }

/* ================= Utilidades ================= */
.text-primary { color: var(--primary); }
.mt-scroll-offset { scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-panel-badge { animation: none !important; }
}
