/* =====================================================
   Portal 12 — Sitio web
   Tokens desde el sistema de diseño (tokens.json)
   ===================================================== */

@font-face { font-family: "Satoshi"; src: url("../assets/fonts/Satoshi-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../assets/fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../assets/fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../assets/fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../assets/fonts/Satoshi-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --black: #000000;
  --white: #ffffff;
  --mint: #55ffad;
  --violet: #8e59ff;
  --electric: #5200ff;
  --butter: #efe78a;
  --indigo-900: #0f0d1e;
  --indigo-700: #2a2454;

  --surface: var(--black);
  --surface-raised: var(--indigo-900);
  --ink: var(--white);
  --ink-muted: rgba(255,255,255,.7);
  --accent: var(--violet);
  --highlight: var(--mint);
  --line: rgba(255,255,255,.16);
  --on-electric: var(--white);
  --on-mint: var(--black);

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px;

  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

.theme-light {
  --surface: var(--white);
  --surface-raised: #f2eefe;
  --ink: var(--black);
  --ink-muted: rgba(0,0,0,.6);
  --accent: var(--electric);
  --highlight: var(--electric);
  --line: rgba(0,0,0,.14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--black); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }

/* ---------- Tipografía ---------- */
.label {
  font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.display { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; font-weight: 400; letter-spacing: -.025em; }
.display-xl { font-size: clamp(56px, 10vw, 128px); line-height: .98; font-weight: 400; letter-spacing: -.03em; }
.body-lg { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-muted); }
em { font-style: normal; color: var(--highlight); }

.section__head { margin-bottom: clamp(40px, 6vw, 80px); display: grid; gap: var(--space-4); max-width: 820px; }
.section__head--row { max-width: none; grid-template-columns: 1.4fr 1fr; align-items: end; gap: var(--space-6); }
.section__lead { max-width: 480px; }
@media (max-width: 860px) { .section__head--row { grid-template-columns: 1fr; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: .01em; cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--electric { background: var(--electric); color: var(--on-electric); }
.btn--electric:hover { background: #6a1fff; }
.btn--mint { background: var(--mint); color: var(--on-mint); }
.btn--mint:hover { background: #7dffc0; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Efectos globales ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(142,89,255,.22) 0%, rgba(82,0,255,.08) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .6s;
  will-change: transform;
}
body.has-cursor .cursor-glow { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 20px 0; transition: padding .4s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { padding: 12px 0; background: rgba(0,0,0,.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
.nav__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.nav__logo img { width: 120px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); font-size: 15px; }
.nav__links a:not(.btn) { position: relative; color: var(--ink-muted); transition: color .3s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--mint); transition: right .35s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after { right: 0; }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; align-items: center; }
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--white); transition: transform .35s var(--ease), opacity .3s; }
@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: 0; background: var(--black); flex-direction: column; justify-content: center; gap: 28px;
    font-size: 28px; opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__cta { margin: 12px 0 0; font-size: 16px; padding: 16px 32px; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav__burger, .nav__logo { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--indigo-900); }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; transform: scale(1.02); }
.hero__video.is-ready { opacity: 1; }
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: url("../assets/img/hero-poster.jpg") center / cover no-repeat;
  opacity: 1; transition: opacity 1.2s;
}
.hero.video-ready .hero__media::before { opacity: 0; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.55) 70%, #000 100%),
    radial-gradient(60% 50% at 80% 20%, rgba(82,0,255,.35), transparent 70%);
}
.hero__numeral {
  position: absolute; right: -2vw; bottom: -6vw; z-index: 2;
  font-size: clamp(260px, 40vw, 640px); line-height: .8; font-weight: 900; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14);
  pointer-events: none; user-select: none;
  animation: numeralFloat 12s ease-in-out infinite alternate;
}
@keyframes numeralFloat { from { transform: translateY(0) } to { transform: translateY(-24px) } }
.hero__content { position: relative; z-index: 3; padding: 160px 0 clamp(80px, 12vh, 140px); display: grid; gap: var(--space-4); max-width: 980px; }
.hero__title { font-size: clamp(44px, 8.6vw, 118px); line-height: .98; font-weight: 400; letter-spacing: -.035em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero__title.is-in .line:nth-child(1) > span { transform: none; transition-delay: .1s; }
.hero__title.is-in .line:nth-child(2) > span { transform: none; transition-delay: .22s; }
.hero__title.is-in .line:nth-child(3) > span { transform: none; transition-delay: .34s; }
.hero__sub { max-width: 560px; color: rgba(255,255,255,.8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted);
}
.hero__scroll-line { width: 1px; height: 56px; background: linear-gradient(to bottom, transparent, var(--mint)); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }
@media (max-width: 860px) { .hero__scroll { display: none; } .hero__content { padding-top: 140px; } }

/* ---------- Clientes / Marquee ---------- */
.clients { padding: clamp(48px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.clients__head { margin-bottom: var(--space-5); display: grid; gap: var(--space-3); }
.clients__title { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; font-weight: 400; letter-spacing: -.015em; max-width: 820px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(56px, 7vw, 120px); width: max-content; animation: marquee 42s linear infinite; padding-right: clamp(56px, 7vw, 120px); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 34px; width: auto; max-width: 160px; object-fit: contain; opacity: .7; filter: brightness(10) grayscale(1); transition: opacity .3s; }
.marquee__track img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Elementos flotantes (PNG de marca) ---------- */
.float-el { position: relative; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.float-el img { width: 100%; height: auto; animation: floaty 9s ease-in-out infinite alternate; }
.float-el--slow img { animation-duration: 12s; }
@keyframes floaty { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-22px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .float-el img { animation: none; } .float-el { transform: none; } }

/* ---------- Nosotros ---------- */
.about { overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about__text { display: grid; gap: var(--space-4); }
.about__title { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.16; font-weight: 400; letter-spacing: -.02em; }
.split-words .w { display: inline-block; opacity: .18; transition: opacity .5s; }
.split-words .w.is-on { opacity: 1; }
.about__pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-3); }
.about__pillars li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.about__pillars span { font-size: 12px; letter-spacing: .1em; color: var(--mint); font-weight: 500; }
.about__visual { position: relative; }
.about__visual::before { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(85,255,173,.18), rgba(82,0,255,.12) 45%, transparent 70%); filter: blur(30px); }
.about__visual .float-el { max-width: 520px; margin-inline: auto; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { order: -1; max-width: 300px; margin: -20px auto 0; }
}

/* ---------- Servicios ---------- */
.services { background: radial-gradient(70% 60% at 100% 0%, rgba(42,36,84,.55), transparent 60%), var(--black); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.service {
  position: relative; overflow: hidden; display: grid; gap: var(--space-3); align-content: start;
  padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  transition: border-color .4s, transform .5s var(--ease);
}
.service::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 100% 0%, rgba(82,0,255,.22), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.service:hover { border-color: rgba(142,89,255,.55); transform: translateY(-4px); }
.service:hover::before { opacity: 1; }
.service__index { font-size: 13px; letter-spacing: .1em; color: var(--accent); font-weight: 500; }
.service h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; padding-right: 56px; }
.service p { color: var(--ink-muted); max-width: 480px; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-2); }
.service__tags li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted); }
.service__icon { position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(28px, 3vw, 40px); width: 40px; height: 40px; color: var(--white); opacity: .75; transition: color .3s, transform .4s var(--ease); }
.service:hover .service__icon { color: var(--mint); transform: rotate(-8deg) scale(1.08); opacity: 1; }
@media (max-width: 760px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- IA + Humano ---------- */
.ai { overflow: hidden; background: linear-gradient(180deg, var(--black) 0%, var(--indigo-900) 55%, var(--black) 100%); }
.ai__glow { position: absolute; left: 50%; top: 38%; width: min(90vw, 1100px); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(50% 50% at 50% 50%, rgba(82,0,255,.45), rgba(142,89,255,.12) 50%, transparent 72%); filter: blur(40px); pointer-events: none; }
.ai .container { position: relative; }
.ai__head { text-align: center; display: grid; gap: var(--space-3); justify-items: center; }
.ai__head .body-lg { max-width: 520px; }
.ai__plus { color: var(--violet); }
.ai__hands { margin: 0 auto; max-width: 1100px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); }
.ai__hands { margin-bottom: clamp(-120px, -7vw, -40px); }
.ai__hands img { -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 92%); mask-image: linear-gradient(180deg, #000 62%, transparent 92%); }
.ai__hands img { width: 100%; height: auto; transform: scale(.96); opacity: 0; transition: transform 1.6s var(--ease), opacity 1.2s; }
.ai__hands.is-in img { transform: none; opacity: 1; }
.ai__grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: var(--space-4); margin-top: clamp(16px, 3vw, 40px); align-items: start; }
.ai__col { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.ai__colhead { font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.ai__col ul { display: grid; gap: 10px; color: var(--ink-muted); }
.ai__col li { padding-left: 18px; position: relative; }
.ai__col li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: currentColor; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot--violet { background: var(--violet); } .dot--mint { background: var(--mint); }
.ai__card { display: grid; gap: var(--space-4); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); border: 1px solid rgba(85,255,173,.35); background: rgba(0,0,0,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ai__card .label { color: var(--mint); }
.ai__course h3 { font-size: 22px; font-weight: 400; letter-spacing: -.01em; margin-bottom: 6px; }
.ai__course p { color: var(--ink-muted); font-size: 15px; }
.ai__card .btn { justify-self: start; }
@media (max-width: 1000px) { .ai__grid { grid-template-columns: 1fr 1fr; } .ai__card { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ai__grid { grid-template-columns: 1fr; } .ai__hands { margin-inline: calc(-1 * var(--gutter)); } .ai__card .btn { white-space: normal; } }

/* ---------- Soluciones ---------- */
.solution { position: relative; padding-block: clamp(72px, 9vw, 128px); overflow: hidden; }
.solution__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.solution__grid--reverse .solution__visual { order: -1; }
.solution__text { display: grid; gap: var(--space-4); }
.solution__text .btn { justify-self: start; margin-top: var(--space-2); }
@media (max-width: 860px) {
  .solution__grid { grid-template-columns: 1fr; }
  .solution__grid--reverse .solution__visual { order: 1; }
}

.solution--boost { background: url("../assets/img/fondo-indigo.jpg") center / cover no-repeat, var(--indigo-900); color: var(--white); }
.solution--boost::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 90% 90%, rgba(142,89,255,.35), transparent 70%); pointer-events: none; }
.solution--boost .container { position: relative; z-index: 1; }
.checks { display: grid; gap: 12px; color: var(--ink-muted); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 7px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.checks strong { color: var(--white); font-weight: 500; }

.boost-card {
  background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; gap: var(--space-5);
  transform: perspective(1200px) rotateY(0deg); transition: transform .6s var(--ease);
}
.boost-card:hover { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.boost-card__big { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.02em; }
.boost-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.boost-card__stats .stat { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 700; color: var(--mint); letter-spacing: -.02em; line-height: 1; }
.boost-card__stats small { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-muted); line-height: 1.35; }
@media (max-width: 560px) { .boost-card__stats { grid-template-columns: 1fr; } }

.solution--clear { background: var(--surface); color: var(--ink); }
.tiers { display: grid; border-top: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 130px 1fr; gap: var(--space-3); padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tier__name { font-weight: 500; }
.tier__desc { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 560px) { .tier { grid-template-columns: 1fr; gap: 4px; } }

.clear__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.clear__halo { position: absolute; width: min(80%, 420px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(142,89,255,.35), rgba(85,255,173,.18) 45%, transparent 70%); filter: blur(20px); }
.clear__visual .float-el { width: min(46%, 230px); }
@media (max-width: 860px) { .clear__visual { min-height: 320px; } .clear__visual .float-el { width: 150px; } }

/* ---------- Cultura ---------- */
.culture { position: relative; overflow: hidden; padding-top: clamp(64px, 8vw, 112px); background: radial-gradient(60% 70% at 75% 60%, rgba(42,36,84,.6), transparent 70%), var(--black); }
.culture__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.culture__text { display: grid; gap: var(--space-4); padding-bottom: clamp(64px, 8vw, 112px); }
.culture__quote { font-size: clamp(32px, 5vw, 68px); line-height: 1.04; letter-spacing: -.03em; font-weight: 400; }
.culture__visual .float-el { max-width: 400px; margin-inline: auto; }
.culture__visual img { animation-duration: 14s; }
@media (max-width: 860px) {
  .culture__grid { grid-template-columns: 1fr; }
  .culture__text { padding-bottom: 0; }
  .culture__visual .float-el { max-width: 240px; }
}

/* ---------- Capacitaciones ---------- */
.training__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); }
.training__col { display: grid; gap: var(--space-3); align-content: start; }
.training__list li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 15px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease), color .3s; }
.training__list li:hover { padding-left: 10px; }
.training__list li:hover span { color: var(--mint); }
.training__list li.is-hi span { color: var(--butter); }
.training__list span { font-size: 17px; transition: color .3s; }
.training__list small { font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.training { background: var(--indigo-900); }
.training__btn { justify-self: start; margin-top: var(--space-3); }
.training__list .tag-new { color: var(--black); background: var(--mint); padding: 2px 10px; border-radius: 999px; font-weight: 500; letter-spacing: .06em; }
@media (max-width: 860px) { .training__grid { grid-template-columns: 1fr; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--surface); color: var(--ink); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { display: grid; gap: var(--space-4); position: sticky; top: 120px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 22px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; letter-spacing: -.01em; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--electric); }
.faq details p { padding: 0 0 24px; color: var(--ink-muted); max-width: 640px; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; }
.contact__glow { position: absolute; left: -10%; bottom: -30%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(82,0,255,.5), rgba(142,89,255,.15) 40%, transparent 70%); filter: blur(40px); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact__text { display: grid; gap: var(--space-4); }
.contact__links { display: grid; gap: 10px; font-size: 18px; margin-top: var(--space-2); }
.contact__links a { position: relative; display: inline-block; }
.contact__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.contact__links a:hover::after { transform: scaleX(1); }
.contact__links span { color: var(--ink-muted); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--space-3); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); backdrop-filter: blur(10px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--white); outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { color: #000; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(142,89,255,.2); }
.field.is-error input { border-color: #ff6b6b; }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.form__note { font-size: 13px; color: var(--ink-muted); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding: var(--space-6) 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center; padding-bottom: var(--space-6); }
.footer__logo { width: 120px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; font-size: 14px; color: var(--ink-muted); }
.footer__nav a:hover { color: var(--white); }
.footer__copy { font-size: 13px; color: var(--ink-muted); text-align: right; }
.footer__numeral {
  text-align: center; font-size: clamp(64px, 16vw, 260px); line-height: .75; font-weight: 400; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); user-select: none; transform: translateY(18%);
}
@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .footer__copy { text-align: left; }
}

/* ---------- Focus visible ---------- */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
