/* ═══════════════════════════════════════════════════
   ARTIVA LATAM — Design System Global
   Versión: 1.2.7
═══════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --v:     #7421fc;
  --vd:    #5c0fd6;
  --vm:    #9a4eff;
  --vl:    #c4a3ff;
  --vw:    #ede8ff;
  --vmist: #f5f2ff;
  --lime:  #d0ff5f;
  --limed: #b2e030;
  --bk:    #1b1b1b;
  --bg:    #fcf9f4;
  --gy:    #706e67;
  --gl:    #ece9e3;
  --line:  rgba(27,27,27,.07);
  --max:   1180px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--bk);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── TIPOGRAFÍA ── */
.anton { font-family: 'Anton', sans-serif; }

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes glow-pulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* ── SCROLL REVEAL ── */
.rev { opacity: 0; transform: translateY(28px); transition: opacity .72s ease, transform .72s ease; }
.rev.vis { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════
   BANNER SUPERIOR
═══════════════════════════════════════════════════ */
.banner {
  background: var(--bk);
  color: #fff;
  padding: 16px 24px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  letter-spacing: -.01em;
}
.banner__badge {
  background: var(--lime);
  color: var(--bk);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.banner b { color: var(--lime); }
.banner__date { opacity: .65; border-left: 1px solid rgba(255,255,255,.15); padding-left: 14px; }

/* ═══════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: .1em;
  color: var(--bk);
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
/* Custom logo via Customizer */
.nav__logo img,
.nav__logo .custom-logo-link img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
div.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}
/* Texto fallback cuando no hay logo subido */
.nav__logo-text {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: .1em;
  color: var(--bk);
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__links > li { position: relative; }
.nav__links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--bk);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .18s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--v); }
.nav__links a.active { color: var(--v); font-weight: 600; }

.nav__arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  opacity: .45;
  transition: opacity .18s, transform .22s;
  flex-shrink: 0;
}
.nav__arr svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.nav__links a:hover .nav__arr { opacity: .8; }
.ndrop:hover > a .nav__arr { transform: rotate(180deg); opacity: .8; }

.nav__badge {
  background: var(--v);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-left: 2px;
}
.nbadge {
  background: var(--lime);
  color: var(--bk);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nav__r { display: flex; align-items: center; gap: 10px; }
.nav__cta {
  display: inline-block;
  padding: 10px 26px;
  background: var(--v);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .22s, color .22s, transform .22s, box-shadow .22s;
}
.nav__cta:hover {
  background: var(--lime);
  color: var(--bk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(116,33,252,.18);
}

/* ── HAMBURGER ── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 5px;
  border-radius: 8px;
  padding: 0;
  transition: background .18s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
/* Asegurar que el burger solo aparezca en mobile */
@media (min-width: 901px) {
  .nav__burger { display: none !important; }
  .mobile-menu { display: none !important; }
}
.nav__burger:hover { background: var(--vw); }
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bk);
  border-radius: 2px;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .22s, width .22s;
  transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 298;
  pointer-events: none;
}
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27,27,27,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .32s ease;
}
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  box-shadow: -24px 0 72px rgba(27,27,27,.12);
}
.mobile-menu.is-open { pointer-events: all; }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

/* ── Pantallas ── */
.mp-screens {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: row;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.mp-screen {
  position: relative;
  min-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

/* ── Header ── */
.mp-header,
.mp-header--sub {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 64px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--bg);
  z-index: 2;
  gap: 12px;
}
.mp-header__logo {
  flex: 1;
  display: flex;
  align-items: center;
}
.mp-header__logo img {
  height: 32px;
  width: auto;
  display: block;
}
.mp-header__logo-text {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: .1em;
  color: var(--bk);
  text-transform: uppercase;
}
/* Pantallas 2 y 3 — back + label centrado + close */
.mp-header__section {
  font-size: 15px;
  font-weight: 700;
  color: var(--bk);
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-close {
  width: 36px; height: 36px;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--bk);
  transition: background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.mp-close:hover { background: var(--vw); color: var(--v); }
.mp-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.mp-back {
  width: 36px; height: 36px;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--bk);
  transition: background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.mp-back:hover { background: var(--vw); color: var(--v); }
.mp-back svg { width: 10px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

/* ── Body ── */
.mp-body { flex: 1; overflow-y: auto; }

/* ── Lista ── */
.mp-list { list-style: none; }
.mp-list__item { border-bottom: 1px solid var(--line); }
.mp-list__item:last-child { border-bottom: none; }
.mp-list__item--empty { opacity: .35; pointer-events: none; }
.mp-list__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: var(--bk);
  transition: background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}
.mp-list__btn:hover,
.mp-list__btn:focus { background: var(--vmist); color: var(--v); outline: none; }
.mp-list__btn--muted { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--bk); }
.mp-list__title { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.3; }
.mp-list__icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--vw);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--v);
}
.mp-list__icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mp-list__btn:hover .mp-list__icon { background: var(--v); color: #fff; }
.mp-list__arr { width: 6px; height: 10px; stroke: currentColor; fill: none; opacity: .3; flex-shrink: 0; transition: opacity .18s, transform .18s; }
.mp-list__btn:hover .mp-list__arr { opacity: .6; transform: translateX(2px); }
.mp-badge {
  display: inline-block;
  background: var(--v); color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .06em;
  margin-left: 6px; vertical-align: middle;
}

/* ── Footer ── */
.mp-footer {
  padding: 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: var(--bg);
}
.mp-cta {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; background: var(--v); color: #fff;
  border-radius: 50px; font-size: 15px; font-weight: 600;
  letter-spacing: -.01em; transition: background .22s, color .22s;
  -webkit-tap-highlight-color: transparent;
}
.mp-cta:hover { background: var(--lime); color: var(--bk); }

/* Bloquear scroll del body cuando el menú está abierto */
body.menu-open { overflow: hidden; }
body.menu-open .wab { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* WordPress admin bar — offset manejado via JS con CSS variable */
.mobile-menu {
  top: var(--mp-top, 0px);
  height: calc(100vh - var(--mp-top, 0px));
  height: calc(100dvh - var(--mp-top, 0px));
}

/* ── DROPDOWN ── */
.ndrop { position: relative; }
.dmenu {
  position: absolute;
  top: calc(100% + 12px);
  left: -24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(27,27,27,.1), 0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .22s, transform .22s, visibility .22s;
  display: flex;
  z-index: 200;
  min-width: 700px;
}
.ndrop:hover .dmenu { opacity: 1; visibility: visible; transform: translateY(0); }

.dl { padding: 24px; border-right: 1px solid var(--gl); min-width: 248px; }
.dl__title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gy);
  margin-bottom: 14px;
  padding-left: 10px;
}
.dl ul a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 10px;
  color: var(--bk);
  font-size: 13.5px;
  font-weight: 500;
  transition: color .18s;
  white-space: nowrap;
}
.dl ul a:hover { color: var(--v); }

.dicon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--vw);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--v);
  transition: background .18s, color .18s;
}
.dicon svg { width: 14px; height: 14px; }
.dl ul a:hover .dicon { background: var(--v); color: #fff; }

/* ── Categorías con filtro hover ── */
.dl-cat { cursor: pointer; }
.dl-cat a { transition: color .18s, background .18s; display: flex; align-items: center; gap: 11px; }
.dl-cat__arr { margin-left: auto; display: inline-flex; align-items: center; opacity: .25; transition: opacity .18s, transform .18s; flex-shrink: 0; }
.dl-cat__arr svg { width: 6px; height: 10px; stroke: currentColor; }
.dl-cat.dl-cat--active > a { color: var(--v); background: var(--vmist); border-radius: 10px; }
.dl-cat.dl-cat--active > a .dicon { background: var(--v); color: #fff; }
.dl-cat.dl-cat--active > a .dl-cat__arr { opacity: .7; }
.dl-cat:hover > a { color: var(--v); }
.dl-cat:hover > a .dicon { background: var(--v); color: #fff; }
.dl-cat:hover > a .dl-cat__arr { opacity: .6; transform: translateX(2px); }
.dl-cat--empty > a { opacity: .35; pointer-events: none; }

/* Grupos de items en .dc filtrados por categoría */
.dc--filtered { padding: 24px; min-width: 230px; }
.dc__group { display: flex; flex-direction: column; gap: 0; }

/* Mobile groups */
.mp-cats-group,
.mp-items-group { display: block; }

.dc { padding: 24px; min-width: 230px; }
.dc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 10px;
  color: var(--bk);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 10px;
  transition: color .18s;
  white-space: nowrap;
  gap: 12px;
}
.dc a:hover { color: var(--v); }

.nbg {
  background: var(--lime);
  color: var(--bk);
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.dr {
  padding: 24px;
  min-width: 200px;
  background: linear-gradient(150deg, var(--vw), var(--vmist));
  border-radius: 0 18px 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.dr p { font-size: 14.5px; font-weight: 700; color: var(--bk); line-height: 1.4; }
.dr .off { font-family: 'Anton', sans-serif; font-size: 52px; color: var(--v); line-height: 1; }
.dr .vbtn {
  display: inline-block;
  padding: 11px 32px;
  background: var(--v);
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: background .22s, color .22s, transform .22s, box-shadow .22s;
  width: 100%;
  text-align: center;
}
.dr .vbtn:hover { background: var(--lime); color: var(--bk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(116,33,252,.2); }

.dmenu.dmenu--emp { min-width: 540px; left: auto; right: -24px; }
.dmenu--emp .dl { min-width: 260px; flex: 1; }
.dmenu--emp .dl:last-child { border-right: none; }
.dmenu--emp .dl ul a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: auto;
  opacity: .3;
  transition: opacity .18s, transform .18s;
  flex-shrink: 0;
}
.dmenu--emp .dl ul a:hover::after { opacity: .7; transform: rotate(45deg) translate(2px,-2px); }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer { padding: 60px 48px 32px; background: var(--bg); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto 52px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--bk); margin-bottom: 7px; }
.footer__col a { color: var(--gy); font-size: 13.5px; transition: color .18s; }
.footer__col a:hover { color: var(--v); }
.footer__news p { font-size: 13px; line-height: 1.65; color: var(--gy); margin-bottom: 10px; }
.footer__news input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(27,27,27,.1);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--bk);
  outline: none;
  margin-bottom: 8px;
  transition: border-color .18s;
}
.footer__news input:focus { border-color: var(--v); }
.footer__sub {
  width: 100%;
  padding: 12px;
  background: var(--v);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .22s, color .22s;
}
.footer__sub:hover { background: var(--lime); color: var(--bk); }
.footer__sub:disabled { background: var(--vl); cursor: not-allowed; transform: none; box-shadow: none; }
.footer__sub-msg {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.5;
  min-height: 18px;
}
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer__copy { font-size: 13px; color: var(--gy); }
.footer__logo { display: inline-flex; align-items: center; }
.footer__logo svg { height: 32px; width: auto; display: block; color: var(--bk); fill: var(--bk); }
.footer__logo svg path,
.footer__logo svg polygon,
.footer__logo svg rect { fill: var(--bk); }

/* ═══════════════════════════════════════════════════
   TIER BADGES — Artiva Essentials / Pro / Summit / Insights
═══════════════════════════════════════════════════ */

/* Tier genérico — texto discreto */
.tier-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--gy);
  letter-spacing: .01em;
}

/* Tier como badge pill con color por nivel */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Essentials — violeta suave */
.tier-badge--essentials,
.tier--essentials {
  background: var(--vw);
  color: var(--v);
  border: 1px solid rgba(116,33,252,.15);
}

/* Pro — violeta medio */
.tier-badge--pro,
.tier--pro {
  background: rgba(116,33,252,.12);
  color: var(--vd);
  border: 1px solid rgba(92,15,214,.2);
}

/* Summit — violeta oscuro */
.tier-badge--summit,
.tier--summit {
  background: var(--v);
  color: #fff;
  border: 1px solid var(--vd);
}

/* Insights — lime */
.tier-badge--insights,
.tier--insights {
  background: rgba(208,255,95,.2);
  color: #4a6800;
  border: 1px solid rgba(208,255,95,.5);
}

/* Tier en card de curso (listado) */
.cc-tier {
  font-size: 11px;
  font-weight: 500;
  color: var(--gy);
  letter-spacing: .01em;
}

/* Tier en sidebar del single */
.s-tier {
  font-size: 11px;
  font-weight: 500;
  color: var(--gy);
  margin-bottom: 14px;
  letter-spacing: .01em;
}

/* Tier en hero del single (texto pequeño debajo de las pills) */
.hero-tier {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  margin-top: 16px;
  letter-spacing: .02em;
}

/* Tier como d-pill sin icono (detalles de la carrera) */
.d-pill-tier {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 13px;
  color: var(--gy);
  background: #fff;
  font-weight: 500;
}

/* Tier en cabecera del acordeón del learning path */
.pa-tier {
  font-size: 11px;
  font-weight: 500;
  color: var(--gy);
  flex-shrink: 0;
  letter-spacing: .01em;
}

/* ── WHATSAPP FAB ── */
.wab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .2s, box-shadow .2s, opacity .25s, scale .25s;
}
.wab:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.5); }

/* ═══════════════════════════════════════════════════
   COMPONENTES COMPARTIDOS
═══════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border: 1.5px solid rgba(116,33,252,.14);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--v);
  background: #fff;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Breadcrumb */
.bread {
  padding: 16px 48px;
  font-size: 13px;
  color: var(--gy);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.bread a { color: var(--gy); transition: color .18s; }
.bread a:hover { color: var(--v); }
.bread .curr { color: var(--bk); font-weight: 600; }
.sep-b { display: inline-flex; align-items: center; color: var(--gy); opacity: .35; }
.sep-b svg { width: 8px; height: 8px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* Testimonials */
.testi { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s, transform .25s; overflow-wrap: break-word; word-break: break-word; }
.testi:hover { box-shadow: 0 8px 28px rgba(116,33,252,.07); border-color: rgba(116,33,252,.12); transform: translateY(-2px); }
.testi__profile { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.testi__av {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vw), #d6cef6);
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700; color: var(--v); flex-shrink: 0;
  overflow: hidden;
}
.testi__av img { width: 100%; height: 100%; object-fit: cover; }
.testi__name { font-size: 13.5px; font-weight: 700; color: var(--bk); }
.testi__role { font-size: 11.5px; color: var(--gy); }
.testi__quote { font-size: 28px; color: var(--v); opacity: .15; margin-bottom: 3px; line-height: 1; font-family: Georgia, serif; }
.testi__text { font-size: 13px; line-height: 1.62; color: var(--gy); overflow-wrap: break-word; word-break: break-word; }
.testi__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 13px; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 50px;
  color: var(--gy); font-size: 12.5px; font-weight: 500;
  transition: border-color .2s, color .2s, background .2s; width: fit-content;
}
.testi__link:hover { border-color: var(--v); color: var(--v); background: var(--vw); }
.testi__img { border-radius: 11px; margin-bottom: 15px; overflow: hidden; height: 156px; background: var(--gl); }
.testi__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }

/* ═══════════════════════════════════════════════════
   HOME — HERO
═══════════════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 96px 48px 80px;
  position: relative;
  min-height: 78vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(116,33,252,.045) 0%, transparent 68%);
  pointer-events: none;
}
.hero__ann {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 22px;
  border: 1.5px solid var(--line); border-radius: 50px;
  font-size: 13.5px; color: var(--gy);
  margin-bottom: 40px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px);
  animation: fadeUp .7s ease-out;
}
.hero__ann .sm { color: var(--v); font-weight: 600; border-left: 1px solid rgba(27,27,27,.12); padding-left: 10px; }
.hero__h {
  font-family: 'Anton', sans-serif;
  font-size: clamp(58px, 8.5vw, 112px);
  line-height: .93;
  text-transform: uppercase;
  color: var(--bk);
  margin-bottom: 28px;
  letter-spacing: -.02em;
  animation: fadeUp .7s ease-out .15s both;
}
.hero__h span { display: block; }
.hero__desc {
  max-width: 640px; font-size: 16px; line-height: 1.75; color: var(--gy);
  margin-bottom: 40px;
  animation: fadeUp .7s ease-out .3s both;
}
.hero__cta {
  display: inline-block;
  padding: 16px 60px;
  background: var(--v); color: #fff;
  border-radius: 50px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  transition: background .22s, transform .22s, box-shadow .22s;
  animation: fadeUp .7s ease-out .45s both;
}
.hero__cta:hover { background: var(--lime); color: var(--bk); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(116,33,252,.18); }

/* ── TECH SLIDER ── */
.tech { padding: 52px 0 56px; overflow: visible; background: var(--bg); }
.tech__title { text-align: center; font-size: 14px; color: var(--gy); font-weight: 500; letter-spacing: .01em; margin-bottom: 32px; }
.track-wrap { position: relative; overflow-x: hidden; overflow-y: visible; padding: 8px 0 12px; }
.track-wrap::before, .track-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.track-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.track-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.track { display: flex; gap: 10px; width: max-content; animation: scroll 40s linear infinite; }
.track:hover { animation-play-state: paused; }
.tc {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 15px; min-width: 112px;
  cursor: default;
  transition: border-color .22s, transform .22s, box-shadow .22s, background .22s;
  user-select: none;
}
.tc:hover { border-color: var(--v); transform: translateY(-4px); box-shadow: 0 10px 28px rgba(116,33,252,.13); background: var(--vmist); }
.tc__logo { width: 40px; height: 40px; object-fit: contain; transition: transform .22s; }
.tc:hover .tc__logo { transform: scale(1.1); }
.tc__name { font-size: 12px; color: var(--gy); white-space: nowrap; font-weight: 500; transition: color .22s; }
.tc:hover .tc__name { color: var(--v); }
.tc__tag { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; letter-spacing: .02em; }
.tag--adobe    { background: #eeecfe; color: #4a3db5; }
.tag--diseno   { background: #fde9f0; color: #8c2e4f; }
.tag--3d       { background: #faebd6; color: #7a4708; }
.tag--codigo   { background: #dff5eb; color: #0b5e48; }
.tag--marketing{ background: #e3eefb; color: #134e8c; }
.tag--data     { background: #e9f3e0; color: #2f5c10; }
.tag--ia       { background: #ede8ff; color: #4a1ab5; }
.tag--producto { background: #f0f0f0; color: #444; }

/* ── CATEGORÍAS ── */
.cats { padding: 88px 48px; text-align: center; }
.cats__title { font-size: clamp(32px, 4vw, 48px); font-weight: 300; color: var(--bk); margin-bottom: 48px; letter-spacing: -.03em; line-height: 1.1; }
.cats__title em { color: var(--v); font-style: normal; }
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: var(--max); margin: 0 auto; }
.ccard {
  background: #fff; border-radius: 16px; border: 1px solid var(--line);
  padding: 22px 18px; text-align: left;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s, box-shadow .25s, transform .25s; cursor: pointer;
}
.ccard:hover { border-color: rgba(116,33,252,.18); box-shadow: 0 10px 36px rgba(116,33,252,.09); transform: translateY(-4px); }
.ccard__title { font-size: 14.5px; font-weight: 700; color: var(--bk); display: flex; align-items: center; gap: 7px; line-height: 1.3; }
.ntag { background: var(--lime); color: var(--bk); font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 5px; letter-spacing: .04em; flex-shrink: 0; }
.ccard__img { width: 100%; height: 130px; border-radius: 10px; overflow: hidden; background: var(--gl); }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; }
.ccard__btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px; background: var(--gl); border-radius: 9px;
  color: var(--bk); font-size: 13.5px; font-weight: 500; margin-top: auto;
  transition: background .2s, color .2s;
}
.ccard:hover .ccard__btn { background: var(--vw); color: var(--v); }
.ccard--all { background: var(--vmist); border: 1.5px dashed rgba(116,33,252,.18); display: flex; align-items: center; justify-content: center; }
.ccard--all a { color: var(--v); font-size: 15px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ccard--all a span { font-size: 26px; }

/* ── IA SECTION ── */
.ia { padding: 88px 48px; }
.ia__eyebrow { font-size: clamp(32px, 4vw, 48px); font-weight: 300; color: var(--bk); text-align: center; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 6px; }
.ia__eyebrow .ac { background: linear-gradient(125deg, var(--v), var(--vm)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ia__sub { font-size: clamp(32px, 4vw, 48px); font-weight: 300; color: var(--bk); text-align: center; margin-bottom: 52px; letter-spacing: -.03em; }
.ia__grid { display: flex; flex-direction: column; gap: 20px; max-width: var(--max); margin: 0 auto; }
.ia__row { display: grid; gap: 20px; }
.ia__row--2  { grid-template-columns: 1fr 1.4fr; }
.ia__row--2r { grid-template-columns: 1.4fr 1fr; }
.ia__row--3  { grid-template-columns: 1fr 1fr 1fr; }

.fc {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
  transition: border-color .32s, box-shadow .32s, transform .32s, background .32s;
  position: relative; overflow: hidden;
}
.fc::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #5c0fd6 0%, #7421fc 45%, #9a4eff 80%, #b06eff 100%);
  opacity: 0; transition: opacity .32s ease; border-radius: 20px; z-index: 0;
}
.fc:hover { border-color: transparent; box-shadow: 0 20px 56px rgba(116,33,252,.35); transform: translateY(-4px); }
.fc:hover::before { opacity: 1; }
.fc > * { position: relative; z-index: 1; }
.fc__title { font-size: 17px; font-weight: 700; color: var(--bk); transition: color .28s; }
.fc__desc  { font-size: 14px; line-height: 1.65; color: var(--gy); transition: color .28s; }
.fc:hover .fc__title { color: #fff; }
.fc:hover .fc__desc  { color: rgba(255,255,255,.78); }
.fc__visual { width: 100%; border-radius: 13px; overflow: hidden; }
.img-zone { width: 100%; border-radius: 13px; overflow: hidden; background: var(--gl); position: relative; transition: background .32s; }
.img-zone--sm { height: 190px; }
.img-zone--lg { height: 250px; }
.img-zone img { width: 100%; height: 100%; object-fit: cover; }

/* Chat UI */
.tcard-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: start; }
.chat-ui { background: var(--gl); border-radius: 13px; padding: 18px; display: flex; flex-direction: column; gap: 9px; transition: background .32s; }
.chat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.chat-header__name { font-size: 14.5px; font-weight: 700; color: var(--bk); transition: color .32s; }
.cb { padding: 9px 13px; border-radius: 11px; font-size: 12px; line-height: 1.55; max-width: 92%; transition: background .32s, color .32s, border-color .32s; }
.cb--bot { background: var(--vw); color: var(--bk); align-self: flex-start; border-bottom-left-radius: 3px; }
.cb--usr { background: #fff; color: var(--bk); align-self: flex-end; border-bottom-right-radius: 3px; border: 1px solid var(--line); }
.chat-input { display: flex; align-items: center; gap: 7px; margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--line); transition: border-top-color .32s; }
.chat-input input { flex: 1; border: none; background: transparent; font-size: 12px; color: var(--gy); outline: none; font-family: inherit; transition: color .32s; }
.chat-input__btn { padding: 6px 13px; background: var(--v); color: #fff; border: none; border-radius: 7px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .18s; }
.chat-input__btn:hover { background: var(--vd); }
.tcard-text { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 12px 0; }
.tcard-text h3 { font-size: 17px; font-weight: 700; color: var(--bk); transition: color .32s; }
.tcard-text p  { font-size: 14px; line-height: 1.68; color: var(--gy); transition: color .32s; }
.fc:hover .chat-ui { background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.fc:hover .cb--bot { background: rgba(255,255,255,.18); color: #fff; }
.fc:hover .cb--usr { background: rgba(255,255,255,.85); color: var(--bk); border-color: transparent; }
.fc:hover .chat-header__name { color: #fff; }
.fc:hover .chat-input { border-top-color: rgba(255,255,255,.2); }
.fc:hover .chat-input input { color: rgba(255,255,255,.7); }
.fc:hover .tcard-text h3 { color: #fff; }
.fc:hover .tcard-text p  { color: rgba(255,255,255,.75); }

/* Quiz */
.quiz-card { background: var(--gl); border-radius: 13px; padding: 22px; transition: background .32s; }
.quiz-q { font-size: 13.5px; font-weight: 600; color: var(--bk); margin-bottom: 13px; transition: color .32s; }
.quiz-opts { display: flex; flex-direction: column; gap: 7px; }
.quiz-o { padding: 9px 13px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--bk); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.quiz-o:hover { border-color: var(--v); background: var(--vw); color: var(--v); }
.quiz-o--correct { border-color: var(--limed); background: rgba(208,255,95,.16); color: var(--bk); font-weight: 600; }
.fc:hover .quiz-card { background: rgba(255,255,255,.12); }
.fc:hover .quiz-q { color: #fff; }
.fc:hover .quiz-o { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.fc:hover .quiz-o--correct { background: rgba(208,255,95,.25); border-color: var(--lime); color: var(--lime); font-weight: 700; }

/* Rank */
.rank-card { background: var(--gl); border-radius: 13px; padding: 22px; transition: background .32s; }
.prox-badge { display: inline-block; padding: 3px 9px; background: var(--lime); border-radius: 5px; font-size: 9.5px; font-weight: 800; color: var(--bk); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; transition: background .32s, color .32s; }
.rank-title { font-size: 13.5px; font-weight: 700; color: var(--bk); margin-bottom: 12px; transition: color .32s; }
.rank-item { display: flex; align-items: center; gap: 11px; padding: 7px 0; border-bottom: 1px solid rgba(27,27,27,.04); }
.rank-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,var(--vw),#d6cef6); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--v); flex-shrink: 0; transition: background .32s, color .32s; }
.rank-name { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--bk); transition: color .32s; }
.rank-pts  { font-size: 12px; font-weight: 700; color: var(--v); transition: color .32s; }
.fc:hover .rank-card { background: rgba(255,255,255,.12); }
.fc:hover .rank-title { color: #fff; }
.fc:hover .rank-name  { color: rgba(255,255,255,.85); }
.fc:hover .rank-pts   { color: var(--lime); }
.fc:hover .rank-av    { background: rgba(255,255,255,.2); color: #fff; }
.fc:hover .prox-badge { background: var(--lime); color: var(--bk); }

/* ── DESCUBRE PRO ── */
.dpro { padding: 88px 48px; }
.dpro-card {
  position: relative; max-width: 1100px; margin: 0 auto;
  border-radius: 28px; overflow: hidden; min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5c0fd6 0%, #7421fc 40%, #9a4eff 72%, #b06eff 100%);
}
.dpro-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .04; pointer-events: none; z-index: 1;
}
.dpro__glow {
  position: absolute; top: -20%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(196,163,255,.1) 35%, transparent 68%);
  pointer-events: none;
  animation: glow-pulse 7s ease-in-out infinite alternate;
}
.dpro-card::after {
  content: ''; position: absolute; bottom: -15%; left: -5%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(208,255,95,.14) 0%, rgba(116,33,252,.05) 50%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.dpro__content { position: relative; z-index: 2; text-align: center; padding: 72px 40px; }
.dpro__title { font-family: 'Anton', sans-serif; font-size: clamp(52px, 7vw, 88px); line-height: .93; text-transform: uppercase; color: #fff; letter-spacing: -.02em; margin-bottom: 22px; }
.dpro__desc { max-width: 500px; margin: 0 auto 36px; font-size: 15px; line-height: 1.72; color: rgba(255,255,255,.72); }
.dpro__btn {
  display: inline-block; padding: 14px 40px;
  background: #fff; color: var(--v); border-radius: 50px;
  font-size: 14.5px; font-weight: 700;
  transition: background .22s, color .22s, transform .22s, box-shadow .22s;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.dpro__btn:hover { background: var(--lime); color: var(--bk); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.22); }

/* ── AVALADA ── */
.aval { padding: 88px 48px; text-align: center; }
.aval__title { font-size: clamp(28px, 4vw, 44px); font-weight: 300; color: var(--bk); margin-bottom: 48px; letter-spacing: -.03em; }
.aval__title em { color: var(--v); font-style: normal; }
.aval__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: 960px; margin: 0 auto; }
.aval__logo {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 20px;
}
.aval__logo img {
  width: auto; height: 70px;
  object-fit: contain; opacity: .75;
  transition: opacity .2s;
}
.aval__logo img:hover { opacity: 1; }

/* ── COMMUNITY HOME ── */
.comm { padding: 88px 48px; background: var(--gl); }
.comm__title { font-size: clamp(28px, 4vw, 44px); font-weight: 300; color: var(--bk); text-align: center; margin-bottom: 52px; line-height: 1.2; max-width: 680px; margin-left: auto; margin-right: auto; letter-spacing: -.03em; }
.comm__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; max-width: var(--max); margin: 0 auto; align-items: start; }
.comm__col { display: flex; flex-direction: column; gap: 18px; }

/* ── FOOTER BANNER ── */
.fbanner { padding: 60px 48px 0; }
.fbanner__card {
  position: relative; max-width: var(--max); margin: 0 auto;
  border-radius: 24px; overflow: hidden; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--vw) 0%, rgba(185,154,255,.13) 45%, rgba(208,255,95,.06) 80%, var(--bg) 100%);
}
.fbanner__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(208,255,95,.38) 0%, rgba(208,255,95,.12) 42%, rgba(116,33,252,.05) 68%, transparent 85%);
  filter: blur(32px); pointer-events: none;
}
.fbanner__text {
  position: relative; z-index: 2; text-align: center;
  font-family: 'Anton', sans-serif; font-size: clamp(34px, 5.5vw, 70px);
  text-transform: uppercase; color: var(--bk); line-height: 1; letter-spacing: -.01em;
}
.fbanner__text span { display: block; }
.fbanner__text span:last-child { margin-top: 68px; }

/* ═══════════════════════════════════════════════════
   ARCHIVE — CURSOS
═══════════════════════════════════════════════════ */
.page-hero { padding: 72px 48px 28px; text-align: center; max-width: 800px; margin: 0 auto; }
.page-hero h1 { font-family: 'Anton', sans-serif; font-size: clamp(52px, 7vw, 88px); text-transform: uppercase; color: var(--bk); line-height: .93; letter-spacing: -.02em; margin-bottom: 18px; }
.page-hero p { font-size: 16px; line-height: 1.75; color: var(--gy); max-width: 640px; margin: 0 auto; }

.tabs { padding: 32px 48px 48px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tab { padding: 13px 24px; border-radius: 50px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .18s, color .18s, border-color .18s; border: 1.5px solid rgba(27,27,27,.10); background: #fff; color: var(--bk); letter-spacing: -.01em; font-family: inherit; line-height: 1; appearance: none; -webkit-appearance: none; text-decoration: none; display: inline-flex; align-items: center; }
.tab:hover { border-color: var(--v); color: var(--v); background: var(--vw); }
.tab.active { background: var(--v); color: #fff; border-color: var(--v); }

.courses-grid { padding: 0 48px 88px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--max); margin: 0 auto; align-items: stretch; }

.cc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.cc:hover { border-color: rgba(116,33,252,.18); box-shadow: 0 10px 36px rgba(116,33,252,.09); transform: translateY(-4px); }
.cc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-cat { font-size: 10.5px; font-weight: 700; color: var(--v); text-transform: uppercase; letter-spacing: .08em; }
.cc-new { background: var(--lime); color: var(--bk); font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; }
.cc-pill-curso   { background: rgba(116,33,252,.12); color: var(--v); }
.cc-pill-carrera { background: var(--lime); color: var(--bk); }
.cc-title { font-size: 17px; font-weight: 700; color: var(--bk); line-height: 1.3; transition: color .22s; }
.cc:hover .cc-title { color: var(--v); }
.cc-details { display: flex; gap: 16px; flex-wrap: wrap; }
.cc-detail { font-size: 12px; color: var(--gy); display: flex; align-items: center; gap: 4px; }
.cc-detail strong { color: var(--bk); font-weight: 600; }
.cc-cert { font-size: 11px; color: var(--gy); }
.cc-cert strong { color: var(--bk); font-weight: 600; }
.cc-pricing { padding-top: 20px; margin-top: auto; border-top: 1px solid var(--gl); }
.cc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.cc-off { background: var(--lime); color: var(--bk); font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; }
.cc-old { font-size: 13px; color: var(--gy); text-decoration: line-through; }
.cc-price { font-family: 'Anton', sans-serif; font-size: 28px; color: var(--bk); line-height: 1; margin-bottom: 4px; letter-spacing: -.01em; }
.cc-installments { font-size: 12px; color: var(--gy); margin-bottom: 16px; }
.cc-btn { display: block; width: 100%; text-align: center; padding: 12px; border-radius: 50px; font-size: 14px; font-weight: 600; background: var(--v); color: #fff; transition: background .22s, color .22s; border: none; cursor: pointer; font-family: inherit; letter-spacing: -.01em; }
.cc-btn:hover { background: var(--vd); }

/* FAQ */
.faq { padding: 72px 48px; max-width: 800px; margin: 0 auto; }
.faq-overline { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--v); text-align: center; margin-bottom: 10px; }
.faq-t { font-size: clamp(28px, 4vw, 44px); font-weight: 400; color: var(--bk); letter-spacing: -.02em; margin-bottom: 32px; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.fq { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .25s; }
.fq:hover { border-color: rgba(116,33,252,.18); }
.fq-q { padding: 18px 22px; font-size: 15px; font-weight: 600; color: var(--bk); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fq-q::after { content: '+'; font-size: 20px; color: var(--gy); transition: transform .3s; font-weight: 400; flex-shrink: 0; }
.fq.open .fq-q::after { transform: rotate(45deg); color: var(--v); }
.fq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: all .35s ease; font-size: 14px; line-height: 1.65; color: var(--gy); }
.fq.open .fq-a { padding: 0 22px 18px; max-height: 300px; }

/* ═══════════════════════════════════════════════════
   SINGLE CARRERA
═══════════════════════════════════════════════════ */
.top-banner {
  background: var(--bk); color: #fff; text-align: center;
  padding: 16px 20px; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.top-banner .badge-lime { background: var(--lime); color: var(--bk); font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; }

.hero-dark {
  background: var(--bk);
  padding: 80px 48px 72px;
  position: relative; overflow: hidden;
}
.hero-dark::before {
  content: ''; position: absolute; top: -60px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(116,33,252,.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero-dark::after {
  content: ''; position: absolute; bottom: -40px; left: 30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(208,255,95,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border: 1.5px solid rgba(255,255,255,.12); border-radius: 50px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 24px; background: rgba(255,255,255,.04);
}
.hero-pill span { color: var(--lime); }
.hero-dark h1 { font-family: 'Anton', sans-serif; font-size: clamp(52px, 7.5vw, 96px); line-height: .93; text-transform: uppercase; letter-spacing: -.02em; color: #fff; margin-bottom: 28px; max-width: 720px; overflow-wrap: break-word; }
.hero-dark h1 em { font-style: normal; color: var(--lime); }
.hero-dark h1 strong { font-weight: inherit; color: var(--lime); }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-pill-sm {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 50px;
  font-size: 13px; color: rgba(255,255,255,.65); background: rgba(255,255,255,.04);
}
.hero-pill-sm strong { color: #fff; }

/* Main layout single */
.single-main { display: grid; grid-template-columns: 1fr 380px; gap: 56px; padding: 52px 48px 88px; max-width: var(--max); margin: 0 auto; align-items: start; overflow-x: clip; }
.single-main .content { min-width: 0; overflow-x: clip; }

.sg-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--v); margin-bottom: 8px; }
.section-title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 300; color: var(--bk); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 20px; overflow-wrap: break-word; word-break: break-word; }
.section-title strong { font-weight: inherit; background: linear-gradient(125deg, var(--v), var(--vm)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sep { height: 1px; background: var(--line); margin: 52px 0; }

.about-desc { font-size: 16px; line-height: 1.75; color: var(--gy); max-width: 640px; margin-bottom: 28px; overflow-wrap: break-word; word-break: break-word; }
.details-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--gy); margin-bottom: 14px; }
.details-row { display: flex; gap: 10px; flex-wrap: wrap; }
.d-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 50px; font-size: 13px; color: var(--bk); background: #fff; font-weight: 500; flex-shrink: 1; min-width: 0; }
.d-pill .d-ico { display: inline-flex; align-items: center; color: var(--v); opacity: .6; }
.d-pill .d-ico svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

/* Feature grid single */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat-grid .fc { padding: 0; gap: 0; }
.feat-grid .fc::before { display: none; }
.feat-grid .fc:hover { background: #fff; border-color: rgba(116,33,252,.2); box-shadow: 0 14px 48px rgba(116,33,252,.12); transform: translateY(-3px); }
.feat-grid .fc:hover .fc__title { color: var(--bk); }
.feat-grid .fc:hover .fc__desc { color: var(--gy); }
.fc-body { padding: 28px 26px 20px; }
.fc-body h3 { font-size: 16px; font-weight: 700; color: var(--bk); margin-bottom: 8px; line-height: 1.3; }
.fc-body p  { font-size: 14px; line-height: 1.65; color: var(--gy); }
.fc-img { height: 190px; background: var(--gl); overflow: hidden; border-radius: 0 0 19px 19px; margin-top: auto; flex-shrink: 0; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cert */
.cert-wrap { background: var(--v); border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; min-height: 300px; }
.cert-left { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.cert-badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 50px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; width: fit-content; }
.cert-left h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 300; color: #fff; letter-spacing: -.03em; line-height: 1.15; }
.cert-left h2 strong { font-weight: inherit; color: var(--lime); }
.cert-right { display: flex; align-items: center; justify-content: center; padding: 40px 32px; position: relative; overflow: hidden; }
.cert-diploma { background: #fff; border-radius: 16px; padding: 30px 26px; text-align: center; max-width: 290px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.25); transform: rotate(-2deg); position: relative; }
.cert-ribbon { position: absolute; top: -1px; right: 28%; width: 34px; background: var(--v); color: #fff; font-size: 9px; font-weight: 800; padding: 7px 4px 10px; border-radius: 0 0 6px 6px; line-height: 1.1; text-align: center; z-index: 2; }
.cert-ribbon big { font-size: 16px; display: block; }
.cert-brand { font-family: 'Anton', sans-serif; font-size: 13px; color: var(--v); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; margin-top: 12px; }
.cert-c-title { font-size: 14px; font-weight: 700; color: var(--bk); margin-bottom: 8px; line-height: 1.3; }
.cert-c-name  { font-size: 14px; color: var(--gy); margin-bottom: 4px; }
.cert-c-date  { font-size: 11px; color: var(--v); opacity: .7; margin-bottom: 14px; }
.cert-c-logos { display: flex; justify-content: center; gap: 18px; padding-top: 12px; border-top: 1px solid var(--gl); }
.cert-c-logos span { font-size: 10px; font-weight: 700; color: var(--gy); }
.cert-by { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 22px 0 0; font-size: 13px; color: var(--gy); flex-wrap: wrap; }
.cert-by strong { font-weight: 700; color: var(--bk); font-size: 15px; }

/* Learning Path */
.path-desc { font-size: 15px; line-height: 1.72; color: var(--gy); max-width: 560px; margin-bottom: 28px; }
.path-acc { display: flex; flex-direction: column; gap: 10px; }
.pa { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.pa.open { border-color: rgba(116,33,252,.14); box-shadow: 0 8px 28px rgba(116,33,252,.07); }
.pa-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; transition: background .15s; }
.pa-head:hover { background: var(--vmist); }
.pa-num { font-family: 'Anton', sans-serif; font-size: 14px; color: var(--vl); letter-spacing: .05em; flex-shrink: 0; }
.pa-head h3 { flex: 1; font-size: 15px; font-weight: 700; color: var(--bk); }
.pa-tog { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gl); display: flex; align-items: center; justify-content: center; transition: background .25s, border-color .25s; flex-shrink: 0; color: var(--gy); }
.pa-tog svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform .3s; }
.pa.open .pa-tog { background: var(--v); color: #fff; border-color: var(--v); }
.pa.open .pa-tog svg { transform: rotate(180deg); }
.pa-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.pa.open .pa-body { max-height: 1400px; }
.pa-inner { padding: 0 24px 28px; }
.pa-inner > p { font-size: 14px; line-height: 1.75; color: var(--gy); margin-bottom: 20px; }
.pa-dets { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.pa-dets .d-pill { font-size: 12px; padding: 8px 16px; }
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 1.5px; background: var(--gl); }
.tl-i { display: flex; align-items: center; gap: 16px; padding: 10px 0; position: relative; }
.tl-i::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gl); background: #fff; position: absolute; left: -26px; z-index: 1; }
.tl-l { font-size: 10px; font-weight: 800; color: var(--gy); text-transform: uppercase; letter-spacing: .1em; min-width: 68px; }
.tl-n { font-size: 14px; font-weight: 600; color: var(--bk); }

/* Community single */
.comm-num { color: var(--v); font-weight: 700; font-size: 16px; margin-bottom: 6px; letter-spacing: -.01em; }
.comm-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }

/* Sección de ancho completo dentro del single (fuera del layout content+sidebar) */
.single-full { max-width: 1200px; margin: 0 auto; padding: 0 32px 64px; }

/* Home — 3 columnas, cards anchas */
.comm-grid-3--home { gap: 24px; }
.comm-grid-3--home .testi { padding: 28px; }

/* Single — 3 columnas comprimidas dentro del .content con sidebar */
.comm-grid-3--single { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.comm-grid-3--single .comm-col { display: flex; flex-direction: column; gap: 12px; }
.comm-grid-3--single .testi { padding: 16px; }
.comm-grid-3--single .testi__av { width: 34px; height: 34px; font-size: 11px; }
.comm-grid-3--single .testi__name { font-size: 12px; }
.comm-grid-3--single .testi__role { font-size: 10.5px; }
.comm-grid-3--single .testi__text { font-size: 12.5px; line-height: 1.55; }
.comm-grid-3--single .testi__quote { font-size: 22px; margin-bottom: 2px; }
.comm-grid-3--single .testi__link { font-size: 11.5px; }
.comm-col { display: flex; flex-direction: column; gap: 16px; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.s-menu { padding: 24px 24px 0; }
.s-menu-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--gy); margin-bottom: 14px; }
.s-menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--bk); cursor: pointer; transition: color .18s; text-decoration: none; }
.s-menu-item:last-child { border-bottom: none; }
.s-menu-item:hover { color: var(--v); }
.s-ico { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--v); opacity: .5; transition: opacity .18s; }
.s-menu-item:hover .s-ico { opacity: 1; }
.s-ico svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.s-arr { margin-left: auto; display: inline-flex; align-items: center; color: var(--gl); transition: color .18s, transform .18s; }
.s-arr svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.s-menu-item:hover .s-arr { color: var(--v); transform: translateX(2px); }
.s-divider { height: 1px; background: var(--line); margin: 0 24px; }
.s-pricing { padding: 22px 24px 24px; }
.s-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.s-off-badge { background: var(--lime); color: var(--bk); font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 50px; letter-spacing: .02em; }
.s-price-old { font-size: 14px; color: var(--gy); text-decoration: line-through; }
.s-price { font-family: 'Anton', sans-serif; font-size: 38px; color: var(--bk); line-height: 1; margin-bottom: 5px; letter-spacing: -.02em; }
.s-installments { font-size: 13px; color: var(--gy); margin-bottom: 18px; display: flex; align-items: center; gap: 7px; }
.s-sale-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 8px; flex-wrap: wrap; }
.s-sale-badge { background: var(--bk); color: #fff; font-size: 11px; font-weight: 800; padding: 6px 14px; border-radius: 5px; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }
.s-timer { font-size: 12px; color: var(--gy); display: flex; align-items: center; gap: 5px; }
.s-timer strong { color: var(--bk); font-weight: 700; }
.s-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-align: center; padding: 16px; border-radius: 50px; font-size: 15px; font-weight: 600; transition: background .22s, color .22s, transform .22s, box-shadow .22s; border: none; cursor: pointer; font-family: inherit; background: var(--v); color: #fff; margin-bottom: 12px; letter-spacing: -.01em; }
.s-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; transition: transform .2s; }
.s-btn:hover { background: var(--lime); color: var(--bk); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(116,33,252,.18); }
.s-btn:hover svg { transform: translateX(3px); }
.s-free { font-size: 13px; color: var(--gy); text-align: center; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.s-payments { text-align: center; padding: 0 0 4px; }
.s-payments-label { font-size: 12px; color: var(--gy); margin-bottom: 10px; }
.s-cards { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.s-card { height: 24px; padding: 0 10px; border-radius: 4px; display: flex; align-items: center; font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.s-card.yape   { background: #6d28d9; color: #fff; }
.s-card.plin   { background: #059669; color: #fff; }
.s-card.transf { background: #374151; color: #fff; }
.s-pay-link { font-size: 12px; color: var(--v); cursor: pointer; transition: color .18s; display: inline-flex; align-items: center; gap: 4px; }
.s-pay-link svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.s-pay-link:hover { color: var(--vd); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .cgrid { grid-template-columns: repeat(3, 1fr); }
  .ia__row--2, .ia__row--2r { grid-template-columns: 1fr; }
  .ia__row--3 { grid-template-columns: 1fr 1fr; }
  .tcard-layout { grid-template-columns: 1fr; }
  .comm__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
  /* Single page: sidebar va arriba, content abajo */
  .single-main { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; max-width: 100%; order: -1; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .cert-wrap { grid-template-columns: 1fr; }
  .cert-right { padding: 20px 32px 40px; overflow: hidden; }
  .cert-diploma { transform: none; }
  .comm-grid-3 { grid-template-columns: 1fr 1fr; }
  .comm-grid-3--single { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Nav */
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .dmenu { display: none; }
  .nav__burger { display: flex; }
  /* Fix: nav CTA se apretaba contra burger sin reducir tamaño */
  .nav__cta { font-size: 13px; padding: 9px 18px; }

  /* Heroes */
  .hero { padding: 60px 20px 48px; min-height: auto; }
  /* Fix: hero__h clamp mínimo 58px era demasiado para 375px */
  .hero__h { font-size: clamp(38px, 10vw, 80px); }
  .hero__desc { font-size: 15px; max-width: 100%; }
  .hero__cta { padding: 14px 40px; font-size: 15px; }
  .hero-dark { padding: 52px 20px 56px; }
  .hero-dark h1 { font-size: clamp(36px, 10vw, 72px); max-width: 100%; }

  /* Secciones homepage */
  .cats, .ia, .dpro, .aval, .comm, .fbanner { padding-left: 20px; padding-right: 20px; }
  .dpro { padding: 60px 20px; }
  .cgrid { grid-template-columns: repeat(2, 1fr); }
  .comm__grid { grid-template-columns: 1fr; }

  /* Footer global */
  .footer { padding: 40px 20px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; } /* 2 cols en tablet */
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Tabs y listados */
  .tabs { padding: 24px 20px 36px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 8px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex-shrink: 0; padding: 13px 20px; font-size: 13px; }
  .courses-grid, .faq, .page-hero { padding-left: 20px; padding-right: 20px; }
  .page-hero { padding-top: 48px; padding-bottom: 20px; }
  .page-hero h1 { font-size: clamp(42px, 12vw, 72px); margin-bottom: 12px; }
  .page-hero p  { font-size: 14.5px; }
  .courses-grid { grid-template-columns: 1fr 1fr; }

  /* Breadcrumb */
  .bread { padding: 14px 20px; overflow: hidden; }
  .bread .curr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }

  /* Single page layout */
  .single-main { padding: 32px 20px 60px; }
  .sep { margin: 32px 0; }

  /* Section titles — evitar overflow horizontal */
  .section-title { font-size: clamp(22px, 5.5vw, 34px); overflow-wrap: break-word; word-break: break-word; }
  .about-desc { font-size: 15px; max-width: 100%; overflow-wrap: break-word; }
  .path-desc { max-width: 100%; overflow-wrap: break-word; }

  /* Feat cards */
  .feat-grid { grid-template-columns: 1fr; }

  /* Cert */
  .cert-wrap { grid-template-columns: 1fr; }
  .cert-right { padding: 20px 24px 32px; overflow: hidden; }
  .cert-diploma { transform: none; max-width: 100%; }
  .cert-by { font-size: 12px; gap: 12px; overflow-wrap: break-word; text-align: center; }
  .cert-by strong { font-size: 13px; }

  /* Learning path acordeón */
  .pa-head { padding: 16px 18px; gap: 10px; }
  .pa-head h3 { font-size: 14px; }
  .pa-inner { padding: 0 18px 22px; }

  /* Comunidad testimonios */
  .comm-grid-3 { grid-template-columns: 1fr; }
  .comm-grid-3--single { grid-template-columns: 1fr; }
  .comm-num { font-size: 14px; }

  /* Sidebar */
  .sidebar { max-width: 100%; border-radius: 16px; }
  .s-menu { padding: 20px 20px 0; }
  .s-price { font-size: 32px; }
  .s-btn { font-size: 14px; padding: 14px; }
}

@media (max-width: 600px) {
  /* Grids generales */
  .cgrid { grid-template-columns: 1fr; }
  .sep { margin: 24px 0; }
  .ia__row--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; } /* colapsa a 1 col en móvil */
  .courses-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero-meta { flex-direction: column; gap: 8px; }
  .hero-dark h1 { font-size: clamp(36px, 11vw, 60px); }

  /* Single — texto contenido */
  .section-title { font-size: clamp(20px, 6vw, 28px); }
  .about-desc { font-size: 14.5px; }

  /* Details pills */
  .details-row { gap: 8px; }
  .d-pill { font-size: 12px; padding: 8px 14px; }

  /* Cert */
  .cert-left { padding: 32px 24px; }
  .cert-left h2 { font-size: clamp(20px, 5.5vw, 28px); }
  .cert-right { padding: 16px 20px 28px; }
  .cert-diploma { transform: none; max-width: 100%; width: 100%; }
  .cert-ribbon { right: 20px; }
  .cert-by { flex-direction: column; align-items: center; gap: 8px; }

  /* Learning path */
  .tl { padding-left: 20px; }
  .tl-i { gap: 10px; }
  .tl-l { min-width: 56px; font-size: 9px; }
  .tl-n { font-size: 13px; }

  /* Testimonios */
  .testi { padding: 18px; }
  .testi__text { font-size: 13px; overflow-wrap: break-word; word-break: break-word; }

  /* Sidebar pricing */
  .s-pricing { padding: 18px 18px 20px; }
  .s-price { font-size: 28px; }
  .s-price-old { font-size: 13px; }
  .s-sale-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .s-installments { font-size: 12px; }
  .s-free { font-size: 12px; }
  .s-payments-label { font-size: 11px; }

  /* Footer single */
  .ftr-inner { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════
   MOBILE FIXES — Touch targets + accesibilidad
═══════════════════════════════════════════════════ */

/* Touch targets mínimos 44px para iOS/Android */
@media (max-width: 900px) {
  .s-menu-item { min-height: 44px; }
  .tab         { min-height: 44px; padding-top: 10px; padding-bottom: 10px; display: inline-flex; align-items: center; }
  .ccard__btn  { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .cc-btn      { min-height: 44px; }
  .pa-head     { min-height: 44px; }
  .fq-q        { min-height: 44px; display: flex; align-items: center; }
  /* Nav burger 44x44 */
  .nav__burger { width: 44px; height: 44px; }
  /* Mobile menu items */
  .mp-list__btn { min-height: 52px; }
  .mp-back      { width: 44px; height: 44px; }
  .mp-close     { width: 44px; height: 44px; }
}

/* Prevenir zoom en inputs iOS (font-size mínimo 16px) */
@media (max-width: 600px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Fix: modales con teclado virtual abierto en móvil */
@media (max-width: 600px) {
  #spark-modal-overlay,
  #unete-overlay {
    align-items: flex-start;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  #spark-modal,
  #unete-modal {
    margin: auto;
    max-height: none;
  }
}

/* Safe area para dispositivos con notch */
.nav {
  padding-left: max(48px, env(safe-area-inset-left));
  padding-right: max(48px, env(safe-area-inset-right));
}
@media (max-width: 900px) {
  .nav {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .mobile-menu__panel {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Fix: footer newsletter inputs en móvil */
@media (max-width: 600px) {
  .footer__news input { font-size: 16px; }
}

/* ── Filtro de tipo (Coderhouse-style) ── */
.tipo-filter {
  display: flex; gap: 8px; padding: 0 48px 24px;
  max-width: var(--max); margin: 0 auto;
}
.tipo-btn {
  height: 34px; padding: 0 16px; border-radius: 50px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--gy); cursor: pointer;
  transition: all .18s;
}
.tipo-btn:hover { border-color: var(--v); color: var(--v); }
.tipo-btn.active { background: var(--v); border-color: var(--v); color: #fff; }
@media (max-width: 900px) {
  .tipo-filter { padding: 0 20px 20px; }
}
@media (max-width: 600px) {
  .tipo-filter { flex-wrap: wrap; }
}
