/* =========================================================================
   Familia VektaC — estilos base
   Este archivo es IDÉNTICO en vektac.com, vektacampus.com y consulting.vektac.com.
   Lo que cambia entre sitios (el acento) está en css/acento.css.

   Neutros, tipografía, radios y sombras: material/theme.css (:root y .dark).
   Ajustes de accesibilidad (WCAG AA) respecto de theme.css, solo para texto:
     - texto suave de día: #5d6366 (el #7d8283 del tema no llega a 4,5:1)
     - borde de campos: #80868c (el #a7adb4 no llega a 3:1)
   ========================================================================= */

:root {
  /* --- theme.css (día) --- */
  --card: #f5f8fa;
  --input: #80868c;
  --muted: #dee6ed;
  --accent: #dce3e9;
  --border: #d4dadb;
  --radius: 0.5rem;
  --popover: #ffffff;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --secondary-foreground: #464e53;
  --background: #f1f1f1;
  --foreground: #29323d;
  --shadow-blur: 4px;
  --shadow-color: #000000;
  --shadow-spread: 0px;
  --letter-spacing: -0.01em;
  --shadow-opacity: 0.1;
  --card-foreground: #131814;
  --shadow-offset-x: 0px;
  --shadow-offset-y: 2px;
  --accent-foreground: #1b2328;

  /* --- Colores de la familia (iguales en los tres sitios) --- */
  --color-vektac: #1E4D6B;          /* azul petróleo: marca madre */
  --color-vektac-oscuro: #143447;
  --color-campus: #E8862A;          /* naranja ámbar */
  --color-campus-oscuro: #B35400;
  --color-consulting: #3A7CA5;      /* azul acero */
  --color-consulting-oscuro: #2E5F80;

  /* --- Semánticos --- */
  --marca: var(--color-vektac);     /* color del logo de VektaC */
  --heading: #1b2328;
  --texto-suave: var(--secondary-foreground);
  --texto-tenue: #5d6366;
  --field-bg: #ffffff;
  --ok: #1b6e3a;
  --err: #c62828;
  --shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur) var(--shadow-spread)
            color-mix(in srgb, var(--shadow-color) calc(var(--shadow-opacity) * 100%), transparent);
  --shadow-lg: 0 12px 32px -8px color-mix(in srgb, var(--shadow-color) 18%, transparent);

  /* Colores de cada rama en su modo (para botones y accesos a las ramas) */
  --rama-campus: var(--color-campus);
  --rama-campus-hover: #F0A050;
  --rama-campus-sobre: #1b2328;
  --rama-campus-texto: var(--color-campus-oscuro);
  --rama-consulting: var(--color-consulting);
  --rama-consulting-hover: var(--color-consulting-oscuro);
  --rama-consulting-sobre: #ffffff;
  --rama-consulting-texto: var(--color-consulting-oscuro);
  /* VektaC en el pie ("Sitios de la familia"): ícono y "C" en el azul de su favicon, en día y noche */
  --rama-vektac-texto: #5795d9;

  /* Medidas */
  --header-h: 4rem;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7rem);

  color-scheme: light;
}

.dark {
  /* --- theme.css (.dark) --- */
  --card: #242526;
  --input: #6b7075;
  --muted: #191a1b;
  --accent: #15171a;
  --border: #383b3e;
  --popover: #2e2f30;
  --secondary-foreground: #b6bbc3;
  --background: #111111;
  --foreground: #b6bbc3;
  --shadow-blur: 8px;
  --shadow-opacity: 0.3;
  --card-foreground: #f5f7fa;
  --shadow-offset-y: 4px;
  --accent-foreground: #eef2f5;

  --marca: #ffffff;                 /* el logo va en blanco de noche */
  --heading: #f5f7fa;
  --texto-suave: #b6bbc3;
  --texto-tenue: #a9b1b7;
  --field-bg: #1d1e1f;
  --ok: #5cc98a;
  --err: #ff8a80;

  --rama-campus: #E8862A;
  --rama-campus-hover: #F0A050;
  --rama-campus-sobre: #111111;
  --rama-campus-texto: #E8862A;
  --rama-consulting: #6AA9D3;
  --rama-consulting-hover: #8BBCDD;
  --rama-consulting-sobre: #111111;
  --rama-consulting-texto: #6AA9D3;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
  background: var(--background);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: var(--letter-spacing);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--heading); font-weight: 600; }

a { color: var(--acento-texto); text-underline-offset: 0.3em; text-decoration-thickness: 1px; text-decoration-skip-ink: auto; }
a:hover { color: var(--acento-hover-texto, var(--acento-texto)); }

:focus-visible { outline: 2px solid var(--acento-texto); outline-offset: 3px; border-radius: 4px; }

figure { margin: 0; }

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

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--acento); color: var(--acento-sobre); padding: 0.5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; color: var(--acento-sobre); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acento-texto);
  margin-bottom: 0.5rem;
}

/* ---------- Logo ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--heading);
}
.brand__logo { width: 22px; height: 30px; color: var(--marca); flex: none; }
.brand__name { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--marca); line-height: 1; }
.brand__name span { color: var(--acento-texto); }
.brand__picto { width: 26px; height: 26px; color: var(--acento-texto); flex: none; }
.brand:hover .brand__name { color: var(--marca); }

/* Logo de las ramas: el logo de VektaC lleva al sitio madre; el nombre y el
   pictograma, a la portada de la rama */
.brand--rama { gap: 0.55rem; }
.brand--rama > a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; border-radius: 4px; }
.brand--rama .brand__name span { color: var(--acento-texto); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.3;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--acento); color: var(--acento-sobre); }
.btn--primary:hover { background: var(--acento-hover); color: var(--acento-sobre); }
.btn--ghost { border-color: color-mix(in srgb, var(--acento-texto) 50%, transparent); color: var(--acento-texto); background: transparent; }
.btn--ghost:hover { border-color: var(--acento-texto); background: color-mix(in srgb, var(--acento-texto) 8%, transparent); color: var(--acento-texto); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; }

/* Accesos grandes a las ramas: cada uno en el acento de su rama */
.ramas { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 680px) { .ramas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 680px) { .ramas--una { grid-template-columns: minmax(0, 30rem); } }
.rama {
  --rama: var(--acento); --rama-hover: var(--acento-hover); --rama-sobre: var(--acento-sobre);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.25rem 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: calc(var(--radius) * 1.5);
  background: var(--rama); color: var(--rama-sobre);
  text-decoration: none; text-align: left;
  box-shadow: var(--shadow);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.rama:hover { background: var(--rama-hover); color: var(--rama-sobre); box-shadow: var(--shadow-lg); }
.rama:focus-visible { outline-color: var(--rama); outline-offset: 4px; }
.rama__picto { width: 2.75rem; height: 2.75rem; grid-row: span 2; }
.rama__nombre { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.2; }
.rama__accion { grid-column: 2; font-size: 1rem; line-height: 1.35; opacity: .95; }
.rama__flecha { grid-row: 1 / span 2; grid-column: 3; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.rama:hover .rama__flecha { transform: translateX(3px); }
.rama--campus { --rama: var(--rama-campus); --rama-hover: var(--rama-campus-hover); --rama-sobre: var(--rama-campus-sobre); }
.rama--consulting { --rama: var(--rama-consulting); --rama-hover: var(--rama-consulting-hover); --rama-sobre: var(--rama-consulting-sobre); }
@media (prefers-reduced-motion: no-preference) {
  .rama:hover { transform: translateY(-2px); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--popover) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
/* Línea fina en el acento del sitio */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--acento);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 0.5rem; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; align-items: center; }
.site-nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius);
  color: var(--foreground); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap;
}
.site-nav a:hover { background: var(--accent); color: var(--heading); }
.site-nav a[aria-current="true"] { color: var(--acento-texto); }
.site-nav .site-nav__cta,
.site-nav .site-nav__cta[aria-current="true"] { background: var(--acento); color: var(--acento-sobre); margin-left: 0.4rem; }
.site-nav .site-nav__cta:hover { background: var(--acento-hover); color: var(--acento-sobre); }

.site-header__actions { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; }

.lang-switch {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 0.6rem;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--heading); text-decoration: none; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em;
}
.lang-switch:hover { background: var(--accent); color: var(--heading); }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
  background: transparent; color: var(--heading);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: transparent; cursor: pointer; border-radius: var(--radius);
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 22px; height: 2px; margin: auto; background: var(--heading);
  border-radius: 2px; transition: transform .2s, background-color .2s; position: relative;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .site-header__actions { margin-left: auto; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--popover);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  /* Sin JavaScript el menú del celular no se puede abrir: se oculta el botón
     (las mismas secciones están enlazadas en el pie de página) */
  .no-js .nav-toggle { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 0.85rem 0.5rem; font-size: 1.05rem; }
  .site-nav .site-nav__cta { margin: 0.5rem 0 0; text-align: center; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 1.05rem; }
  .site-header__actions { gap: 0.2rem; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--acento) 16%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, color-mix(in srgb, var(--acento) 10%, transparent) 0%, transparent 70%),
    var(--background);
  border-bottom: 1px solid var(--border);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__content { text-align: center; max-width: 58rem; }
.hero__eyebrow {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid color-mix(in srgb, var(--acento-texto) 35%, transparent);
  background: color-mix(in srgb, var(--popover) 70%, transparent);
  border-radius: 999px;
  color: var(--acento-texto); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero__lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--heading); font-weight: 500; margin-bottom: 1rem; }
.hero__text { max-width: 46rem; margin-inline: auto; color: var(--texto-suave); }
.hero__text p { margin-bottom: 0.9rem; }
.hero .ramas { max-width: 46rem; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
@media (max-width: 599px) {
  .hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 3rem; }
  .hero__eyebrow { margin-bottom: 1.1rem; }
  .hero h1 { font-size: 2rem; margin-bottom: 1rem; }
  .hero__lead { font-size: 1.1rem; }
  .hero__text { font-size: 0.975rem; line-height: 1.6; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--card); border-block: 1px solid var(--border); }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.prose { max-width: 46rem; }
.prose p { color: var(--texto-suave); }
.prose--center { margin-inline: auto; }

.statement {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2.25rem);
  border-left: 4px solid var(--acento);
  background: var(--popover);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-weight: 600; color: var(--heading); line-height: 1.45;
}
.statement--center {
  text-align: center; border-left: 0; border-top: 4px solid var(--acento);
  border-radius: 0 0 var(--radius) var(--radius);
  max-width: 46rem; margin-inline: auto;
}

.card {
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.35rem; }
.card p { color: var(--texto-suave); }

.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.figure-wide { margin: 3rem auto 0; max-width: 56rem; }
.figure-wide img { margin-inline: auto; }

/* Lista de ítems con barra lateral en el acento */
.features { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .features--3 { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-left: 3px solid var(--acento);
  background: var(--popover);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.feature h3, .feature h4 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--heading); line-height: 1.3; }
.feature p { color: var(--texto-suave); font-size: 0.975rem; }

.subhead { margin-top: 3.5rem; }

/* Etiquetas chicas en línea (formatos, públicos) */
.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips--center { justify-content: center; }
.chips li {
  padding: 0.3rem 0.85rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--acento-texto) 35%, var(--border));
  background: color-mix(in srgb, var(--popover) 80%, transparent);
  color: var(--heading); font-size: 0.875rem; font-weight: 500;
}

.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); font-weight: 600; color: var(--heading); }
.nota { font-size: 0.9rem; font-style: italic; color: var(--texto-tenue); margin-top: 1.5rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.acciones--center { justify-content: center; }
.acciones--flyer { margin-top: 0.75rem; }
.cierre { text-align: center; }
.cierre .lead { margin-top: 2.5rem; }

/* Lista de nombres (equipo en texto) */
.personas { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
@media (min-width: 700px) { .personas--2 { grid-template-columns: 1fr 1fr; } }
.personas strong { display: block; }
.personas span { color: var(--texto-suave); font-size: 0.95rem; }

/* Pasos numerados con figura al costado (metodología) */
.process { display: grid; gap: 2.5rem; align-items: start; }
.process__figure { max-width: 30rem; margin-inline: auto; }
@media (min-width: 960px) {
  .process { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .process__figure { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; gap: 0.9rem; }
.steps li {
  counter-increment: paso;
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 4rem;
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--texto-suave);
}
.steps li::before {
  content: counter(paso);
  position: absolute; left: 1.1rem; top: 1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acento); color: var(--acento-sobre); font-weight: 700; font-size: 0.95rem;
}

/* Tarjetas de servicios */
.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(2, 1fr); } }
.service {
  background: var(--popover);
  border: 1px solid var(--border);
  border-top: 3px solid var(--acento);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.service h3 { font-size: 1.15rem; }
.service p { color: var(--texto-suave); font-size: 0.975rem; }
.service ul { margin: 0.75rem 0 0; padding-left: 1.2rem; color: var(--foreground); font-size: 0.975rem; }
.service li + li { margin-top: 0.3rem; }

/* Tarjetas de cursos */
.cursos { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cursos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cursos { grid-template-columns: repeat(3, 1fr); } }
.curso {
  display: flex; flex-direction: column;
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.curso .curso__estado {
  align-self: flex-start;
  margin: 0 0 1rem; padding: 0.45rem 0.75rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--acento) 18%, transparent);
  color: var(--heading); font-size: 0.82rem; font-weight: 600; line-height: 1.4;
}
.curso h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.curso__frase { font-weight: 600; color: var(--acento-texto); margin-bottom: 0.75rem; }
.curso p { font-size: 0.95rem; color: var(--texto-suave); }
.curso__datos { margin: 0.75rem 0 1.25rem; font-size: 0.9rem; }
.curso__datos div + div { margin-top: 0.35rem; }
.curso__datos dt { display: inline; font-weight: 600; color: var(--heading); }
.curso__datos dd { display: inline; margin: 0; color: var(--texto-suave); }
.curso .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Página de un curso ---------- */
.hero--curso { min-height: 0; align-items: flex-start; padding: calc(var(--header-h) + 3.5rem) 0 3.5rem; }
.hero--curso .hero__content { text-align: left; max-width: 52rem; }
.hero--curso .chips { margin: 0 0 1.25rem; }
.hero--curso h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.icono { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icono--boton { width: 1.25rem; height: 1.25rem; }
.icono-caja {
  display: inline-grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: calc(var(--radius) * 1.5);
  background: color-mix(in srgb, var(--acento) 16%, transparent); color: var(--acento-texto);
}
.datos-clave { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.85rem 1.5rem; }
@media (min-width: 700px) { .datos-clave { grid-template-columns: 1fr 1fr; } }
.datos-clave li { display: flex; align-items: center; gap: 0.85rem; color: var(--texto-suave); line-height: 1.4; }

.herramientas { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); }
.herramientas li {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center;
  padding: 1rem 0.5rem; background: var(--popover); border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5); font-weight: 600; font-size: 0.95rem; color: var(--heading);
}
.flujo {
  margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--popover); border: 1px solid var(--border); border-radius: calc(var(--radius) * 2); box-shadow: var(--shadow);
}
.flujo__titulo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; color: var(--heading); margin-bottom: 1rem; }
.flujo__destino { color: var(--acento-texto); }
.flujo__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.flujo__grupo {
  flex: 1 1 16rem; list-style: none; margin: 0; padding: 0.75rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem;
  background: var(--card); border-radius: calc(var(--radius) * 1.5);
}
.flujo__grupo li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--heading); text-align: center; }
.flujo__grupo .icono { color: var(--acento-texto); }
.flujo__flecha { color: var(--acento-texto); }
.flujo__ia {
  display: grid; place-items: center; width: 4rem; height: 4rem; flex: none;
  border-radius: calc(var(--radius) * 2); background: var(--acento); color: var(--acento-sobre);
  font-weight: 800; font-size: 1.5rem;
}
@media (max-width: 640px) {
  .flujo__flecha { transform: rotate(90deg); }
  .flujo__fila { flex-direction: column; }
  .flujo__grupo { width: 100%; flex-basis: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0.85rem; }
}

.card__titulo { display: flex; align-items: center; gap: 0.85rem; font-size: 1.35rem; margin-bottom: 1.25rem; }
.lista-puntos, .lista-check, .lista-iconos { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; color: var(--texto-suave); }
.lista-puntos li { position: relative; padding-left: 1.25rem; line-height: 1.45; }
.lista-puntos li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--acento); }
.lista-puntos li.destacado {
  margin: 0 -0.75rem; padding: 0.5rem 0.75rem 0.5rem 2rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--acento) 14%, transparent); color: var(--heading); font-weight: 600;
}
.lista-puntos li.destacado::before { left: 0.75rem; top: 1.05em; }
.lista-check li, .lista-iconos li { display: flex; align-items: flex-start; gap: 0.65rem; line-height: 1.45; }
.lista-check .icono { width: 1.35rem; height: 1.35rem; padding: 0.15rem; border-radius: 50%; background: var(--acento); color: var(--acento-sobre); stroke-width: 2.6; margin-top: 0.05rem; }
.lista-iconos .icono { color: var(--acento-texto); width: 1.35rem; height: 1.35rem; margin-top: 0.05rem; }
.cifras { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.cifras li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0.75rem 0.4rem; border-radius: calc(var(--radius) * 1.5);
  background: color-mix(in srgb, var(--acento) 14%, transparent); line-height: 1.2;
}
.cifras strong { font-size: 1.35rem; font-weight: 800; color: var(--heading); }
.cifras span { font-size: 0.85rem; font-weight: 600; color: var(--texto-suave); }

.cierre-curso {
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--popover); border: 1px solid var(--border); border-top: 4px solid var(--acento);
  border-radius: calc(var(--radius) * 2); box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .cierre-curso { grid-template-columns: 1fr auto; gap: 0.75rem 2.5rem; }
  .cierre-curso .btn { grid-column: 2; grid-row: 1 / span 2; }
}
.cierre-curso__marca { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--heading); }
.cierre-curso__picto { width: 2.5rem; height: 2.5rem; color: var(--acento-texto); }
.cierre-curso h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin-bottom: 0.4rem; }
.cierre-curso p { color: var(--texto-suave); font-weight: 600; }

/* ---------- Equipo ---------- */
.team {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}
.member {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem 1.25rem;
  font: inherit; color: inherit;
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
}
button.member { cursor: pointer; transition: box-shadow .25s, border-color .25s; }
button.member:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--acento) 55%, var(--border)); }
.member__photo {
  width: 9rem; height: 12rem; object-fit: cover;
  border-radius: calc(var(--radius) * 1.5);
  margin-bottom: 1.1rem;
  background: var(--muted);
}
.member__name { font-weight: 700; font-size: 1.1rem; color: var(--heading); line-height: 1.3; }
.member__role { color: var(--texto-suave); font-size: 0.9rem; font-style: italic; margin-top: 0.35rem; line-height: 1.4; }
.member__spec { color: var(--texto-tenue); font-size: 0.9rem; margin-top: 0.6rem; line-height: 1.45; }
.member__more {
  margin-top: auto; padding-top: 1rem;
  color: var(--acento-texto); font-weight: 600; font-size: 0.9rem;
}
.member__more::after { content: " →"; }

/* Ficha ampliada (ventana) */
.ficha {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) * 2);
  background: var(--popover);
  color: var(--foreground);
  box-shadow: 0 24px 64px -12px rgb(0 0 0 / .35);
}
.ficha::backdrop { background: rgb(10 16 26 / .6); backdrop-filter: blur(3px); }
.ficha__inner { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); }
.ficha__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--heading);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.ficha__close:hover { background: var(--muted); }
.ficha__head {
  display: flex; align-items: center; gap: 1.25rem;
  padding-right: 3rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.ficha__photo { width: 6rem; height: 8rem; border-radius: var(--radius); object-fit: cover; flex: none; }
.ficha__head h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.ficha__role { color: var(--texto-suave); font-style: italic; }
.ficha__body { margin: 0; }
.ficha__body dt {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--acento-texto); margin-top: 1.25rem;
}
.ficha__body dt:first-child { margin-top: 0; }
.ficha__body dd { margin: 0.35rem 0 0; color: var(--foreground); }
.ficha__body ul { margin: 0; padding-left: 1.2rem; }
.ficha__body li + li { margin-top: 0.3rem; }
@media (max-width: 599px) {
  .ficha { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; margin: 0; }
  .ficha__head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .ficha[open] { animation: ficha-in .22s ease-out; }
  @keyframes ficha-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}

/* ---------- Contacto ---------- */
.contact.contact--solo { display: block; max-width: 44rem; margin-inline: auto; }
.contact--solo h2 { text-align: center; margin-bottom: 2rem; }
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; } }
.contact__info p:not(.eyebrow) { color: var(--texto-suave); }
.contact__mail { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.15rem; }
.contact__mail span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--texto-tenue); }
.contact__mail a { font-size: 1.25rem; font-weight: 600; text-decoration: none; word-break: break-all; }
.contact__mail a:hover { text-decoration: underline; }

.form {
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 600; font-size: 0.925rem; color: var(--heading); padding: 0; }
.optional { font-weight: 400; color: var(--texto-tenue); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--heading);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--field-bg);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--acento-texto); outline-offset: 0; border-color: var(--acento-texto); }
.field [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.875rem; color: var(--texto-tenue); margin-bottom: 1rem; }
.btn + .form-note { margin: 0.75rem 0 0; }
.form .btn { width: 100%; }
@media (min-width: 560px) { .form .btn { width: auto; } }
.form-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.5em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--err); }
.turnstile { margin-bottom: 1rem; min-height: 65px; }

/* Grupos de opciones (casillas y botones de radio) */
fieldset.field { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.opciones { display: grid; gap: 0.45rem; margin-top: 0.35rem; }
@media (min-width: 560px) { .opciones--2 { grid-template-columns: 1fr 1fr; } }
.opcion { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 400 !important; font-size: 0.95rem !important; color: var(--foreground) !important; cursor: pointer; line-height: 1.4; }
.opcion input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--acento); }
fieldset[aria-invalid="true"] .opciones { outline: 1px solid var(--err); outline-offset: 6px; border-radius: 4px; }
.field-hint { font-size: 0.85rem; color: var(--texto-tenue); margin: 0; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-block: 3rem 2rem; font-size: 0.925rem;
  background: var(--popover); border-top: 1px solid var(--border);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--acento);
}
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.1fr 1fr 1.2fr; gap: 3rem; } }
.site-footer__title {
  margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--texto-tenue);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li + li { margin-top: 0.4rem; }
.site-footer__nav a { color: var(--foreground); text-decoration: none; }
.site-footer__nav a:hover { color: var(--acento-texto); text-decoration: underline; }
.site-footer__mail { margin-top: 1rem; }
.site-footer__mail a { font-weight: 600; text-decoration: none; }
.site-footer__mail a:hover { text-decoration: underline; }

.familia li + li { margin-top: 0.6rem; }
.familia a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 700; color: var(--heading); letter-spacing: -0.01em;
}
.familia a:hover span { text-decoration: underline; }
.familia svg { width: 22px; height: 26px; flex: none; }
.familia__vektac svg { color: var(--rama-vektac-texto); }
.familia__campus svg { color: var(--rama-campus-texto); }
.familia__consulting svg { color: var(--rama-consulting-texto); }
.familia__campus b { color: var(--rama-campus-texto); }
.familia__consulting b { color: var(--rama-consulting-texto); }
.familia__vektac b { color: var(--rama-vektac-texto); }
.familia b { font-weight: 700; }
.familia [aria-current="page"] { cursor: default; }

.redes { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.redes a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--heading);
}
.redes a:hover { background: var(--accent); color: var(--acento-texto); }
.redes svg { width: 20px; height: 20px; }

.site-footer__bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  color: var(--texto-tenue); font-size: 0.85rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--texto-tenue); }
.data-fiscal img { display: block; width: 48px; height: auto; border-radius: 2px; }

/* ---------- Páginas simples (404, aviso legal) ---------- */
.page-simple { padding: calc(var(--header-h) + 4rem) 0 5rem; min-height: 70vh; }
.page-simple h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-simple .prose { margin-top: 1.5rem; }
.page-simple .btn { margin-top: 2rem; }

/* ---------- Aparición al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
