/* ============================================================
   Atalaya - style.css
   Default tema: oscuro (azul #2b2d42 + lima #c7ef00).
   ============================================================ */

:root {
  --azul:   #2b2d42;
  --azul-2: #1f2133;
  --gris:   #8d99ae;
  --off:    #edf2f4;
  --verde:  #4cb944;
  --lima:   #c7ef00;
  --black:  #0a0b15;

  /* dark default */
  --bg:        var(--azul);
  --bg-soft:   var(--azul-2);
  --fg:        var(--off);
  --fg-soft:   var(--gris);
  --accent:    var(--lima);
  --divider:   rgba(237, 242, 244, 0.12);
  --card:      rgba(237, 242, 244, 0.04);
  --card-hi:   rgba(237, 242, 244, 0.08);

  --font-sans: 'Chivo', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'Chivo Mono', ui-monospace, SFMono-Regular, monospace;

  --pad-x: 24px;
  --pad-y: 56px;
  --maxw: 1280px;
}

:root.light {
  --bg:      var(--off);
  --bg-soft: #ffffff;
  --fg:      var(--azul);
  --fg-soft: #4a5168;
  --accent:  var(--azul);
  --divider: rgba(43, 45, 66, 0.12);
  --card:    rgba(43, 45, 66, 0.04);
  --card-hi: rgba(43, 45, 66, 0.08);
}

@media (min-width: 720px) {
  :root { --pad-x: 40px; --pad-y: 80px; }
}
@media (min-width: 1080px) {
  :root { --pad-x: 64px; --pad-y: 112px; }
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* scroll: handled by Lenis (see footer script). Fallback to native smooth if reduced motion. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }

::selection { background: var(--accent); color: var(--azul); }

/* typography helpers */
.mono { font-family: var(--font-mono); font-variation-settings: normal; }
.small { font-size: 13px; }
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

em { font-style: normal; color: var(--accent); }

strong { font-weight: 700; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--pad-x);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(43, 45, 66, 0) 100%);
  backdrop-filter: blur(2px);
}
:root.light .nav {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(237, 242, 244, 0) 100%);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  transition: color .2s, opacity .2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-mark {
  display: block;
  width: 132px;
  height: auto;
  shape-rendering: crispEdges;
}
@media (min-width: 700px) { .nav-mark { width: 156px; } }
.nav-cta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 8px 14px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: var(--card);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  padding: 110px var(--pad-x) 0;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  min-height: 92svh;
}
@media (min-width: 900px) {
  .hero {
    padding: 130px var(--pad-x) 0;
    min-height: 96vh;
    min-height: 96svh;
  }
}
.hero-top {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  flex: 1;
  align-items: center;
  padding-bottom: 32px;
}
@media (min-width: 900px) {
  .hero-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    padding-bottom: 48px;
  }
}
/* hero-grid: replaced by .hero-top */
.hero-mark {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  color: var(--accent);
}
@media (min-width: 900px) { .hero-mark { max-width: none; } }
.hero-svg {
  width: 100%;
  height: auto;
  display: block;
  shape-rendering: crispEdges;
}
.hero-academia {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-align: center;
  color: var(--off);
  font-size: clamp(13px, 1.5vw, 18px);
  padding-left: 0.3em; /* compensate trailing letter-spacing */
  text-indent: 0.3em;
  opacity: 0;
  animation: fadeUp .7s ease forwards;
  animation-delay: 0.85s;
}
:root.light .hero-academia { color: var(--azul); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* pixel-by-pixel reveal of the hero wordmark */
.hero-svg .px {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: pixelPop .55s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(0.06s + var(--i) * 0.085s);
}
@keyframes pixelPop {
  0%   { opacity: 0; transform: scale(0.4); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-svg .px { opacity: 1; animation: none; transform: none; }
  .hero-academia { opacity: 1; animation: none; }
}
/* ============================================================
   HERO SCENE - personaje 8-bit corriendo (Chrome dino style)
   ============================================================ */
.hero-scene {
  position: relative;
  width: calc(100% + 2 * var(--pad-x));
  margin-left: calc(-1 * var(--pad-x));
  margin-right: calc(-1 * var(--pad-x));
  height: 180px;
  background: var(--azul); /* match personaje.png baked bg */
  border: 0;
  border-top: 2px solid rgba(199, 239, 0, 0.18);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  font: inherit;
  color: inherit;
  display: block;
  text-align: left;
}
@media (min-width: 700px) { .hero-scene { height: 220px; } }
@media (min-width: 1080px) { .hero-scene { height: 260px; } }
.hero-scene:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

.scene-hint {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  opacity: 0.7;
  pointer-events: none;
  z-index: 3;
}

/* clouds (parallax background, scrolling slow) */
.scene-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cloud {
  position: absolute;
  background: var(--accent);
  opacity: 0.18;
  border-radius: 0;
  width: 60px;
  height: 16px;
  animation: cloudDrift 22s linear infinite;
}
.cloud-1 { top: 18%; left: -10%; animation-duration: 26s; }
.cloud-2 { top: 38%; left: -25%; width: 90px; height: 22px; opacity: 0.12; animation-duration: 34s; }
.cloud-3 { top: 22%; left: -50%; width: 40px; height: 12px; opacity: 0.22; animation-duration: 19s; }
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(140vw); }
}

/* ground - scrolls horizontally infinitely (SVG transparent texture) */
.scene-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background-image: url('/assets/textura/textura-piso.svg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 bottom;
  animation: groundScroll 8s linear infinite;
  z-index: 1;
}
@media (min-width: 700px) { .scene-ground { height: 48px; } }
@keyframes groundScroll {
  from { background-position: 0 bottom; }
  to   { background-position: -800px bottom; }
}

/* obstacles spawn on the right and slide left */
.scene-obstacles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.scene-obstacle {
  position: absolute;
  bottom: 32px;
  left: 100%;
  background: var(--accent);
  animation: obstacleSlide var(--dur, 3.6s) linear forwards;
  will-change: transform;
}
@media (min-width: 700px) { .scene-obstacle { bottom: 44px; } }
.ob-cube  { width: 18px; height: 18px; }
.ob-tall  { width: 12px; height: 30px; }
.ob-stack { width: 14px; height: 26px; box-shadow: 14px 0 0 var(--accent), 0 -14px 0 var(--accent); }
@keyframes obstacleSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100vw - 80px)); }
}

/* collision: brief flash + shake */
.hero-scene.crashed .scene-character {
  animation: charCrash .35s ease-in-out;
}
@keyframes charCrash {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); filter: hue-rotate(60deg); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

/* character - bouncing run + jump */
.scene-character {
  position: absolute;
  bottom: 32px;
  left: clamp(24px, 12%, 140px);
  width: 56px;
  height: 72px;
  z-index: 2;
  animation: charRun 0.4s steps(2, end) infinite;
  transform-origin: bottom center;
}
@media (min-width: 700px) { .scene-character { width: 76px; height: 96px; bottom: 44px; } }
.scene-character {
  color: var(--accent);
}
.scene-character .atalayin {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: crispEdges;
}
@keyframes charRun {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50%      { transform: translateY(-3px) scaleX(0.96); }
}

.hero-scene.jumping .scene-character {
  animation: charJump 0.7s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes charJump {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-90px) rotate(-6deg); }
  60%  { transform: translateY(-90px) rotate(-6deg); }
  100% { transform: translateY(0) rotate(0); }
}
@media (min-width: 700px) {
  @keyframes charJump {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(-120px) rotate(-6deg); }
    60%  { transform: translateY(-120px) rotate(-6deg); }
    100% { transform: translateY(0) rotate(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-character { animation: none; }
  .scene-ground { animation: none; }
  .cloud { animation: none; opacity: 0; }
  .scene-hint { display: none; }
}
.hero-text {
  display: contents;
}
.hero-claim {
  max-width: 560px;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--fg);
  margin-top: 12px;
}
@media (min-width: 900px) { .hero-claim { margin-top: 0; } }
.hero-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg-soft);
  text-transform: uppercase;
}
.hero-meta .dot { color: var(--accent); }

/* ============================================================
   SECTIONS - row layout (label izq, contenido der)
   ============================================================ */
.section {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--divider);
  background: var(--bg);
  position: relative;
}
.row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .row { grid-template-columns: 220px 1fr; gap: 64px; }
}
.col-body { max-width: 760px; }

/* row variant with side figure */
.row.row-with-figure {
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .row.row-with-figure {
    grid-template-columns: 200px minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: start;
  }
}
/* cutout-style figure: stepped notch revela el bg, sin texto sobre la foto */
.col-figure {
  margin: 0;
  position: relative;
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.col-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  /* stepped cutout en top-left: revela el bg de la pagina */
  clip-path: polygon(
    0 22%, 8% 22%, 8% 16%,
    16% 16%, 16% 11%,
    24% 11%, 24% 6%,
    32% 6%, 32% 0,
    100% 0,
    100% 100%,
    0 100%
  );
  transition: transform .5s ease;
}
.col-figure-portrait img { aspect-ratio: 3 / 4; }
.col-figure-cutout-right img {
  /* mirror del cutout: stepped notch en top-right */
  clip-path: polygon(
    0 0,
    68% 0, 68% 6%,
    76% 6%, 76% 11%,
    84% 11%, 84% 16%,
    92% 16%, 92% 22%,
    100% 22%,
    100% 100%,
    0 100%
  );
}
.col-figure-cutout-right figcaption { align-items: flex-end; text-align: right; }
.col-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  text-transform: lowercase;
  color: var(--fg-soft);
  padding: 0 4px;
}
.col-figure figcaption strong {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: lowercase;
}
.col-figure figcaption span:not(strong) {
  font-size: 10px;
  opacity: 0.75;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 24px;
}
.lede + p { color: var(--fg-soft); }
.col-body p + p { margin-top: 16px; color: var(--fg-soft); }

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 640px;
}

/* ============================================================
   TESTIMONIO
   ============================================================ */
.section-testimonio { padding-top: calc(var(--pad-y) - 16px); padding-bottom: calc(var(--pad-y) - 16px); }
.quote {
  margin: 0;
  position: relative;
}
.quote-text {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
  position: relative;
  padding-left: 0;
}
.quote-text .quote-mark {
  color: var(--accent);
  font-family: var(--font-mono);
  margin-right: 4px;
}
.quote-cite {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quote-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.quote-author:hover { border-color: var(--accent); color: var(--accent); }
.quote-author strong {
  font-size: 14px;
  letter-spacing: 0.02em;
}
.quote-author .mono {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-soft);
}
.quote-author:hover .mono { color: var(--accent); }
.quote-role {
  font-size: 13px;
  color: var(--fg-soft);
  max-width: 480px;
  line-height: 1.5;
}

/* ============================================================
   CURSOS
   ============================================================ */
.section-cursos { padding-bottom: calc(var(--pad-y) + 32px); }

.cursos-grid {
  max-width: var(--maxw);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .cursos-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.curso {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color .25s, transform .25s, background .25s;
}
.curso:hover {
  border-color: var(--accent);
  background: var(--card-hi);
}
.curso-featured {
  background: var(--bg-soft);
  border-color: rgba(199, 239, 0, 0.35);
  position: relative;
}
:root.light .curso-featured {
  background: #ffffff;
  border-color: var(--azul);
}
.curso-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  margin-bottom: 18px;
}
.curso-title {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.curso-title em { color: var(--accent); }
.curso-desc {
  margin-top: 12px;
  color: var(--fg-soft);
  font-size: 15px;
}
.curso-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.curso-meta li {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 5px 10px;
  border: 1px solid var(--divider);
  border-radius: 999px;
}
.curso-details {
  margin-top: 4px;
}
.curso-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  transition: border-color .2s, color .2s, background .2s;
  user-select: none;
}
.curso-details > summary::-webkit-details-marker { display: none; }
.curso-details > summary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.summary-icon {
  width: 14px; height: 14px;
  position: relative;
  flex: 0 0 14px;
}
.summary-icon::before,
.summary-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  top: 50%; left: 0;
  width: 14px; height: 2px;
  transform: translateY(-50%);
  transition: transform .25s ease;
}
.summary-icon::after { transform: translateY(-50%) rotate(90deg); }
.curso-details[open] > summary .summary-icon::after { transform: translateY(-50%) rotate(0deg); }
.curso-details[open] > summary {
  border-color: var(--accent);
  color: var(--accent);
}
.curso-details > .curso-body {
  padding-top: 22px;
  animation: details-fade .3s ease;
}
@keyframes details-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.curso-h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
}
.curso-body > .curso-h:first-child {
  padding-top: 0;
  border-top: 0;
}
.curso-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-soft);
}
.curso-list li {
  padding-left: 14px;
  position: relative;
}
.curso-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
}
.curso-list li strong { color: var(--fg); font-weight: 700; }
.curso-body p {
  font-size: 14.5px;
  color: var(--fg-soft);
}

/* ============================================================
   INCLUYE
   ============================================================ */
.incluye-grid {
  max-width: var(--maxw);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px)  { .incluye-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .incluye-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } }

.incluye-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  transition: border-color .25s, background .25s;
}
.incluye-card:hover {
  border-color: var(--accent);
  background: var(--card-hi);
}
.incluye-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.incluye-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
}
.incluye-card p {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.5;
}

/* ============================================================
   DETALLES
   ============================================================ */
.detalles-grid {
  max-width: var(--maxw);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--divider);
}
@media (min-width: 700px)  { .detalles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .detalles-grid { grid-template-columns: repeat(4, 1fr); } }

.detalle {
  padding: 26px 4px;
  border-bottom: 1px solid var(--divider);
}
@media (min-width: 700px) {
  .detalle { padding: 28px 24px 28px 0; border-right: 1px solid var(--divider); }
  .detalle:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: 24px; }
}
@media (min-width: 1080px) {
  .detalle { border-right: 1px solid var(--divider); padding: 28px 24px; }
  .detalle:nth-child(2n) { border-right: 1px solid var(--divider); padding-left: 24px; padding-right: 24px; }
  .detalle:last-child { border-right: 0; padding-right: 0; }
  .detalle:first-child { padding-left: 0; }
}
.detalle dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.detalle dd {
  font-size: 18px;
  line-height: 1.4;
  color: var(--fg);
}
.detalle dd strong { font-size: 22px; font-weight: 700; }
.detalle dd .small { color: var(--fg-soft); display: inline-block; margin-top: 4px; }

/* ============================================================
   CTA
   ============================================================ */
.section-cta {
  padding: var(--pad-y) var(--pad-x);
}
.cta-card {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 28px;
  background: var(--bg-soft);
  border: 1px solid rgba(199, 239, 0, 0.4);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
:root.light .cta-card {
  background: var(--azul);
  color: var(--off);
  border-color: var(--azul);
}
:root.light .cta-card .cta-title,
:root.light .cta-card .cta-sub,
:root.light .cta-card .cta-foot { color: var(--off); }
:root.light .cta-card .label { color: var(--lima); }
:root.light .cta-card .btn-ghost {
  border-color: rgba(237, 242, 244, 0.3);
  color: var(--off);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 120%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(199, 239, 0, 0.15), transparent 60%);
  pointer-events: none;
}
.cta-title {
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.cta-sub {
  margin-top: 14px;
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-foot {
  margin-top: 36px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 700;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--azul);
}
.btn-primary:hover { transform: translateY(-1px); background: #d4f53a; }
.btn-ghost {
  border-color: var(--divider);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--divider);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1fr auto; gap: 48px; }
}
.footer-brand .mono {
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-brand p {
  margin-top: 8px;
  color: var(--fg-soft);
  max-width: 520px;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--fg-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 800px) {
  .footer-meta { text-align: right; }
}

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
