/* Design Expert Academy — estilo "Reel": el color y el ritmo de los videos en redes.
   Títulos en Bricolage Grotesque, texto en Archivo (la letra de los videos).
   Colores del logo: ciruela (la D) y naranja (la E), más el azul claro del destello. */

/* Respaldos con métricas medidas (fontTools): reducen el salto de texto mientras cargan las fuentes. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 98.3%;
  ascent-override: 89.3%;
  descent-override: 21.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold");
  font-weight: 600 900;
  size-adjust: 94.7%;
  ascent-override: 98.2%;
  descent-override: 28.5%;
  line-gap-override: 0%;
}

:root {
  --ink: #2b2226;          /* texto */
  --plum: #382d32;         /* la D del logo */
  --plum-2: #4a3d44;       /* superficies sobre ciruela */
  --muted: #5f5359;        /* texto secundario sobre blanco (7,3:1) */
  --orange: #c6450e;       /* la E del logo: botones (4,9:1 con blanco) */
  --orange-deep: #a8390a;  /* hover */
  --orange-press: #8f3009; /* presionado */
  --orange-ink: #b03d0c;   /* texto naranja sobre blanco (6:1) */
  --orange-light: #f6b498; /* acento sobre ciruela (7,5:1) */
  --orange-tint: #fdede5;
  --sky: #d8eafc;          /* el destello azul del logo */
  --sky-ink: #1f4e7a;      /* texto sobre azul claro (7:1) */
  --paper: #ffffff;
  --soft: #f3eff1;
  --line: #e8e2e4;         /* divisores (decorativos) */
  --line-strong: #8c8287;  /* bordes de controles (3,7:1) */
  --error: #b42318;
  --dark-muted: #e3d6dc;   /* texto secundario sobre ciruela (9,4:1) */
  --dark-line: #8d7b84;
  /* Alias que usan calc.css y registro.css */
  --plum-soft: var(--muted);
  --sheet: var(--soft);
  --font: "Archivo", "Archivo Fallback", "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Bricolage Fallback", "Archivo", "Segoe UI", Arial, sans-serif;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --max: 1232px;
  --radius: 14px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --header-h: 80px;
  --z-header: 30;
  --z-skip: 100;
  --dur: 180ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 767px) { :root { --header-h: 68px; --gutter: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px)); } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--font); }
img, svg { max-width: 100%; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  margin: 0; color: inherit; text-wrap: balance;
}
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--orange-light); }
.on-orange :focus-visible { outline-color: var(--paper); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: var(--z-skip);
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.container {
  width: 100%;
  max-width: calc(var(--max) + 48px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Movimiento: pausa manual (WCAG 2.2.2) y respeto a "reducir movimiento" */
.motion-paused *, .motion-paused *::before, .motion-paused *::after,
.anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--orange);
  background: var(--orange); color: var(--paper); font: 700 18px/1.1 var(--font);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--paper); }
.btn:active { background: var(--orange-press); border-color: var(--orange-press); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover, .btn-line:active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-white { background: var(--paper); border-color: var(--paper); color: var(--plum); }
.btn-white:hover, .btn-white:active { background: var(--orange-light); border-color: var(--orange-light); color: var(--plum); }
.btn-dark { background: var(--plum); border-color: var(--plum); color: var(--paper); }
.btn-dark:hover, .btn-dark:active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(1px); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) {
  .btn { padding: 0 20px; font-size: 17px; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .calc-copy > .btn, .consult > .btn, .cta-block .btn, .courses-foot .btn { width: 100%; }
}

.link-strong {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--orange-ink); text-decoration: underline; text-decoration-thickness: 2px;
}
.link-strong:hover { color: var(--orange-deep); }

/* Encabezado */
.site-header {
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: var(--z-header);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 48px; }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; display: block; flex: none; }
.brand span { font: 800 20px/1 var(--display); letter-spacing: -0.02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: 16px; border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.site-nav a:hover { color: var(--orange-ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav .nav-cta a {
  background: var(--orange); color: var(--paper); border: 2px solid var(--orange);
  padding: 0 22px; min-height: 48px; border-radius: 999px; font-weight: 700;
}
.site-nav .nav-cta a:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--paper); }
.site-nav .nav-cta a[aria-current="page"] { background: var(--plum); border-color: var(--plum); }
.nav-toggle { display: none; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-nav ul { gap: 16px; }
  .site-nav a { font-size: 15px; }
  .site-nav .nav-cta a { padding: 0 18px; }
  .brand span { font-size: 18px; white-space: nowrap; }
}

@media (max-width: 1023px) {
  .site-header .container { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; padding-bottom: 12px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { display: flex; padding: 6px 0; min-height: 56px; border-bottom: 1px solid var(--line); font: 800 24px/1.1 var(--display); letter-spacing: -0.02em; }
  .site-nav .nav-cta { padding-top: 18px; }
  .site-nav .nav-cta a { justify-content: center; font: 700 18px/1 var(--font); letter-spacing: 0; border-bottom: 2px solid var(--orange); }
  .js .site-header .container { flex-wrap: nowrap; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
    min-height: 46px; padding: 8px 16px; font: 700 17px/1 var(--font); cursor: pointer;
    transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  }
  .js .nav-toggle:hover { background: var(--ink); color: var(--paper); }
  .js .nav-toggle svg { flex: none; width: 18px; height: 18px; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 22px var(--gutter);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 18px 28px -20px rgba(43, 34, 38, .45);
  }
  .js .site-nav.is-open { display: block; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .js .site-nav.is-open { animation: nav-in 180ms var(--ease-out); }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 18px; }
}

/* Secciones */
.section { padding-block: 44px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(40px, 5vw, 72px); line-height: .95; letter-spacing: -0.04em; max-width: 16ch; }
.section-head p { font-size: 18px; color: var(--muted); max-width: 32em; }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: 48px; } }
@media (max-width: 767px) { .section { padding-block: 32px; } .section-head { margin-bottom: 28px; } }

/* Inicio: título con píldora animada y celulares */
.hero { padding-block: 32px 56px; overflow-x: clip; }
.hero h1 { font-size: clamp(48px, 8.4vw, 132px); line-height: .92; letter-spacing: -0.045em; }
.hero-pill {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 1.7em; height: .8em; margin: 0 .04em; border-radius: 999px; background: var(--plum); overflow: hidden;
}
.hero-pill svg { height: 82%; width: auto; display: block; }
.hero-row { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; margin-top: 44px; }
.reels { flex: 1 1 600px; min-width: 0; position: relative; display: flex; justify-content: center; gap: 18px; padding: 30px 0 34px; }
.reel-tilt { flex: none; }
.reel-tilt:nth-child(1) { transform: rotate(-5deg); }
.reel-tilt:nth-child(2) { transform: rotate(2deg) translateY(-18px); }
.reel-tilt:nth-child(3) { transform: rotate(6deg); }
.reel {
  width: 210px; height: 400px; border-radius: 34px; border: 6px solid var(--ink); overflow: hidden;
  display: flex; flex-direction: column; animation: bob 3.2s ease-in-out infinite;
}
.reel-tilt:nth-child(2) .reel { animation-delay: -1s; }
.reel-tilt:nth-child(3) .reel { animation-delay: -2s; }
.reel-bars { display: flex; gap: 4px; padding: 14px 14px 0; }
.reel-bars span { flex: 1; height: 3px; border-radius: 2px; position: relative; overflow: hidden; display: block; }
.reel-bars span::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .35; }
.reel-bars span.done::before { opacity: 1; }
.reel-bars span i { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; animation: seg 6s linear infinite; }
.reel-scene { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.reel-scene svg { height: 88%; width: auto; display: block; }
.reel-cap { margin: 0; padding: 0 16px 20px; font: 700 19px/1.15 var(--display); letter-spacing: -0.01em; }
.reel--plum { background: var(--plum); color: var(--paper); }
.reel--orange { background: var(--orange); color: var(--paper); }
.reel--sky { background: var(--sky); color: var(--ink); }
.reel--peach { background: var(--orange-light); color: var(--ink); }
.sticker {
  position: absolute; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap;
}
.sticker--a { left: 2%; top: 4px; transform: rotate(-7deg); background: var(--sky); color: var(--sky-ink); }
.sticker--b { right: 4%; bottom: 0; transform: rotate(8deg); background: var(--orange-light); color: var(--ink); }
.hero-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-copy .intro { font-size: 21px; line-height: 1.5; color: var(--muted); }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--soft); color: var(--ink);
  font: 600 15px/1 var(--font); cursor: pointer; transition: background-color var(--dur) var(--ease-out);
}
.motion-toggle:hover { background: var(--line); }
.motion-toggle svg { width: 16px; height: 16px; flex: none; }
html:not(.js) .motion-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
@media (max-width: 760px) { .reel-tilt:nth-child(3) { display: none; } }
@media (max-width: 360px) {
  .reel { width: 128px !important; height: 246px !important; }
  .reel-cap { font-size: 14px !important; }
}
@media (max-width: 560px) {
  .reels { gap: 12px; padding: 34px 0 40px; }
  .reel { width: 148px; height: 284px; border-width: 5px; border-radius: 26px; }
  .reel-cap { font-size: 15px; padding: 0 12px 14px; }
  .reel-bars { padding: 10px 10px 0; }
  .sticker { font-size: 14px; padding: 8px 12px; }
  .sticker--a { left: 0; top: 2px; }
  .sticker--b { right: 0; }
  .hero-copy .intro { font-size: 19px; }
}

/* Redes: tarjetas con el usuario de cada cuenta */
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 16px;
  border-radius: 18px; background: var(--soft); color: var(--ink); text-decoration: none; line-height: 1.25;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.socials a:hover { background: var(--ink); color: var(--paper); }
.socials strong { font-size: 16px; }
.socials span { font-size: 14px; }

/* Cinta de temas */
.ticker { overflow-x: clip; padding-block: 28px; }
.ticker-band { background: var(--orange); transform: rotate(-2deg); width: 106%; margin-left: -3%; padding-block: 18px; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker-track p {
  display: flex; align-items: center; gap: 28px; padding-right: 28px; margin: 0; white-space: nowrap;
  color: var(--paper); font: 800 clamp(28px, 3.6vw, 48px)/1.1 var(--display); letter-spacing: -0.03em;
}
.ticker-track i { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); flex: none; }

/* Lo que hacemos: bloques de color */
.blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 560px) { .blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .blocks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.block {
  min-height: 360px; border-radius: 30px; padding: 28px; position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: transform .25s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) { .block:hover { transform: translateY(-4px) rotate(-.4deg); } }
.block h3 { font-size: 32px; line-height: 1; }
.block p { font-size: 17px; }
.block-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.block-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 17px; text-decoration: underline; }
.block--plum { background: var(--plum); color: var(--paper); }
.block--plum p { color: var(--dark-muted); }
.block--plum .block-link { color: var(--orange-light); }
.block--orange { background: var(--orange); color: var(--paper); }
.block--orange .block-link, .block--orange .block-link:hover { color: var(--paper); }
.block--sky { background: var(--sky); color: var(--ink); }
.block--sky p { color: #3d3338; }
.block--sky .block-link { color: var(--sky-ink); }
.block--line { background: var(--paper); border: 2px solid var(--ink); }
.block--line p { color: var(--muted); }
.block--line .block-link { color: var(--orange-ink); }
.block--peach { background: var(--orange-light); color: var(--ink); }
.block--peach p { color: #3d3338; }
.block--peach .block-link { color: var(--ink); }
.block .tag-soon { position: absolute; top: 24px; right: 20px; transform: rotate(6deg); }
/* Cinco frentes: tres arriba y dos más anchos abajo */
@media (min-width: 560px) and (max-width: 1099px) { .blocks--five .block:last-child { grid-column: 1 / -1; min-height: 0; } }
@media (min-width: 1100px) {
  .blocks--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .blocks--five .block { grid-column: span 2; min-height: 330px; }
  .blocks--five .block:nth-child(n+4) { grid-column: span 3; min-height: 280px; }
}
.tag-soon--light { background: var(--orange-light); border-color: var(--orange-light); align-self: flex-start; }
.tag-soon {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--paper);
  border: 2px solid var(--ink); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}

/* Contenido abierto: videos como reels */
.video-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin-inline: -4px; }
.video-row:focus-visible { outline-offset: 2px; }
.video-card {
  flex: 0 0 228px; height: 420px; scroll-snap-align: start; border-radius: 30px; border: 2px solid var(--ink);
  overflow: hidden; display: flex; flex-direction: column;
}
.video-card .reel-scene svg { height: 90%; }
.video-tag {
  align-self: flex-start; margin: 14px 14px 0; padding: 4px 10px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700;
}
.video-card h3 { font-size: 21px; line-height: 1.1; padding: 0 16px 8px; letter-spacing: -0.02em; }
/* Cada tarjeta abre su video en YouTube: el enlace del título cubre toda la tarjeta. */
.video-card { position: relative; }
.video-link { color: inherit; text-decoration: none; }
.video-link::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.video-link:focus-visible { outline: none; }
.video-card:has(.video-link:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.video-card:hover .video-link { text-decoration: underline; text-underline-offset: 3px; }
.video-play {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 18px; align-self: flex-start;
  font-size: 14px; font-weight: 700; line-height: 1.2; opacity: .9;
}
.video-play svg { width: 14px; height: 14px; }
.video-card--more { background: var(--ink); color: var(--paper); text-decoration: none; justify-content: space-between; }
.video-card--more:hover .more-body strong { text-decoration: underline; text-underline-offset: 3px; }
.video-card--more:focus-visible { outline-color: var(--orange); }
.more-body { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.more-body strong { font: 800 30px/1.02 var(--display); letter-spacing: -0.02em; }
.more-body span { font-size: 15px; color: var(--orange-light); }
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 32px 0 0; }
@media (min-width: 560px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillars > div { background: var(--soft); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pillars dt { font: 800 25px/1.05 var(--display); letter-spacing: -0.02em; }
.pillars dd { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pillars dd p { font-size: 16px; color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state--on { background: var(--orange-tint); color: var(--orange-ink); }
.state--soon { background: var(--sky); color: var(--sky-ink); }
.follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.follow-row > p { font-size: 17px; color: var(--muted); max-width: 30em; }

/* Calculadora en el inicio */
.calc-card {
  background: var(--plum); color: var(--paper); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center;
}
.calc-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.calc-copy h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: .95; letter-spacing: -0.04em; }
.calc-copy > p { font-size: 18px; color: var(--dark-muted); max-width: 32em; }
.stepper { display: flex; align-items: center; gap: 10px; background: var(--plum-2); border-radius: 999px; padding: 6px; }
.stepper button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--paper); color: var(--plum);
  font: 600 26px/1 var(--font); cursor: pointer; transition: background-color var(--dur) var(--ease-out);
}
.stepper button:hover { background: var(--orange-light); }
.stepper button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.stepper button[aria-disabled="true"]:hover { background: var(--paper); }
.stepper-value { min-width: 124px; text-align: center; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
html:not(.js) .stepper { display: none; }
.calc-result { display: flex; flex-direction: column; gap: 10px; }
.calc-result .calc-big { font: 800 clamp(64px, 8vw, 112px)/.9 var(--display); letter-spacing: -0.05em; color: var(--orange-light); font-variant-numeric: tabular-nums; }
.calc-result p { font-size: 18px; max-width: 32em; }
.calc-note { font-size: 15px; color: var(--dark-muted); max-width: 34em; }
.calc-note a { color: var(--orange-light); }
.calc-note a:hover { color: var(--paper); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.check-list svg { width: 22px; height: 22px; margin-top: 3px; }
.calc-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.calc-art svg { width: 100%; max-width: 380px; height: auto; display: block; }

/* Cursos */
.courses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.course { border: 2px solid var(--ink); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; background: var(--paper); }
.course-top { height: 84px; position: relative; background: var(--plum); }
.course:nth-child(6n+2) .course-top { background: var(--orange); }
.course:nth-child(6n+3) .course-top { background: var(--sky); }
.course:nth-child(6n+4) .course-top { background: var(--orange-light); }
.course:nth-child(6n+6) .course-top { background: var(--orange); }
.course .tag-soon { position: absolute; right: 16px; bottom: -14px; transform: rotate(-6deg); }
.course-body { padding: 28px 22px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course h3 { font-size: 25px; line-height: 1.05; letter-spacing: -0.02em; }
.course p { font-size: 16px; color: var(--muted); flex: 1; }
.courses-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.courses-foot p { font-size: 17px; color: var(--muted); max-width: 34em; }
@media (max-width: 767px) {
  .courses { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin-inline: -4px; }
  .course { flex: 0 0 min(280px, 82vw); scroll-snap-align: start; }
}

/* Consultoría */
.consult {
  background: var(--sky); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-end; justify-content: space-between;
}
.consult > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.consult h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: .95; letter-spacing: -0.04em; max-width: 15ch; }
.consult p { font-size: 18px; color: #3d3338; max-width: 34em; }
.services { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.services li { padding: 10px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); font-size: 16px; font-weight: 600; }

/* Llamado al registro con texto en movimiento */
.signup { padding-block: 56px 96px; overflow-x: clip; }
.signup-marquee { display: flex; width: max-content; animation: marquee-r 38s linear infinite; }
.signup-marquee p {
  display: flex; gap: 48px; margin: 0; padding-right: 48px; white-space: nowrap; font: 800 clamp(60px, 10vw, 150px)/1.05 var(--display);
  letter-spacing: -0.05em; color: var(--ink);
}
.signup-marquee span:nth-child(even) { color: var(--orange); }
.signup-box { max-width: 760px; margin: 28px auto 0; padding-inline: var(--gutter); text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.signup-box h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.03em; }
.signup-box p { font-size: 19px; color: var(--muted); }

/* Páginas internas */
.page-head { padding-block: 64px 40px; }
.page-head .container { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.page-head h1 { font-size: clamp(46px, 7.4vw, 112px); line-height: .92; letter-spacing: -0.045em; max-width: 15ch; }
.axis-rule { width: 104px; height: 12px; border-radius: 999px; background: var(--orange); }
@media (prefers-reduced-motion: no-preference) { .axis-rule { animation: rule-in .7s var(--ease-out) both; transform-origin: 0 50%; } }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: none; } }
.page-head .intro { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 38em; }

.prose { display: flex; flex-direction: column; gap: 18px; }
.prose > * { max-width: 42em; }
.prose h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.03em; margin-top: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 24px; margin-top: 10px; }
.prose p, .prose li { font-size: 18px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--orange-ink); }
.prose a { color: var(--orange-ink); }
.prose .meta { display: inline-flex; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 15px; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card { border-radius: 30px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h2 { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.03em; }
.card h3 { font-size: 28px; letter-spacing: -0.02em; }
.card p { font-size: 18px; }
.card--plum { background: var(--plum); color: var(--paper); }
.card--plum p { color: var(--dark-muted); }
.card--orange { background: var(--orange); color: var(--paper); }
.card--sky { background: var(--sky); }
.card--sky p { color: #3d3338; }
.card--peach { background: var(--orange-light); }
.card--peach p { color: #3d3338; }
.card--line { border: 2px solid var(--ink); }
.card--line p { color: var(--muted); }

.cta-block {
  background: var(--orange); color: var(--paper); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between;
}
.cta-block > div { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-block h2 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.04em; }
.cta-block p { font-size: 19px; max-width: 34em; }
.cta-block a:not(.btn) { color: var(--paper); }

main > .section:last-child { padding-bottom: 96px; }
.page-head .btn-row { margin-top: 6px; }
.page-head .motion-toggle { margin-top: 2px; }
.cta-block--plum { background: var(--plum); }
.cta-block--plum a:not(.btn) { color: var(--orange-light); }
.cta-block--plum p { color: var(--dark-muted); }
.socials--dark a { background: var(--plum-2); color: var(--paper); }
.socials--dark a:hover { background: var(--paper); color: var(--ink); }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 560px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service-grid .card { min-height: 280px; justify-content: flex-end; }
.service-grid .card h3 { font-size: 27px; line-height: 1.05; }
.card-icon { width: 64px; height: 64px; margin-bottom: auto; }
#construccion .courses-foot { margin-top: 24px; }
.story { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.story .prose { flex: 1 1 520px; min-width: 0; }
.story-art { flex: 0 1 300px; min-width: 0; position: relative; display: flex; justify-content: center; padding: 34px 0 10px; }
.story-art .reel { transform: rotate(4deg); }
.story-art, .story-art * { animation: none !important; }
.story-art .sticker--a { left: 0; top: 0; }

/* Pie */
.site-footer { background: var(--plum); color: var(--paper); padding-block: 56px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo span:first-child { width: 52px; height: 52px; border-radius: 16px; background: var(--paper); display: flex; align-items: center; justify-content: center; flex: none; }
.footer-logo img { width: 42px; height: 42px; display: block; }
.footer-logo strong { font: 800 21px/1.05 var(--display); letter-spacing: -0.02em; }
.footer-brand p { font-size: 16px; color: var(--dark-muted); max-width: 26em; }
.foot-title { font-size: 15px; font-weight: 700; color: var(--orange-light); margin-bottom: 4px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-footer a { color: var(--paper); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 16px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--orange-light); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 15px; color: var(--dark-muted); }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-grid > div:nth-child(2) { grid-column: 1 / -1; } }

/* Error 404 */
.notfound { padding-block: 96px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.notfound h1 { font-size: clamp(48px, 8vw, 120px); line-height: .92; letter-spacing: -0.045em; max-width: 12ch; }
.notfound p { font-size: 20px; color: var(--muted); max-width: 34em; }

@media (max-width: 767px) {
  body { font-size: 17px; }
  .block { min-height: 0; gap: 18px; padding: 24px; }
  .block > svg { width: 52px; height: 52px; }
  .block h3 { font-size: 28px; }
  .service-grid .card { min-height: 0; padding: 24px; }
  .card-icon { width: 52px; height: 52px; margin-bottom: 10px; }
  .calc-art svg { max-width: 260px; }
  .reels ~ .hero-copy .socials span, .follow-row .socials span { display: none; }
  .socials a { min-height: 48px; }
  .page-head { padding-block: 44px 28px; }
  .page-head .intro { font-size: 19px; }
}

/* Escenas animadas (videos, celulares y calculadora) */
.sc-sway { transform-box: view-box; transform-origin: 100px 210px; animation: sway 2.2s ease-in-out infinite alternate; }
.sc-sway-s { transform-box: view-box; transform-origin: 30px 40px; animation: sway 1.6s ease-in-out infinite alternate; }
.sc-fill { transform-box: fill-box; transform-origin: 50% 100%; animation: fillup 3.6s ease-in-out infinite; }
.sc-vib { animation: vib 1.8s ease-in-out infinite alternate; }
.sc-bub { animation: bub 2.4s ease-out infinite; }
.sc-bar { animation: bar 3.4s ease-in-out infinite; }
.sc-epoxy { transform-box: fill-box; transform-origin: 50% 100%; animation: epoxy 3.4s ease-in-out infinite; }
.sc-level { transform-box: fill-box; transform-origin: 0% 100%; animation: level 2.8s ease-in-out infinite alternate; }
.sc-foam { transform-box: fill-box; transform-origin: 50% 50%; animation: foam 2.8s ease-in-out infinite alternate; }
.sc-bubble { animation: bubble 2.8s ease-in-out infinite alternate; }
.sc-spin { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 3s linear infinite; }
.sc-spin-fast { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 1.6s linear infinite; }
.sc-ring { transform-box: fill-box; transform-origin: 50% 50%; animation: ring 2s ease-out infinite; }
.sc-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 2.4s ease-in-out infinite alternate; }
.sc-draw { stroke-dasharray: 240; animation: draw 3s ease-in-out infinite alternate; }
.sc-pour { stroke-dasharray: 10 10; animation: pour .8s linear infinite; }
.sc-trolley { animation: trolley 3s ease-in-out infinite alternate; }
.sc-pile { transform-box: fill-box; transform-origin: 50% 100%; animation: pile 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes seg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes sway { from { transform: skewX(-7deg); } to { transform: skewX(7deg); } }
@keyframes fillup { 0% { transform: scaleY(0); } 35%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes vib { from { transform: translateY(0); } to { transform: translateY(34px); } }
@keyframes bub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-130px); opacity: 0; } }
@keyframes bar { 0%, 30% { transform: translateY(-62px); } 70%, 100% { transform: translateY(0); } }
@keyframes epoxy { 0% { transform: scaleY(0); } 28%, 100% { transform: scaleY(1); } }
@keyframes level { from { transform: rotate(7deg); } to { transform: rotate(0deg); } }
@keyframes foam { from { transform: scale(.25); } to { transform: scale(1); } }
@keyframes bubble { from { transform: translateX(20px); } to { transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes grow { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
@keyframes pour { to { stroke-dashoffset: -20; } }
@keyframes trolley { from { transform: translateX(-16px); } to { transform: translateX(4px); } }
@keyframes pile { 0% { transform: scaleY(.1); } 80%, 100% { transform: scaleY(1); } }
