/* =========================================================
   UmbralLab · Tu Lugar en el Trabajo
   Design: Editorial-minimalist + pixel motif + gradient accents
   Fonts: Fraunces (display) / Plus Jakarta Sans (body)
   ========================================================= */

:root {
  --c-bg: #fafaf7;
  --c-bg-2: #f3f1ec;
  --c-surface: #ffffff;
  --c-surface-alt: #f6f5f0;
  --c-border: #e8e6df;
  --c-border-strong: #d4d0c4;

  --c-ink: #13131f;
  --c-ink-2: #25253a;
  --c-muted: #525271;
  --c-muted-2: #757590;

  --c-cian: #12D8DD;
  --c-cian-2: #18B9D3;
  --c-blue: #2A6DE5;
  --c-purple: #7C2AF2;
  --c-purple-deep: #5B21B6;
  --c-orange: #F57242;
  --c-orange-soft: #ffb892;
  --c-green: #22c55e;
  --c-green-soft: #86efac;
  --c-yellow: #F5B822;
  --c-navy: #0E1A3C;

  --grad-main: linear-gradient(135deg, #12D8DD 0%, #2A6DE5 42%, #7C2AF2 100%);
  --grad-warm: linear-gradient(135deg, #B14AE8 0%, #F57242 55%, #F5B822 100%);
  --grad-cool: linear-gradient(135deg, #12D8DD 0%, #22c55e 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-1: 0 1px 2px rgba(19, 19, 31, 0.06), 0 2px 8px rgba(19, 19, 31, 0.04);
  --shadow-2: 0 6px 16px rgba(19, 19, 31, 0.08), 0 2px 6px rgba(19, 19, 31, 0.04);
  --shadow-3: 0 20px 40px -20px rgba(46, 107, 228, 0.35), 0 8px 24px rgba(19, 19, 31, 0.08);
  --shadow-lg: 0 40px 80px -30px rgba(91, 33, 182, 0.35), 0 12px 36px rgba(19, 19, 31, 0.1);

  --maxw: 1200px;

  --ff-display: 'Fraunces', 'Georgia', serif;
  --ff-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ====== DARK THEME ====== */
:root[data-theme="dark"] {
  --c-bg: #0c1023;
  --c-bg-2: #0E1A3C;
  --c-surface: #111a34;
  --c-surface-alt: #0f1832;
  --c-border: #24335f;
  --c-border-strong: #34447a;

  --c-ink: #F5F6FF;
  --c-ink-2: #E1E3F4;
  --c-muted: #AEB3D0;       /* contraste sobre --c-bg: ~10.8:1 (pasa AA 4.5) */
  --c-muted-2: #9098C0;     /* contraste sobre --c-bg: ~8.3:1 (pasa AA) */

  --c-cian: #32E3E8;
  --c-cian-2: #2AC5DC;
  --c-blue: #5A8FFB;
  --c-purple: #9F62FF;
  --c-purple-deep: #C5A7FF;  /* fallback grad-text: contraste sobre --c-bg ~10.4:1 */
  --c-orange: #F78B62;
  --c-orange-soft: #ffc09e;
  --c-green: #4ADE80;
  --c-green-soft: #86efac;
  --c-yellow: #F9C93F;
  --c-navy: #050A1E;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 6px 16px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-3: 0 20px 40px -20px rgba(46, 107, 228, 0.7), 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 40px 80px -30px rgba(91, 33, 182, 0.7), 0 12px 36px rgba(0, 0, 0, 0.55);
}

/* Global smooth color/theme transitions (no transition:all) */
html, body, body * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

/* ============== ACCESIBILIDAD ============== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--c-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.25s ease;
  box-shadow: 0 8px 24px rgba(14,26,60,0.25);
}
.skip-link:focus { top: 16px; outline: none; }

/* Scroll margin anchors (offset by sticky header + safe area) */
[id],
[id] > h1,
[id] > h2 { scroll-margin-top: 112px; }
@media (max-width: 720px) {
  [id], [id] > h1, [id] > h2 { scroll-margin-top: 96px; }
}
@media (max-width: 480px) {
  [id], [id] > h1, [id] > h2 { scroll-margin-top: 88px; }
}

/* ====== FOCUS VISIBLE RINGS (WCAG 2.4.7 Focus Visible) ====== */
:focus-visible {
  outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.burger:focus-visible {
  outline: 3px solid #2A6DE5;
  outline-offset: 3px;
  border-radius: 10px;
}
.btn-primary:focus-visible,
.nav-cta:focus-visible {
  outline-color: #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(42,109,229,0.35);
}
.plan-featured:focus-within,
.course-card:focus-visible,
.servicio:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 4px;
}
.course-card:focus-visible { border-radius: var(--radius-lg); }

/* === Form error/success messages (accesibilidad y UX) === */
.form-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.form-success {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.40);
  color: #166534;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 0.875rem; font-family: var(--ff-body); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: var(--c-ink-2); }
p { margin: 0; color: var(--c-muted); }

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--c-purple-deep);
  font-style: italic;
  font-weight: 600;
}
@supports (-webkit-background-clip: text) {
  .grad-text { color: transparent; }
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative;
}
.mt-xl { margin-top: clamp(56px, 8vw, 96px); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .section-kicker { margin: 0 auto 16px; }
.section-kicker {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--c-purple-deep);
}
.section-title { margin-bottom: 18px; }
.section-lead { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--c-muted); max-width: 640px; }
.section-lead.center { margin: 0 auto; text-align: center; }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-color: var(--c-border); background: color-mix(in srgb, var(--c-bg) 92%, transparent); }

/* Tabular nums for stats and price columns (WCAG clarity) */
h-stats strong, .plan-price .num, .plan-price .cur {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  position: relative;
  width: 40px; height: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  border-radius: 10px;
  padding: 5px;
  background: linear-gradient(135deg, rgba(0, 194, 212, 0.12), rgba(124, 58, 237, 0.12));
}
.brand-mark .pixel { border-radius: 3px; }
.pixel.p1 { background: var(--c-cian); }
.pixel.p2 { background: var(--c-blue); }
.pixel.p3 { background: var(--c-purple); }
.pixel.p4 { background: var(--c-blue); }
.pixel.p5 { background: var(--c-orange); }
.pixel.p6 { background: var(--c-purple-deep); }
.pixel.p7 { background: var(--c-green); }
.pixel.p8 { background: var(--c-orange); }
.pixel.p9 { background: var(--c-purple); }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.brand-tag {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--c-muted);
  margin-top: 3px;
}

.nav-list { display: flex; gap: 36px; }
.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}
.nav-list a:hover { color: var(--c-ink); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--grad-main);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 20px -8px rgba(46, 107, 228, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 28px -8px rgba(46, 107, 228, 0.7); }

/* --- Theme toggle + Nav actions layout --- */
.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-surface);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--c-border-strong); }
.theme-toggle:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { position: absolute; transition: opacity 0.3s ease, transform 0.3s ease; }
.theme-toggle           .icon-sun  { opacity: 0; transform: scale(0.6) rotate(-25deg); }
.theme-toggle           .icon-moon { opacity: 1; transform: scale(1) rotate(0); }
:root[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: scale(1) rotate(0); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: scale(0.6) rotate(25deg); }

/* Dark-theme-only refinements */
:root[data-theme="dark"] .theme-toggle {
  background: var(--c-surface-alt);
  color: var(--c-yellow);
}
:root[data-theme="dark"] .nav-list a:hover { color: var(--c-ink); }
:root[data-theme="dark"] .btn-outline:hover { background: var(--c-ink); }

.burger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.burger span {
  width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  padding: 8px 28px 20px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-weight: 500;
  color: var(--c-ink-2);
  border-bottom: 1px solid var(--c-border);
  font-size: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(46, 107, 228, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 32px -10px rgba(91, 33, 182, 0.6); }
.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-border-strong);
}
.btn-outline:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink-2);
  font-weight: 600;
  padding: 14px 20px;
}
.btn-ghost:hover { color: var(--c-purple-deep); }
.btn-block { width: 100%; }

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 136px);
  overflow: hidden;
}
.pixel-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46, 107, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 107, 228, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 75%);
  pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5; pointer-events: none;
}
.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0, 194, 212, 0.45), transparent 70%);
  top: -180px; left: -160px;
  animation: float 14s ease-in-out infinite;
}
.blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.42), transparent 70%);
  bottom: -220px; right: -180px;
  animation: float 18s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -30px, 0) scale(1.06); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 122, 61, 0.1); color: #c9501a;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 61, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title { margin-bottom: 22px; }
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--c-ink-2);
  margin-bottom: 36px;
  max-width: 540px;
  font-weight: 500;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-proof li {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--c-ink-2);
}
.tick {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  top: 4px; left: 7px;
  width: 6px; height: 11px;
  border: solid #15803d; border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 540px;
}
.photo-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--c-surface);
}
.photo {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
}
.photo-1 {
  top: 0; right: 0;
  width: 68%; height: 64%;
  transform: rotate(2deg);
}
.photo-card-2 {
  bottom: 0; left: 0;
  width: 56%; height: 56%;
  transform: rotate(-3deg);
}
.photo-badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-2);
  font-size: 0.78rem;
  color: var(--c-ink-2);
  line-height: 1.3;
  font-weight: 600;
}
.photo-badge strong {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.badge-orange strong { color: var(--c-orange); }
.badge-green span:first-child {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-green);
}
.badge-orange { top: 16px; left: -18px; }
.badge-green { bottom: 20px; right: -12px; }

.floating-card {
  position: absolute;
  top: 46%; left: -6%;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  z-index: 3;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fc-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad-main);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.floating-card strong { display: block; font-size: 0.85rem; font-family: var(--ff-body); color: var(--c-ink); font-weight: 700; }
.floating-card span { font-size: 0.8rem; color: var(--c-muted); font-weight: 500; }

/* --- About / Nosotros --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-copy .section-kicker { margin-bottom: 18px; }
.about-copy .section-title { margin-bottom: 20px; }
.about-copy .section-lead { margin-bottom: 40px; }

.about-points { display: grid; gap: 18px; }
.ap {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ap:hover { transform: translateY(-2px); border-color: transparent; box-shadow: var(--shadow-2); }
.ap h4 { margin-bottom: 4px; }
.ap p { font-size: 0.92rem; line-height: 1.55; }
.ap-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
}
.ap-icon.ci { background: linear-gradient(135deg, #00c2d4, #2e6be4); }
.ap-icon.or { background: linear-gradient(135deg, #ff7a3d, #ff9e57); }
.ap-icon.gr { background: linear-gradient(135deg, #22c55e, #00c2d4); }

.about-visual { position: relative; }
.about-visual-inner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.about-visual-inner img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 5;
}
.quote-card {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 22px 24px 20px 64px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.quote-mark {
  position: absolute;
  top: -4px; left: 18px;
  font-family: var(--ff-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--c-purple);
  font-style: italic;
  opacity: 0.8;
}
.quote-card p {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--c-ink-2);
  font-size: 1.05rem;
  line-height: 1.4;
}

/* --- Programa / Audiencia --- */
.programa { background: var(--c-bg-2); position: relative; }
.programa::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(124, 58, 237, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.5;
}
.programa > .container { position: relative; z-index: 2; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.aud-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.aud-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-main);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.aud-card:hover::before { transform: scaleX(1); }

.aud-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.aud-card h4 { margin-bottom: 8px; }
.aud-card p { font-size: 0.92rem; }

/* Pilares */
.pilares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.pilares::before {
  content: "";
  position: absolute;
  top: 52px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-border-strong), transparent);
  z-index: 0;
}
.pilar {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pilar:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pilar-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  color: #fff;
}
.pilar-icon.ci { background: linear-gradient(135deg, #00c2d4, #2e6be4); box-shadow: 0 10px 24px -12px rgba(46, 107, 228, 0.6); }
.pilar-icon.or { background: linear-gradient(135deg, #ff7a3d, #ff9e57); box-shadow: 0 10px 24px -12px rgba(255, 122, 61, 0.6); }
.pilar-icon.gr { background: linear-gradient(135deg, #22c55e, #00c2d4); box-shadow: 0 10px 24px -12px rgba(34, 197, 94, 0.6); }
.pilar-icon.pv { background: linear-gradient(135deg, #7c3aed, #5b21b6); box-shadow: 0 10px 24px -12px rgba(124, 58, 237, 0.6); }
.pilar h3 { margin-bottom: 10px; }
.pilar p { font-size: 0.92rem; line-height: 1.55; }

/* --- Metodología / Encuentros --- */
.encuentros {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto 56px;
}
.encuentro {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.encuentro.open {
  border-color: transparent;
  box-shadow: var(--shadow-2);
}
.enc-head {
  width: 100%;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  text-align: left;
}
.enc-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.enc-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-ci { background: rgba(0, 194, 212, 0.12); color: #087f8c; }
.tag-or { background: rgba(255, 122, 61, 0.13); color: #b84a18; }
.tag-gr { background: rgba(34, 197, 94, 0.13); color: #166534; }
.tag-pv { background: rgba(124, 58, 237, 0.13); color: #5b21b6; }

.enc-head h3 { margin: 0; }
.chev {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--c-bg-2);
  color: var(--c-ink);
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.3s ease;
}
.encuentro.open .chev { background: var(--grad-main); color: #fff; transform: rotate(180deg); }

.enc-body {
  padding: 0 24px 26px;
  border-top: 1px solid var(--c-border);
  animation: fadeDown 0.3s ease;
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: translateY(0);} }
.enc-body > p { margin: 18px 0 14px; color: var(--c-ink-2); font-size: 0.98rem; }
.enc-body ul { display: grid; gap: 10px; }
.enc-body li {
  display: grid; grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--c-muted);
  padding-left: 4px;
}
.enc-body li span {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
  position: relative;
  margin-top: 6px;
}
.enc-body li span::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--grad-main);
}

.bitacora {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(0, 194, 212, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-lg);
}
.bitacora-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--grad-main);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 30px -14px rgba(46, 107, 228, 0.6);
}
.bitacora h3 { margin-bottom: 6px; }
.bitacora p { font-size: 0.95rem; }

/* --- Inversión / Planes --- */
.inversion { background: var(--c-bg); position: relative; }
.inversion::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center top, rgba(124, 58, 237, 0.08), transparent 70%);
  pointer-events: none;
}
.inversion > .container { position: relative; z-index: 2; }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 48px;
}
.plan {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.plan-featured {
  border-color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
  box-shadow: var(--shadow-3);
  transform: translateY(-4px);
}
.plan-featured:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.plan-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--grad-warm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(255, 122, 61, 0.6);
}

.plan-head { margin-bottom: 22px; }
.plan-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--c-ink);
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.plan-desc { font-size: 0.85rem; color: var(--c-muted); font-weight: 500; }

.plan-price {
  display: flex; align-items: flex-end; gap: 6px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--c-border-strong);
}
.plan-price .cur { font-size: 1.1rem; font-weight: 700; color: var(--c-ink-2); line-height: 2; }
.plan-price .num {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-ink);
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.plan-price.muted .num { background: none; -webkit-text-fill-color: var(--c-ink); }
.plan-price .total { font-size: 0.78rem; font-weight: 600; color: var(--c-muted-2); padding-bottom: 6px; }

.plan-features { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan-features li {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px;
  font-size: 0.88rem; color: var(--c-ink-2); line-height: 1.45;
}
.plan-features svg { color: var(--c-green); margin-top: 2px; }

.cupos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #13131f 0%, #2a1b5c 100%);
  color: #fff;
  flex-wrap: wrap;
}
.cupos-left { display: flex; align-items: center; gap: 16px; }
.cupos-ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-orange-soft);
  flex-shrink: 0;
}
.cupos-left strong { display: block; font-family: var(--ff-body); font-size: 1.05rem; color: #fff; font-weight: 700; }
.cupos-left p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }
.cupos .btn-primary {
  background: var(--grad-warm);
  box-shadow: 0 10px 24px -10px rgba(255, 122, 61, 0.5);
}
.cupos .btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(255, 122, 61, 0.7); }

/* --- Equipo --- */
.equipo { background: var(--c-bg-2); }
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.eq-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.eq-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.eq-icon {
  width: 78px; height: 78px;
  border-radius: 24px;
  display: grid; place-items: center;
  margin: 0 auto 22px;
  color: #fff;
}
.eq-icon.ci { background: linear-gradient(135deg, #00c2d4, #2e6be4); box-shadow: 0 16px 32px -14px rgba(46, 107, 228, 0.6); }
.eq-icon.or { background: linear-gradient(135deg, #ff7a3d, #ff9e57); box-shadow: 0 16px 32px -14px rgba(255, 122, 61, 0.6); }
.eq-icon.gr { background: linear-gradient(135deg, #22c55e, #00c2d4); box-shadow: 0 16px 32px -14px rgba(34, 197, 94, 0.6); }
.eq-card h3 { margin-bottom: 10px; }
.eq-card p { font-size: 0.95rem; line-height: 1.6; }

/* --- Contacto --- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contacto-copy .section-kicker { margin-bottom: 18px; display: inline-block; }
.contacto-copy .section-title { margin-bottom: 20px; }
.contacto-copy .section-lead { margin-bottom: 40px; }

.contact-channels { display: grid; gap: 14px; }
.contact-channels li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-channels li:hover { transform: translateX(4px); box-shadow: var(--shadow-1); }
.contact-channels strong { display: block; font-family: var(--ff-body); font-size: 0.8rem; font-weight: 700; color: var(--c-muted-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-channels a { font-weight: 600; color: var(--c-ink-2); font-size: 1rem; }
.contact-channels a:hover { color: var(--c-purple-deep); }
.contact-channels > li > span:first-child {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
}
.ch-ci { background: linear-gradient(135deg, #00c2d4, #2e6be4); }
.ch-or { background: linear-gradient(135deg, #ff7a3d, #ff9e57); }
.ch-gr { background: linear-gradient(135deg, #22c55e, #00c2d4); }

.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-2);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-ink-2);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-success {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  animation: fadeDown 0.3s ease;
}

/* --- Footer --- */
.site-footer {
  background: #0e0e1a;
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -200px; left: -100px; right: -100px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.35), transparent 60%);
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 2; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: rgba(255, 255, 255, 0.5); }
.site-footer .brand-mark { background: linear-gradient(135deg, rgba(0, 194, 212, 0.22), rgba(124, 58, 237, 0.22)); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand { max-width: 440px; }
.footer-motto {
  margin-top: 20px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-cols h5 { color: #fff; margin-bottom: 18px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-cols a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom small {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* --- Reveal Animations --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero-visual { height: 460px; }
  .pilares { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pilares::before { display: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contacto-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; max-width: 540px; margin: 0 auto; width: 100%; }
  .about-visual { max-width: 540px; margin: 0 auto; width: 100%; }
  .equipo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }

  .floating-card { top: auto; bottom: 30%; left: 0; right: auto; }
  .photo-1 { width: 74%; height: 62%; }
  .photo-card-2 { width: 62%; height: 54%; }

  .audience-grid, .equipo-grid, .pilares, .plans { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .bitacora { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .bitacora-icon { margin: 0 auto; }

  .cupos { flex-direction: column; align-items: stretch; text-align: left; }
  .cupos .btn-primary { width: 100%; }

  .enc-left { gap: 12px; }
  .enc-head { padding: 18px 18px; }
  .enc-body { padding: 0 18px 22px; }

  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .contact-form { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .hero-visual { height: 360px; }
  .badge-orange { left: 6px; top: 10px; }
  .badge-green { right: 6px; bottom: 12px; }
  .floating-card { padding: 10px 12px; gap: 10px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}

/* =========================================================
   NEW UmbralLab v2: Brand logo, Home B2B & Capacitaciones Hub
   ========================================================= */

/* --- Brand logo (replaces pixel brand) --- */
.brand-logo {
  height: 68px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.3s ease, drop-shadow 0.3s ease;
  /* Light-theme: soft elevation so navy circle pops over cream bg */
  filter: drop-shadow(0 2px 4px rgba(14, 26, 60, 0.10))
          drop-shadow(0 8px 18px rgba(46, 107, 228, 0.08));
}
:root[data-theme="dark"] .brand-logo {
  /* Dark-theme: luminous halo around the colorful gradient U; also boost brightness slightly */
  filter: drop-shadow(0 2px 5px rgba(50, 227, 232, 0.10))
          drop-shadow(0 10px 28px rgba(159, 98, 255, 0.22))
          brightness(1.03);
}
.brand:hover .brand-logo {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 6px rgba(14, 26, 60, 0.12))
          drop-shadow(0 14px 26px rgba(124, 42, 242, 0.18));
}
:root[data-theme="dark"] .brand:hover .brand-logo {
  filter: drop-shadow(0 4px 8px rgba(50, 227, 232, 0.18))
          drop-shadow(0 18px 34px rgba(159, 98, 255, 0.35))
          brightness(1.06);
}

.site-footer .brand-logo {
  height: 88px;
  max-width: 320px;
  filter: drop-shadow(0 4px 10px rgba(14, 26, 60, 0.10));
}
:root[data-theme="dark"] .site-footer .brand-logo {
  filter: drop-shadow(0 6px 16px rgba(124, 42, 242, 0.18)) brightness(1.03);
}

.nav-wrap { height: 88px; }

@media (max-width: 900px) {
  .brand-logo { height: 60px; max-width: 230px; }
  .nav-wrap { height: 80px; }
}
@media (max-width: 720px) {
  .brand-logo { height: 54px; max-width: 200px; }
  .site-footer .brand-logo { height: 72px; max-width: 260px; }
  .nav-wrap { height: 72px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 48px; max-width: 180px; }
}

/* --- Home B2B hero visual --- */
.h-stats {
  margin-top: 44px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-1);
}
.h-stat { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 96px; }
.h-stat strong {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.h-stat span {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--c-muted);
  font-weight: 500;
}
.h-stat-sep {
  width: 1px; height: 44px;
  background: var(--c-border);
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .h-stat-sep { display: none; }
}

.home-hero-visual {
  position: relative;
  height: 560px;
  display: grid;
  place-items: center;
}
.home-hero-img {
  width: 82%;
  height: 92%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  border: 4px solid #fff;
  background: var(--c-bg-2);
}
.home-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.card-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-2);
  z-index: 3;
  animation: bob 4.2s ease-in-out infinite;
}
.card-float-l { top: 6%; left: 0%; animation-delay: 0s; }
.card-float-r { bottom: 10%; right: 0%; animation-delay: 1.4s; }
.cfic {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px; display: grid; place-items: center;
  color: #fff;
}
.cfic.ci { background: linear-gradient(135deg, #00c2d4, #2e6be4); }
.cfic.or { background: linear-gradient(135deg, #ff7a3d, #ff9e57); }
.cfic.gr { background: linear-gradient(135deg, #22c55e, #00c2d4); }
.cfic.pv { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.card-float strong { display: block; font-size: 0.88rem; color: var(--c-ink); font-weight: 700; line-height: 1.2;}
.card-float span { font-size: 0.78rem; color: var(--c-muted); font-weight: 500; }

/* --- Section kicker light (for dark banners) --- */
.section-kicker.light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffd7b1;
}

/* --- Servicios grid (B2B main services) --- */
.servicios { background: var(--c-bg); }
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.servicio {
  position: relative;
  padding: 40px 36px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.servicio:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: transparent;
}
.servicio-dark {
  background: linear-gradient(160deg, #151637 0%, #2c1760 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-3);
}
.servicio-dark:hover { box-shadow: var(--shadow-lg); }
.servicio-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.servicio-ico {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
}
.servicio-ico.ci { background: linear-gradient(135deg, #00c2d4, #2e6be4); box-shadow: 0 12px 26px -12px rgba(46, 107, 228, 0.6); }
.servicio-ico.or { background: linear-gradient(135deg, #ff7a3d, #ff9e57); box-shadow: 0 12px 26px -12px rgba(255, 122, 61, 0.6); }
.servicio-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--c-muted-2);
}
.servicio-dark .servicio-num { color: rgba(255,255,255,0.3); }
.servicio h3 { margin-bottom: 10px; }
.servicio-dark h3 { color: #fff; }
.servicio p { margin-bottom: 20px; }
.servicio-dark p { color: rgba(255, 255, 255, 0.75); }
.servicio-list { display: grid; gap: 10px; margin-bottom: 26px; }
.servicio-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  align-items: start;
  font-size: 0.92rem; font-weight: 500;
  color: var(--c-ink-2);
}
.servicio-list svg {
  color: var(--c-green);
  margin-top: 3px;
}
.servicio-list.light-list li { color: rgba(255, 255, 255, 0.88); }
.servicio-list.light-list svg { color: #86efac; }
.servicio-cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-purple-deep);
  display: inline-flex;
  align-items: center;
  justify-self: flex-start;
  padding: 10px 4px 0;
  width: fit-content;
  transition: transform 0.2s ease, color 0.2s ease;
}
.servicio-cta:hover { color: var(--c-purple); transform: translateX(3px); }
.servicio-cta.light { color: #ffcdb0; }
.servicio-cta.light:hover { color: #fff; }

/* --- Course grid (Capacitaciones cards shared) --- */
.section-hero-page {
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3);
  border-color: transparent;
}
.course-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.course-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 27, 58, 0.35) 100%);
  pointer-events: none;
}
.course-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.course-tag.tag-pv { background: rgba(124, 58, 237, 0.92); color: #fff; }
.course-tag.tag-or { background: rgba(255, 122, 61, 0.95); color: #fff; }
.course-tag.tag-ci { background: rgba(0, 194, 212, 0.95); color: #074a51; }
.course-tag.tag-gr { background: rgba(34, 197, 94, 0.95); color: #0b3a1a; }

.course-body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.course-body > p {
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.course-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-muted);
}
.course-meta svg { color: var(--c-purple); }
.course-cta {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--c-purple-deep);
  padding-top: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.course-card:hover .course-cta {
  color: var(--c-purple);
  transform: translateX(3px);
}
.all-courses { text-align: center; }

/* --- Por qué (pq) list --- */
.porquex { background: var(--c-bg-2); position: relative; }
.porquex::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(124, 58, 237, 0.07) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.5;
}
.porquex > .container { position: relative; z-index: 2; }

.pq-list { display: grid; gap: 14px; }
.pq {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pq:hover { transform: translateX(4px); box-shadow: var(--shadow-1); }
.pq-ico {
  width: 46px; height: 46px;
  border-radius: 12px; color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pq-ico.ci { background: linear-gradient(135deg, #00c2d4, #2e6be4); }
.pq-ico.or { background: linear-gradient(135deg, #ff7a3d, #ff9e57); }
.pq-ico.gr { background: linear-gradient(135deg, #22c55e, #00c2d4); }
.pq-ico.pv { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.pq h4 { margin-bottom: 3px; }
.pq p { font-size: 0.9rem; line-height: 1.5; }

/* --- Proceso --- */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.proceso-grid::before {
  content: "";
  position: absolute;
  top: 52px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-border-strong), transparent);
  z-index: 0;
}
.paso {
  position: relative;
  z-index: 1;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.paso:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}
.paso-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--grad-main);
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 24px -10px rgba(124, 58, 237, 0.55);
}
.paso h4 { margin-bottom: 6px; }
.paso p { font-size: 0.88rem; line-height: 1.55; }

/* --- Contacto CTA banner (dark) --- */
.contacto-banner {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0f2a 0%, #2c1568 55%, #452aa3 100%);
  color: #fff;
}
.contacto-banner::before {
  content: "";
  position: absolute;
  top: -60%; right: -20%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 61, 0.35), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.contacto-banner::after {
  content: "";
  position: absolute;
  bottom: -50%; left: -10%;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 212, 0.3), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}
.cta-inner .hero-ctas { justify-content: flex-end; margin-bottom: 0; }

/* --- Capacitaciones page: IA section --- */
.section-ia {
  background: linear-gradient(180deg, var(--c-bg-2) 0%, var(--c-bg) 100%);
}
.ia-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 40px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
}
.ia-banner h2 { margin-top: 12px; }
.ia-banner-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-3);
}
.ia-banner-visual img { width: 100%; height: 100%; object-fit: cover; }
.ia-badge {
  position: absolute;
  bottom: 18px; left: -10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-2);
}
.ia-badge strong {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--c-orange);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ia-badge span { font-size: 0.78rem; font-weight: 600; line-height: 1.3; color: var(--c-ink-2); }

.ia-objetivos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.obj {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.obj::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-cian), var(--c-purple), var(--c-orange));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.obj:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.obj:hover::before { transform: scaleX(1); }
.obj-num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 10px;
}
.obj h4 { margin-bottom: 6px; }
.obj p { font-size: 0.9rem; line-height: 1.55; }

/* =========================================================
   Responsive (v2 additions)
   ========================================================= */
@media (max-width: 1080px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .proceso-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .proceso-grid::before { display: none; }
  .home-hero-visual { height: 460px; }
  .ia-objetivos { grid-template-columns: repeat(2, 1fr); }
  .ia-banner { grid-template-columns: 1fr; padding: 28px; }
  .ia-banner-visual { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .home-hero-visual {
    height: 420px; max-width: 540px; margin: 0 auto; width: 100%;
  }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner .hero-ctas { justify-content: flex-start; }
  .course-grid { grid-template-columns: 1fr; }
  .about-grid, .contacto-grid { grid-template-columns: 1fr; }
  .ia-objetivos { grid-template-columns: repeat(2, 1fr); }
  .porquex .about-grid { grid-template-columns: 1fr; }
  .porquex .about-visual { max-width: 540px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  .ia-objetivos, .proceso-grid { grid-template-columns: 1fr; }
  .servicio { padding: 28px 22px; }
  .course-body { padding: 22px 20px 22px; }
  .h-stats { padding: 18px; gap: 12px; }
  .h-stat strong { font-size: 1.5rem; }
  .ia-banner { padding: 22px; }
  .card-float-l { left: -6px; }
  .card-float-r { right: -6px; }
  .card-float { padding: 10px 12px; gap: 10px; }
  .ia-badge { left: 8px; bottom: 12px; }
}
@media (max-width: 480px) {
  .home-hero-visual { height: 380px; }
  .home-hero-img { width: 88%; height: 92%; }
  .hero-title { font-size: 2.25rem; }
  .hero-sub { font-size: 1rem; }
}
