/* ================================================================
   LEARsys — Hoja de estilos principal
   css/style.css
   Sistema de diseño propio (sin frameworks externos: sin Bootstrap,
   sin librerías de animación). CSS puro + variables + vanilla JS.
================================================================ */

/* ----------------------------------------------------------------
   1. TOKENS DE DISEÑO
---------------------------------------------------------------- */
:root {
  /* Paleta — tomada del degradado real del logotipo LEARsys */
  --navy-950: #0A0A2A;   /* fondo hero / secciones oscuras */
  --navy-900: #11124A;
  --navy-800: #171B5C;
  --blue-700: #1E4FC4;   /* azul primario (botones, links) */
  --blue-600: #2C69E0;
  --sky-500:  #35C0F0;   /* celeste — acento de marca */
  --sky-300:  #8FE0FA;
  --mint-500: #16C79A;   /* verde-azulado — acento secundario / "vivo" */
  --mint-300: #7EEAD0;

  --ink-900:  #10122B;   /* texto principal sobre blanco */
  --ink-600:  #464A6B;   /* texto secundario */
  --ink-400:  #7B7F9E;   /* texto terciario / placeholders */

  --paper-0:  #FFFFFF;
  --paper-50: #F5F8FD;
  --paper-100:#EBF1FB;
  --line-200: #DEE4F2;

  /* Gradientes de marca */
  --grad-brand: linear-gradient(115deg, var(--navy-900) 0%, var(--blue-700) 46%, var(--sky-500) 100%);
  --grad-brand-soft: linear-gradient(115deg, rgba(17,18,74,.06) 0%, rgba(44,105,224,.08) 50%, rgba(53,192,240,.10) 100%);
  --grad-mint: linear-gradient(120deg, var(--mint-500) 0%, var(--blue-700) 100%);
  --grad-hero-bg: radial-gradient(ellipse 80% 60% at 20% 0%, #16205e 0%, var(--navy-950) 55%), linear-gradient(180deg, var(--navy-950), #060618);

  /* Tipografía */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Espaciado */
  --gap-section: clamp(64px, 9vw, 128px);
  --gap-section-sm: clamp(40px, 6vw, 72px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(16, 18, 43, .06);
  --shadow-md: 0 12px 32px rgba(16, 18, 43, .10);
  --shadow-lg: 0 24px 60px rgba(10, 10, 42, .18);
  --shadow-brand: 0 16px 40px rgba(30, 79, 196, .28);

  --container: 1220px;
  --header-h: 84px;
}

/* ----------------------------------------------------------------
   2. RESET / BASE
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
svg { display: block; width: 20px; height: 20px; flex: none; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }
.section-pad { padding-block: var(--gap-section); }
.section-pad-sm { padding-block: var(--gap-section-sm); }

.bg-paper { background: var(--paper-50); }
.bg-navy  { background: var(--grad-hero-bg); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

/* Encabezado de sección reutilizable */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--paper-100);
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow svg { width: 15px; height: 15px; flex: none; }
.eyebrow svg { width: 15px; height: 15px; flex: none; }
.bg-navy .eyebrow { background: rgba(255,255,255,.08); color: var(--sky-300); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.lead { margin-top: 16px; color: var(--ink-600); font-size: 1.08rem; }
.bg-navy .section-head p.lead { color: #B9C0E8; }

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------------------------------------------------
   3. BOTONES
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .96rem;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(30,79,196,.36); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-200);
  color: var(--navy-950);
}
.btn-ghost:hover { border-color: var(--blue-700); color: var(--blue-700); transform: translateY(-2px); }
.bg-navy .btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.bg-navy .btn-ghost:hover { border-color: var(--sky-500); color: var(--sky-500); }
.hero .btn-ghost, .page-header .btn-ghost, .cta-band .btn-ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.hero .btn-ghost:hover, .page-header .btn-ghost:hover, .cta-band .btn-ghost:hover { border-color: var(--sky-500); color: var(--sky-500); }

.btn-white { background: #fff; color: var(--navy-950); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: #1FAF59;
  color: #fff;
}
.btn-whatsapp:hover { background: #189249; transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .86rem; }

/* ----------------------------------------------------------------
   4. HEADER / NAV
---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 42, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, height .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 34, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: 72px;
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 500;
  color: #DCE1F7;
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  transition: background-color .2s ease, color .2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
.main-nav a svg { width: 14px; height: 14px; flex: none; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .dropdown a { color: var(--ink-900); display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.main-nav .dropdown a:hover { background: var(--paper-50); color: var(--blue-700); }
.main-nav .dropdown a svg { width: 17px; height: 17px; color: var(--blue-700); flex: none; }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-social { display: flex; align-items: center; gap: 8px; }
.header-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  transition: all .2s ease; flex: none;
}
.header-social a svg { width: 17px; height: 17px; color: #C9CFEE; }
.header-social a:hover { transform: translateY(-2px); border-color: transparent; }
.header-social a.wa-link { background: #1FAF59; border-color: transparent; }
.header-social a.wa-link svg { color: #fff; }
.header-social a.wa-link:hover { background: #189249; }
.header-social a:not(.wa-link):hover { background: var(--grad-brand); }
.header-social a:not(.wa-link):hover svg { color: #fff; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  align-items: center; justify-content: center;
  flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(0) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(0) rotate(-45deg); }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 72px 0 0 0; height: calc(100dvh - 72px); background: #090A2C; flex-direction: column; align-items: stretch; padding: 14px 20px 40px; gap: 4px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 15px 16px; font-size: 1.02rem; }
  .main-nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(255,255,255,.04); box-shadow: none; display: none; margin-top: 2px; }
  .main-nav .has-dropdown.is-open .dropdown { display: block; }
  .header-cta .btn-primary { padding: 12px; }
  .header-social a { width: 34px; height: 34px; }
  .header-social a svg { width: 15px; height: 15px; }
  .header-social a:not(.wa-link) { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ----------------------------------------------------------------
   5. HERO — Circuito animado (elemento de firma de marca)
---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 90px;
  background: var(--grad-hero-bg);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--sky-500), var(--mint-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: #B9C0E8; max-width: 540px; margin-bottom: 14px; }
.hero .lead:last-of-type { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span {
  font-size: .82rem; font-weight: 600; font-family: var(--font-display);
  color: #C9CFEE; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 7px 14px; border-radius: var(--radius-pill);
}

.hero-visual { position: relative; aspect-ratio: 1/1; max-width: 480px; margin-inline: auto; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hero-visual.has-photo {
  aspect-ratio: 6/5;
  animation: heroPhotoFloat 7s ease-in-out infinite;
}
.hero-visual-frame {
  width: 100%; height: 100%; position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-visual-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--navy-950) 0%, rgba(10,10,42,.55) 13%, rgba(10,10,42,.08) 30%, rgba(10,10,42,0) 46%);
  pointer-events: none;
}
@keyframes heroPhotoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-visual.has-photo { animation: none; }
}
.circuit-line { fill: none; stroke: url(#circuitGrad); stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
.circuit-node { fill: var(--sky-500); }
.circuit-node.pulse { animation: nodePulse 2.6s ease-in-out infinite; }
.circuit-node.pulse.d1 { animation-delay: .2s; }
.circuit-node.pulse.d2 { animation-delay: .7s; }
.circuit-node.pulse.d3 { animation-delay: 1.2s; }
.circuit-node.pulse.d4 { animation-delay: 1.7s; }
.circuit-node.pulse.d5 { animation-delay: .4s; }
@keyframes nodePulse {
  0%, 100% { opacity: .55; r: 3.4; }
  50% { opacity: 1; r: 5.6; filter: drop-shadow(0 0 6px var(--sky-500)); }
}
.circuit-pulse-dot { fill: var(--mint-500); filter: drop-shadow(0 0 5px var(--mint-500)); }
.core-dot { animation: corePulse 2.2s ease-in-out infinite; }
@keyframes corePulse { 0%, 100% { r: 8; } 50% { r: 10.5; } }
.core-glow { animation: coreGlow 3.4s ease-in-out infinite; transform-origin: 240px 240px; }
@keyframes coreGlow { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .7; transform: scale(1.25); } }
.orbit-ring { transform-box: fill-box; transform-origin: center; }
.orbit-ring.cw { animation: spinCW 34s linear infinite; }
.orbit-ring.ccw { animation: spinCCW 24s linear infinite; }
@keyframes spinCW { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinCCW { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.flow-line { stroke-dasharray: 5 9; animation: flowDash 1.6s linear infinite; opacity: .8; }
@keyframes flowDash { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) {
  .orbit-ring.cw, .orbit-ring.ccw, .flow-line, .core-glow, .core-dot { animation: none; }
}
.hero-badge {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(11,12,46,.75);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: floatY 5s ease-in-out infinite;
}
.hero-badge .ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--grad-mint); flex: none; }
.hero-badge .ico svg { width: 18px; height: 18px; color: #06231b; }
.hero-badge small { display: block; font-weight: 400; color: #9CA3C7; font-size: .72rem; margin-top: 1px; }
.badge-1 { top: 4%; right: -4%; }
.badge-2 { bottom: 10%; left: -6%; animation-delay: 1.4s; }
@media (max-width: 620px) { .badge-1, .badge-2 { position: static; margin: 14px auto 0; width: fit-content; animation: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-ambient {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(420px 420px at 88% 12%, rgba(53,192,240,.20), transparent 70%),
    radial-gradient(360px 360px at 6% 90%, rgba(22,199,154,.16), transparent 70%);
}

/* Marquee de servicios (reemplaza carruseles pesados por CSS puro) */
.marquee {
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
  z-index: 2;
}
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marqueeScroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: #98A0CB;
  white-space: nowrap;
}
.marquee-track span svg { width: 16px; height: 16px; color: var(--sky-500); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Encabezado de páginas internas (no home) */
.page-header {
  position: relative;
  padding-top: calc(var(--header-h) + 74px);
  padding-bottom: 74px;
  background: var(--grad-hero-bg);
  color: #fff;
  overflow: hidden;
}
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { color: #fff; max-width: 760px; }
.page-header p.lead { color: #B9C0E8; max-width: 620px; margin-top: 16px; font-size: 1.06rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: #8B92C0; margin-bottom: 20px; font-family: var(--font-display); }
.breadcrumb a:hover { color: var(--sky-500); }

/* Panel de foto lateral (33% del recuadro) con degradado de transición */
.page-header-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 34%;
  min-width: 260px;
  overflow: hidden;
  z-index: 1;
}
.page-header-media img { width: 100%; height: 100%; object-fit: cover; }
.page-header-media .ph-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(150deg, rgba(53,192,240,.16), rgba(22,199,154,.10));
  display: flex; align-items: center; justify-content: center;
}
.page-header-media .ph-fallback svg { width: 34%; height: auto; color: rgba(255,255,255,.16); }
.page-header-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-950) 0%, rgba(10,10,42,.86) 22%, rgba(10,10,42,.15) 62%, rgba(10,10,42,0) 100%);
}
.page-header .container { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .page-header-media { width: 46%; opacity: .55; }
}
@media (max-width: 700px) {
  .page-header-media { display: none; }
}

/* ----------------------------------------------------------------
   6. TARJETAS DE SERVICIOS
---------------------------------------------------------------- */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .ico {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand-soft);
  margin-bottom: 20px;
}
.service-card .ico svg { width: 26px; height: 26px; color: var(--blue-700); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-600); font-size: .96rem; flex: 1; }
.service-card .more { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--blue-700); }
.service-card .more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.service-card:hover .more svg { transform: translateX(4px); }
.service-card.on-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.service-card.on-dark h3 { color: #fff; }
.service-card.on-dark p { color: #AEB4DA; }
.service-card.on-dark .ico { background: rgba(255,255,255,.08); }
.service-card.on-dark .ico svg { color: var(--sky-500); }

/* ----------------------------------------------------------------
   7. PROCESO / MÉTODO (pasos conectados por circuito — es una
      secuencia real, por eso se numeran)
---------------------------------------------------------------- */
.process-rail { position: relative; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
@media (max-width: 980px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .process-steps { grid-template-columns: 1fr; } }
.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
}
.process-step .step-num {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  color: var(--blue-700); letter-spacing: .05em; margin-bottom: 16px;
}
.process-step .step-num .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-mint); box-shadow: 0 0 0 5px rgba(22,199,154,.15); }
.process-step h3 { margin-bottom: 10px; color: var(--navy-950); }
.process-step p { color: var(--ink-600); font-size: .93rem; }
.process-step p.hook { color: var(--navy-950); font-weight: 700; font-size: .96rem; margin-bottom: 8px; }
.process-step .step-c { position: absolute; top: 24px; right: 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--paper-100); letter-spacing: -.02em; }

/* ----------------------------------------------------------------
   8. TARJETAS DE PROYECTOS / PORTAFOLIO
---------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-bar button {
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-200); background: #fff; color: var(--ink-600);
  transition: all .2s ease;
}
.filter-bar button:hover { border-color: var(--blue-700); color: var(--blue-700); }
.filter-bar button.active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }

.project-card {
  background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform .28s ease, box-shadow .28s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card .thumb {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  background: var(--grad-brand-soft);
  display: flex; align-items: center; justify-content: center;
}
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .thumb .ph-icon { width: 52px; height: 52px; color: var(--blue-700); opacity: .35; }
.project-card .tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .03em;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(10,10,42,.72); color: #fff; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 6px;
}
.project-card .tag svg { width: 13px; height: 13px; color: var(--sky-500); }
.project-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.project-card .ramo { font-size: .78rem; font-weight: 600; color: var(--mint-500); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.project-card h3 { margin-bottom: 8px; }
.project-card .sub { color: var(--ink-600); font-size: .9rem; margin-bottom: 14px; }
.project-card .kv { display: flex; flex-direction: column; gap: 8px; font-size: .87rem; margin-top: auto; border-top: 1px dashed var(--line-200); padding-top: 14px; }
.project-card .kv b { color: var(--navy-950); font-family: var(--font-display); font-weight: 700; }
.project-card .kv .lbl { color: var(--ink-400); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; display: block; margin-bottom: 2px; }

/* ----------------------------------------------------------------
   9. TARJETAS DE CURSOS
---------------------------------------------------------------- */
.course-card {
  background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform .28s ease, box-shadow .28s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card .top {
  padding: 22px; background: var(--grad-hero-bg); color: #fff; position: relative; overflow: hidden;
}
.course-card .top .logo-slot { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; overflow: hidden; }
.course-card .top .logo-slot img { width: 100%; height: 100%; object-fit: cover; }
.course-card .top .logo-slot svg { width: 26px; height: 26px; color: var(--sky-500); }
.course-card .top .badge-nivel { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; font-family: var(--font-display); background: rgba(255,255,255,.1); padding: 5px 11px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: .04em; }
.course-card .top h3 { color: #fff; margin-bottom: 4px; }
.course-card .top .sub { color: #AEB4DA; font-size: .88rem; }
.course-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.course-card .meta-row { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--ink-600); }
.course-card .meta-row svg { width: 17px; height: 17px; color: var(--blue-700); flex: none; margin-top: 2px; }
.course-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-200); }
.course-card .price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy-950); }
.course-card .price small { display: block; font-weight: 500; font-size: .7rem; color: var(--ink-400); text-transform: uppercase; }
.course-card .cupo-flag { font-size: .74rem; font-weight: 700; color: #C4590A; background: #FFF1E6; padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-display); }

/* ----------------------------------------------------------------
   10. TESTIMONIOS / CTA FINAL / FAQ
---------------------------------------------------------------- */
.cta-band { background: var(--grad-brand); border-radius: var(--radius-lg); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; color: #fff; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 520px; }
.cta-band p { color: rgba(255,255,255,.82); margin-top: 10px; max-width: 480px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }

.faq-item { border-bottom: 1px solid var(--line-200); }
.faq-item button.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left; padding: 22px 4px; background: none; border: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy-950);
}
.faq-item button.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--blue-700); transition: transform .25s ease; }
.faq-item.is-open button.faq-q svg { transform: rotate(45deg); }
.faq-item .faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item .faq-a-inner { padding: 0 4px 22px; color: var(--ink-600); font-size: .96rem; max-width: 760px; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ----------------------------------------------------------------
   11. FORMULARIOS (contacto / admin comparten estilo base)
---------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .86rem; margin-bottom: 8px; color: var(--navy-950); }
.field .req { color: #E4574B; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-200);
  background: var(--paper-50); font-size: .96rem; color: var(--ink-900); transition: border-color .2s ease, background-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-700); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--ink-400); margin-top: 10px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; margin-bottom: 20px; display: none; }
.form-alert.show { display: block; }
.form-alert.ok { background: #E9FBF3; color: #0F7A55; border: 1px solid #B9F0D6; }
.form-alert.err { background: #FDECEC; color: #B3261E; border: 1px solid #F6C6C2; }

/* ----------------------------------------------------------------
   12. CONTACTO — bloque de info
---------------------------------------------------------------- */
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line-200); }
.contact-info-item .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-brand-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-info-item .ico svg { width: 22px; height: 22px; color: var(--blue-700); }
.contact-info-item h4 { font-family: var(--font-display); font-weight: 700; font-size: .96rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--ink-600); font-size: .93rem; display: block; }
.contact-info-item a:hover { color: var(--blue-700); }

.social-row { display: flex; gap: 10px; margin-top: 24px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 12px; background: var(--paper-100);
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.social-row a svg { width: 19px; height: 19px; color: var(--blue-700); }
.social-row a:hover { background: var(--grad-brand); transform: translateY(-3px); }
.social-row a:hover svg { color: #fff; }

/* ----------------------------------------------------------------
   13. FOOTER
---------------------------------------------------------------- */
.site-footer { background: #07071F; color: #9BA1C9; padding-top: 74px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: .92rem; margin-bottom: 20px; letter-spacing: .02em; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul a { font-size: .9rem; transition: color .2s ease; }
.footer-grid ul a:hover { color: var(--sky-500); }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; max-width: 300px; color: #8188B4; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px 0; font-size: .82rem; color: #6D74A0; }
.footer-bottom a:hover { color: var(--sky-500); }
.powered-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600;
  font-family: var(--font-display); color: #B9C0E8; transition: all .2s ease;
}
.powered-pill:hover { border-color: var(--sky-500); color: var(--sky-500); }
.powered-pill svg { width: 14px; height: 14px; color: var(--mint-500); }

/* ----------------------------------------------------------------
   14. WHATSAPP FLOTANTE
---------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 600;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1FAF59; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(31,175,89,.42);
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float:hover { transform: scale(1.06); }
@keyframes waPulse { 0%,100% { box-shadow: 0 10px 30px rgba(31,175,89,.42); } 50% { box-shadow: 0 10px 30px rgba(31,175,89,.7), 0 0 0 10px rgba(31,175,89,.08); } }

/* ----------------------------------------------------------------
   15. UTILIDADES / ANIMACIÓN AL SCROLL
---------------------------------------------------------------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .4s; }

.stack { display: flex; flex-direction: column; }
.center-text { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-600); }
.empty-state svg { width: 54px; height: 54px; color: var(--line-200); margin: 0 auto 18px; }

.ico-inline { width: 22px; height: 22px; color: var(--mint-500); flex: none; margin-top: 2px; }
.ico-inline + span b { color: var(--navy-950); }

/* Divisor de sección tipo "circuito" (elemento de firma, ligero, sin imágenes) */
.circuit-divider { height: 34px; width: 100%; overflow: hidden; }
.circuit-divider svg { width: 100%; height: 100%; }

::selection { background: var(--sky-500); color: #08123a; }

/* Scrollbar sutil (opcional, no crítico) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-50); }
::-webkit-scrollbar-thumb { background: var(--line-200); border-radius: 10px; }
