/* ============================================================
   Highteck Design System — components (.ht-*)
   ============================================================ */

/* --- Layout --- */
.ht-container {
  max-width: var(--ht-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.ht-section { padding: var(--ht-pad-section) 0; position: relative; }

.ht-section--bordered { border-top: 1px solid var(--ht-line); }

/* --- Grid técnico de fondo (canónico) --- */
.ht-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(var(--ht-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ht-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

/* --- Topbar --- */
.ht-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,11,26,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ht-line);
}
.ht-topbar__inner {
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(1rem, 3vw, 2rem);
  max-width: var(--ht-container); margin: 0 auto;
}
.ht-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ht-font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--ht-fg); letter-spacing: -.01em;
  text-decoration: none;
}
.ht-brand__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ht-cyan); box-shadow: 0 0 14px var(--ht-cyan-glow);
}
.ht-brand__logo {
  display: block;
  height: 48px; width: auto;
  filter: drop-shadow(0 0 14px rgba(80, 170, 220, 0.25));
  transition: filter .2s var(--ht-ease), transform .2s var(--ht-ease);
}
.ht-brand:hover .ht-brand__logo {
  filter: drop-shadow(0 0 22px rgba(80, 170, 220, 0.45));
}
.ht-brand__r {
  font: 700 1.6rem/1 var(--ht-font-display);
  color: var(--ht-cyan-2);
  vertical-align: top;
  margin-left: 6px;
  margin-top: 2px;
  opacity: 1;
  text-shadow: 0 0 18px rgba(0, 217, 255, .6), 0 0 4px rgba(0, 217, 255, .35);
  letter-spacing: 0;
}
/* Footer: logo un poco más grande y ® también */
.ht-footer .ht-brand__logo { height: 64px; }
.ht-footer .ht-brand__r { font-size: 2rem; margin-top: 4px; }
.ht-nav { display: flex; align-items: center; margin-left: auto; }
.ht-nav > ul,
.ht-nav ul.ht-nav__list {
  display: flex; align-items: center; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.ht-nav > ul > li,
.ht-nav ul.ht-nav__list > li { position: relative; }
.ht-nav > ul > li > a,
.ht-nav ul.ht-nav__list > li > a {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 1.15rem .85rem;
  font: 500 .9rem/1 var(--ht-font-body);
  color: var(--ht-fg-mute);
  letter-spacing: 0;
  transition: color .15s var(--ht-ease);
  position: relative;
}
.ht-nav > ul > li > a:hover,
.ht-nav > ul > li.current-menu-item > a,
.ht-nav > ul > li.current-menu-parent > a,
.ht-nav > ul > li.current-menu-ancestor > a {
  color: var(--ht-cyan);
}
.ht-nav > ul > li.current-menu-item > a::after,
.ht-nav > ul > li.current-menu-parent > a::after,
.ht-nav > ul > li.current-menu-ancestor > a::after {
  content: ""; position: absolute;
  left: .85rem; right: .85rem; bottom: .75rem;
  height: 2px; border-radius: 2px;
  background: var(--ht-cyan);
  box-shadow: 0 0 10px var(--ht-cyan-glow);
}
.ht-nav > ul > li.menu-item-has-children > a::before {
  content: "▾"; font-size: .65rem; opacity: .55;
  order: 2; margin-left: .1rem;
}
/* Dropdowns nivel 2 */
.ht-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 260px; margin: 0; padding: .5rem 0;
  list-style: none;
  background: var(--ht-navy-700);
  border: 1px solid var(--ht-line-2);
  border-radius: var(--ht-r);
  box-shadow: var(--ht-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ht-ease), transform .18s var(--ht-ease), visibility 0s linear .18s;
  z-index: 1000;
}
.ht-nav li:hover > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: 0s;
}
.ht-nav .sub-menu li { position: relative; }
.ht-nav .sub-menu li a {
  display: block;
  padding: .6rem 1.1rem;
  font: 500 .85rem/1.35 var(--ht-font-body);
  color: var(--ht-fg-mute);
  white-space: nowrap;
  transition: background .12s var(--ht-ease), color .12s var(--ht-ease);
}
.ht-nav .sub-menu li a:hover,
.ht-nav .sub-menu li.current-menu-item > a {
  background: var(--ht-cyan-dim);
  color: var(--ht-cyan);
}
.ht-nav .sub-menu li.menu-item-has-children > a::after {
  content: "›"; float: right; opacity: .55;
  margin-left: .5rem; font-size: 1rem; line-height: 1.35;
}
/* Dropdowns nivel 3 — flyout a la derecha */
.ht-nav .sub-menu .sub-menu {
  top: -.5rem; left: 100%;
  margin-left: 4px; transform: translateX(-4px);
}
.ht-nav .sub-menu li:hover > .sub-menu { transform: translateX(0); }

@media (max-width: 980px) { .ht-nav { display: none; } }

/* --- Buttons --- */
.ht-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem;
  border-radius: var(--ht-r);
  font: 600 var(--ht-fs-sm)/1 var(--ht-font-body);
  letter-spacing: .01em;
  cursor: pointer; user-select: none;
  border: 1px solid transparent;
  transition: transform .12s var(--ht-ease), background .15s var(--ht-ease), border-color .15s var(--ht-ease), box-shadow .15s var(--ht-ease);
}
.ht-btn:hover { transform: translateY(-1px); }
.ht-btn:active { transform: translateY(0); }

.ht-btn--primary {
  background: var(--ht-cyan);
  color: var(--ht-navy-900);
  box-shadow: 0 0 0 1px var(--ht-cyan-2), 0 8px 24px -8px var(--ht-cyan-glow);
}
.ht-btn--primary:hover { background: var(--ht-cyan-2); box-shadow: 0 0 0 1px var(--ht-cyan), 0 14px 30px -8px var(--ht-cyan-glow); }

.ht-btn--ghost {
  background: transparent;
  color: var(--ht-fg);
  border-color: var(--ht-line-3);
}
.ht-btn--ghost:hover { border-color: var(--ht-fg-mute); background: rgba(255,255,255,.03); }

.ht-btn--accent {
  background: var(--ht-lima);
  color: var(--ht-navy-900);
}
.ht-btn--accent:hover { background: var(--ht-lima-2); }

/* --- Eyebrow / Pill --- */
.ht-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem;
  font: 500 var(--ht-fs-xs)/1 var(--ht-font-mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ht-cyan);
  background: var(--ht-cyan-dim);
  border: 1px solid var(--ht-cyan-dim);
  border-radius: 999px;
}
.ht-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ht-cyan); box-shadow: 0 0 10px var(--ht-cyan);
}

/* --- Hero --- */
.ht-hero { position: relative; padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.ht-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 50% at 75% 15%, rgba(0,217,255,.10), transparent 60%),
    radial-gradient(60% 60% at 15% 90%, rgba(196,247,61,.06), transparent 60%),
    linear-gradient(180deg, var(--ht-navy-900) 0%, var(--ht-navy-800) 100%);
}
.ht-hero__inner {
  position: relative; z-index: 2;
  display: grid; gap: 4rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 980px) { .ht-hero__inner { grid-template-columns: 1fr; } }

.ht-hero h1 { font-size: var(--ht-fs-display); margin: 1rem 0 1.2rem; }
.ht-hero h1 span { color: var(--ht-cyan); }
.ht-hero__sub { font-size: 1.15rem; color: var(--ht-fg-mute); max-width: 56ch; }
.ht-hero__cta { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }

/* Hero visual (placeholder o imagen real) */
.ht-hero__visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--ht-r-xl);
  border: 1px solid var(--ht-line-2);
  background: var(--ht-navy-700);
  box-shadow: var(--ht-shadow-lg);
  overflow: hidden;
}
/* Si el visual contiene video, aspect-ratio 16:9 para no recortar */
.ht-hero__visual:has(video),
.ht-hero__visual--video {
  aspect-ratio: 16/9;
  background: var(--ht-navy-900);
}

/* Badge "▶ Ver video" siempre visible sobre el poster */
.ht-video-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem .45rem .65rem;
  background: rgba(5,11,26,.85);
  border: 1px solid var(--ht-cyan-dim);
  border-radius: 999px;
  color: var(--ht-cyan);
  font: 600 .78rem/1 var(--ht-font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(0,217,255,.1) inset;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ht-video-badge svg { width: 12px; height: 12px; }
.ht-video-badge { transition: opacity .25s ease; }
.ht-hero__visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,217,255,.10), transparent 40%),
    repeating-linear-gradient(45deg, var(--ht-line) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
/* En el visual con video el stripe overlay se quita (interfiere visualmente y bloquearía controls) */
.ht-hero__visual--video::before,
.ht-hero__visual:has(video)::before { display: none; }
.ht-hero__visual--video video,
.ht-hero__visual:has(video) video { position: relative; z-index: 1; }
.ht-hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-hero__visual video {
  width: 100%; height: 100%; display: block;
  object-fit: contain;
  background: var(--ht-navy-900);
}

/* --- Stat grid --- */
.ht-stat-row {
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ht-line);
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-r-lg);
  overflow: hidden;
  margin-top: 3rem;
}
@media (max-width: 960px) { .ht-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ht-stat-row { grid-template-columns: 1fr; } }

.ht-stat {
  background: var(--ht-navy-800);
  padding: clamp(.95rem, 2vw, 1.4rem) clamp(.95rem, 2vw, 1.5rem);
  min-width: 0;
}
.ht-stat__num {
  font: 600 clamp(1.5rem, 2.4vw, 2.1rem)/1 var(--ht-font-display);
  color: var(--ht-cyan); letter-spacing: -.02em;
  white-space: nowrap;
}
.ht-stat__label {
  margin-top: .45rem;
  font-size: .66rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ht-fg-mute);
  line-height: 1.3;
}

/* --- Section heading --- */
.ht-section__head {
  max-width: 720px; margin: 0 auto 3.5rem; text-align: center;
}
.ht-section__head h2 { font-size: var(--ht-fs-h1); margin: 1rem 0 1rem; }
.ht-section__head p { color: var(--ht-fg-mute); font-size: 1.05rem; }

/* --- Module grid (9 dominios) --- */
.ht-module-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 920px) { .ht-module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ht-module-grid { grid-template-columns: 1fr; } }

.ht-module {
  position: relative;
  padding: 1.6rem;
  background: linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-r-lg);
  transition: border-color .2s var(--ht-ease), transform .2s var(--ht-ease);
}
.ht-module:hover {
  border-color: var(--ht-cyan-dim);
  transform: translateY(-2px);
}
.ht-module__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--ht-r-sm);
  background: var(--ht-cyan-dim);
  color: var(--ht-cyan);
  margin-bottom: 1rem;
}
.ht-module__icon svg { width: 22px; height: 22px; }
.ht-module h3 { font-size: var(--ht-fs-h3); margin-bottom: .5rem; }
.ht-module__desc { color: var(--ht-fg-mute); font-size: .92rem; line-height: 1.55; }
.ht-module__tag {
  position: absolute; top: 1.3rem; right: 1.3rem;
  font: 500 var(--ht-fs-xs)/1 var(--ht-font-mono);
  color: var(--ht-fg-dim); letter-spacing: .08em;
}

/* --- Feature row (problema/solución) --- */
.ht-feature {
  display: grid; gap: 4rem;
  grid-template-columns: 1fr 1fr; align-items: center;
}
.ht-feature--reverse { direction: rtl; }
.ht-feature--reverse > * { direction: ltr; }
@media (max-width: 920px) { .ht-feature { grid-template-columns: 1fr; } .ht-feature--reverse { direction: ltr; } }

.ht-feature h2 { font-size: var(--ht-fs-h1); margin-bottom: 1rem; }
.ht-feature__lede { color: var(--ht-fg-mute); font-size: 1.1rem; margin-bottom: 1.5rem; }
.ht-feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.ht-feature li {
  display: flex; gap: .8rem; align-items: flex-start;
  color: var(--ht-fg);
}
.ht-feature li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--ht-cyan) 0 30%, transparent 32%),
    var(--ht-cyan-dim);
  border: 1px solid var(--ht-cyan-dim);
}
.ht-feature--alt li::before {
  background:
    radial-gradient(circle at 50% 50%, var(--ht-lima) 0 30%, transparent 32%),
    var(--ht-lima-dim);
  border-color: var(--ht-lima-dim);
}

/* --- Visual card (placeholder o screenshot real) --- */
.ht-shot {
  position: relative;
  border-radius: var(--ht-r-lg);
  border: 1px solid var(--ht-line-2);
  background: var(--ht-navy-700);
  box-shadow: var(--ht-shadow-lg);
  overflow: hidden;
}
.ht-shot::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,217,255,.06), transparent 50%);
  pointer-events: none;
}
.ht-shot img { display: block; width: 100%; }
.ht-shot__cap {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(5,11,26,.85);
  border: 1px solid var(--ht-line-2);
  font: 500 var(--ht-fs-xs)/1 var(--ht-font-mono);
  color: var(--ht-fg);
}

/* placeholder visual when img missing */
.ht-placeholder {
  aspect-ratio: 16/10;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--ht-navy-600), var(--ht-navy-700));
  color: var(--ht-fg-dim);
  font: 500 var(--ht-fs-xs)/1 var(--ht-font-mono);
  text-align: center;
  letter-spacing: .14em;
}

/* --- Capture gallery --- */
.ht-shots {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 920px) { .ht-shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ht-shots { grid-template-columns: 1fr; } }

/* --- Diferencial row --- */
.ht-diff {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .ht-diff { grid-template-columns: 1fr; } }
.ht-diff__item {
  padding: 1.5rem;
  background: var(--ht-navy-800);
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-r);
}
.ht-diff__num {
  font: 600 1.4rem/1 var(--ht-font-mono);
  color: var(--ht-lima); letter-spacing: -.01em;
}
.ht-diff__item h3 { font-size: var(--ht-fs-h3); margin: .7rem 0 .4rem; }
.ht-diff__item p { color: var(--ht-fg-mute); font-size: .95rem; }

/* --- FAQ --- */
.ht-faq { max-width: 820px; margin: 0 auto; }
.ht-faq details {
  border-top: 1px solid var(--ht-line);
  padding: 1.1rem 0;
}
.ht-faq details:last-of-type { border-bottom: 1px solid var(--ht-line); }
.ht-faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font: 600 1.05rem/1.3 var(--ht-font-display);
  color: var(--ht-fg);
}
.ht-faq summary::-webkit-details-marker { display: none; }
.ht-faq summary::after {
  content: "+"; font: 400 1.5rem/1 var(--ht-font-mono);
  color: var(--ht-cyan); transition: transform .2s var(--ht-ease);
}
.ht-faq details[open] summary::after { content: "−"; }
.ht-faq details > div {
  margin-top: .8rem; color: var(--ht-fg-mute); line-height: 1.65;
}

/* --- CTA final --- */
.ht-cta {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem);
  border-radius: var(--ht-r-xl);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(0,217,255,.12), transparent 70%),
    linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line-2);
  text-align: center;
  overflow: hidden;
}
.ht-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .25;
  background-image:
    linear-gradient(var(--ht-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ht-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%);
}
.ht-cta > * { position: relative; z-index: 1; }
.ht-cta h2 { font-size: var(--ht-fs-h1); margin-bottom: 1rem; }
.ht-cta p { color: var(--ht-fg-mute); max-width: 56ch; margin: 0 auto 2rem; }
.ht-cta__row { display: inline-flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* --- Footer --- */
.ht-footer {
  border-top: 1px solid var(--ht-line);
  padding: 3rem 0 2.5rem;
  margin-top: 4rem;
  color: var(--ht-fg-mute); font-size: var(--ht-fs-sm);
}
.ht-footer__inner {
  display: grid; gap: 2rem;
  grid-template-columns: 2fr repeat(3, 1fr);
}
@media (max-width: 820px) { .ht-footer__inner { grid-template-columns: 1fr 1fr; } }

.ht-footer h4 {
  font-family: var(--ht-font-body); font-size: var(--ht-fs-xs);
  text-transform: uppercase; letter-spacing: .14em; color: var(--ht-fg);
  margin-bottom: .8rem;
}
.ht-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ht-footer a { color: var(--ht-fg-mute); }
.ht-footer a:hover { color: var(--ht-fg); }

.ht-footer__bottom {
  border-top: 1px solid var(--ht-line);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--ht-fs-xs); color: var(--ht-fg-dim);
}

/* --- Reduce motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
/* ============================================================
   Highteck Design System — additions 2026-05-25 (Olas 2+3)
   Para las 34 nuevas landings (Soluciones, Servicios, Casos,
   Recursos, Legales, Carreras, Comparativas, Demo, Precios,
   Partners, Integraciones)
   ============================================================ */

/* --- Reset agresivo del tema Poket: colores naranja heredados --- */
.ht-section a,
.ht-section a:visited,
.ht-card,
.ht-card:visited,
.ht-card *,
.ht-feat *,
.ht-prose a,
.ht-legal a,
.ht-trust__item,
.ht-cta-final a {
  color: inherit;
  text-decoration: none;
}
.ht-section h1, .ht-section h2, .ht-section h3, .ht-section h4 {
  color: var(--ht-fg);
}
.ht-section p { color: var(--ht-fg); }
/* Anular cualquier color:#FF... heredado del tema en links genéricos dentro de secciones ht */
.ht-section *:not([class*="ht-btn"]) { line-height: 1.6; }

/* --- Section title head extension (subtítulo bajo h2) --- */
.ht-section { padding: clamp(3rem, 6vw, 5rem) 0; position: relative; z-index: 1; }
.ht-section__head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.ht-section__head h2 { font-size: var(--ht-fs-h1); margin-bottom: .8rem; }
.ht-section__head .ht-eyebrow { display: inline-block; margin-bottom: .8rem; }
.ht-section__sub {
  color: var(--ht-fg-mute);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}

/* --- Trust strip (badges horizontales) --- */
.ht-trust {
  padding: 1.6rem 0;
  border-top: 1px solid var(--ht-line);
  border-bottom: 1px solid var(--ht-line);
  background: rgba(10, 22, 40, .5);
  backdrop-filter: blur(4px);
}
.ht-trust__row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem 1.4rem;
}
.ht-trust__item {
  font: 500 var(--ht-fs-sm)/1.3 var(--ht-font-body);
  color: var(--ht-fg-mute);
  white-space: nowrap;
}

/* --- Card grid (hub linking) --- */
.ht-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.ht-card {
  display: flex; flex-direction: column;
  padding: 1.6rem;
  background: linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-r-lg);
  transition: border-color .2s var(--ht-ease), transform .2s var(--ht-ease), box-shadow .2s var(--ht-ease);
  text-decoration: none;
  color: var(--ht-fg);
  position: relative;
}
.ht-card:hover {
  border-color: var(--ht-cyan-dim);
  transform: translateY(-3px);
  box-shadow: var(--ht-shadow);
}
.ht-card__eyebrow {
  font: 500 var(--ht-fs-xs)/1 var(--ht-font-mono);
  color: var(--ht-cyan);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.ht-card__title {
  font-family: var(--ht-font-display);
  font-size: var(--ht-fs-h3);
  font-weight: 600;
  color: var(--ht-fg);
  margin: 0 0 .6rem;
  line-height: 1.2;
}
.ht-card__desc {
  color: var(--ht-fg-mute);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}
.ht-card__link {
  color: var(--ht-cyan);
  font: 500 .9rem/1 var(--ht-font-body);
  margin-top: auto;
  transition: color .15s var(--ht-ease), transform .15s var(--ht-ease);
  display: inline-block;
}
.ht-card:hover .ht-card__link { color: var(--ht-cyan-2); transform: translateX(2px); }

/* --- Feature grid (icon + title + desc) --- */
.ht-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.ht-feat {
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-r);
  transition: border-color .2s var(--ht-ease);
}
.ht-feat:hover { border-color: var(--ht-cyan-dim); }
.ht-feat__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--ht-r-sm);
  background: var(--ht-cyan-dim);
  color: var(--ht-cyan);
  font: 600 1.2rem/1 var(--ht-font-display);
  margin-bottom: 1rem;
}
.ht-feat__title {
  font-family: var(--ht-font-display);
  font-size: var(--ht-fs-h3);
  font-weight: 600;
  color: var(--ht-fg);
  margin: 0 0 .5rem;
  line-height: 1.25;
}
.ht-feat__desc {
  color: var(--ht-fg-mute);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
}

/* --- FAQ extensions (items + answers) --- */
.ht-faq__item {
  border-top: 1px solid var(--ht-line);
  padding: 1.1rem 0;
}
.ht-faq__item:last-child { border-bottom: 1px solid var(--ht-line); }
.ht-faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font: 600 1.05rem/1.3 var(--ht-font-display);
  color: var(--ht-fg);
}
.ht-faq__item summary::-webkit-details-marker { display: none; }
.ht-faq__item summary::after {
  content: "+"; font: 400 1.5rem/1 var(--ht-font-mono);
  color: var(--ht-cyan); transition: transform .2s var(--ht-ease);
}
.ht-faq__item[open] summary::after { content: "−"; }
.ht-faq__answer {
  margin-top: .8rem;
  color: var(--ht-fg-mute);
  line-height: 1.65;
  font-size: .98rem;
}
.ht-faq__answer a { color: var(--ht-cyan); }

/* --- CTA Final (alias del .ht-cta canónico con padding + box) --- */
.ht-cta-final {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem);
  margin: clamp(3rem, 6vw, 5rem) auto;
  max-width: var(--ht-container);
  border-radius: var(--ht-r-xl);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(0,217,255,.12), transparent 70%),
    linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line-2);
  text-align: center;
  overflow: hidden;
}
.ht-cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .25;
  background-image:
    linear-gradient(var(--ht-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ht-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%);
}
.ht-cta-final > * { position: relative; z-index: 1; }
.ht-cta-final .ht-container { padding: 0; }
.ht-cta-final h2 { font-size: var(--ht-fs-h1); margin-bottom: 1rem; color: var(--ht-fg); }
.ht-cta-final p { color: var(--ht-fg-mute); max-width: 56ch; margin: 0 auto; }

/* --- Prose (texto largo formato artículo) --- */
.ht-prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ht-fg);
  font-size: 1.02rem;
  line-height: 1.7;
}
.ht-prose h2 {
  font-size: var(--ht-fs-h2);
  margin: 2.4rem 0 1rem;
  color: var(--ht-fg);
}
.ht-prose h3 {
  font-size: var(--ht-fs-h3);
  margin: 1.8rem 0 .8rem;
  color: var(--ht-fg);
}
.ht-prose p { margin: 0 0 1rem; color: var(--ht-fg); }
.ht-prose a { color: var(--ht-cyan); text-decoration: underline; text-decoration-color: var(--ht-cyan-dim); text-underline-offset: 3px; }
.ht-prose a:hover { color: var(--ht-cyan-2); }
.ht-prose ul, .ht-prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
  color: var(--ht-fg);
}
.ht-prose li { margin: .4rem 0; color: var(--ht-fg); }
.ht-prose ul li::marker { color: var(--ht-cyan); }
.ht-prose ol li::marker { color: var(--ht-cyan); font-weight: 600; }
.ht-prose strong { color: var(--ht-fg); font-weight: 600; }
.ht-prose blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.4rem;
  border-left: 3px solid var(--ht-cyan);
  background: rgba(0,217,255,.05);
  border-radius: 0 var(--ht-r-sm) var(--ht-r-sm) 0;
  color: var(--ht-fg-mute);
  font-style: italic;
}

/* Legal: variante más densa */
.ht-legal { font-size: .96rem; line-height: 1.65; }
.ht-legal h2 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--ht-line); }
.ht-legal h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* --- Grid 2 columnas --- */
.ht-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 820px) { .ht-grid-2 { grid-template-columns: 1fr; } }
.ht-grid-2 .ht-prose { margin: 0; }
.ht-grid-2 > div {
  padding: 1.6rem;
  background: linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-r-lg);
}

/* --- Table canonical --- */
.ht-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ht-navy-800);
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-r);
  overflow: hidden;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.ht-table thead th {
  background: var(--ht-navy-700);
  padding: .9rem 1rem;
  text-align: left;
  font: 600 .88rem/1.3 var(--ht-font-display);
  color: var(--ht-cyan);
  border-bottom: 1px solid var(--ht-line-2);
  letter-spacing: .02em;
}
.ht-table tbody td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--ht-line);
  color: var(--ht-fg);
  vertical-align: top;
}
.ht-table tbody tr:last-child td { border-bottom: 0; }
.ht-table tbody tr:hover td { background: rgba(0,217,255,.04); }

/* Comparativas: 1ra columna destacada */
.ht-compare tbody td:first-child {
  font-weight: 500;
  color: var(--ht-fg-mute);
  background: rgba(15, 32, 56, .5);
  white-space: nowrap;
}
.ht-compare tbody td:nth-child(2) { color: var(--ht-fg); }
.ht-compare tbody td:nth-child(2)::before { content: ""; }

/* Responsive table scroll */
@media (max-width: 720px) {
  .ht-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* --- Calculadora ROI --- */
.ht-calc {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line-2);
  border-radius: var(--ht-r-lg);
}
.ht-calc__inputs {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.ht-calc__field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.ht-calc__field > span {
  color: var(--ht-fg-mute);
  font-size: .92rem;
}
.ht-calc__field input {
  background: var(--ht-navy-900);
  border: 1px solid var(--ht-line-2);
  color: var(--ht-fg);
  padding: .7rem 1rem;
  border-radius: var(--ht-r-sm);
  font: 600 1.05rem/1 var(--ht-font-mono);
  width: 100%;
  transition: border-color .15s var(--ht-ease);
}
.ht-calc__field input:focus {
  outline: none;
  border-color: var(--ht-cyan);
  box-shadow: 0 0 0 3px var(--ht-cyan-dim);
}
.ht-calc__result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ht-line-2);
  border-radius: var(--ht-r);
  overflow: hidden;
}
@media (max-width: 640px) { .ht-calc__result { grid-template-columns: 1fr; } }
.ht-calc__metric {
  background: var(--ht-navy-900);
  padding: 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.ht-calc__num {
  font: 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.1 var(--ht-font-display);
  color: var(--ht-cyan);
  letter-spacing: -.02em;
}
.ht-calc__label {
  font-size: .82rem;
  color: var(--ht-fg-mute);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ht-calc__disclaimer {
  margin-top: 1rem;
  color: var(--ht-fg-dim);
  font-size: .82rem;
  text-align: center;
}

/* --- Blockquote utility (testimonial) --- */
.ht-quote {
  margin: 1.5rem 0;
  padding: 1.5rem 1.8rem;
  border-left: 4px solid var(--ht-cyan);
  background: linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border-radius: 0 var(--ht-r) var(--ht-r) 0;
  font-size: 1.05rem;
  color: var(--ht-fg);
  font-style: italic;
  line-height: 1.6;
}
.ht-quote p { margin: 0 0 .8rem; }
.ht-quote cite {
  color: var(--ht-cyan);
  font-style: normal;
  font: 500 .9rem/1 var(--ht-font-body);
}

/* --- Card link variant para "Ver más →" más visible --- */
.ht-card__link::after {
  content: ""; display: inline-block;
}
/* ============================================================
   Highteck Design System — additions v1.2.0 (case studies enriched + heroes con imagen)
   2026-05-25 noche
   ============================================================ */

/* --- Hero con visual lateral (imagen) --- */
.ht-hero--case .ht-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 920px) {
  .ht-hero--case .ht-hero__inner { grid-template-columns: 1fr; }
}
.ht-hero--case .ht-hero__visual {
  border-radius: var(--ht-r-lg);
  overflow: hidden;
  border: 1px solid var(--ht-line-2);
  box-shadow: var(--ht-shadow-lg);
}
.ht-hero--case .ht-hero__visual img {
  width: 100%;
  display: block;
  height: auto;
}

/* Generic hero visual with img (también para hubs sin clase --case) */
.ht-hero__visual img {
  width: 100%;
  border-radius: var(--ht-r-lg);
  display: block;
  box-shadow: var(--ht-shadow);
  border: 1px solid var(--ht-line-2);
}

/* --- Timeline (case studies) --- */
.ht-timeline {
  display: grid;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.ht-timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--ht-cyan-dim), var(--ht-line));
}
.ht-timeline__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
  position: relative;
}
.ht-timeline__marker {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 2px solid var(--ht-cyan);
  display: grid; place-items: center;
  font: 600 .95rem/1 var(--ht-font-mono);
  color: var(--ht-cyan);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.ht-timeline__body {
  padding: .4rem 0 1rem;
}
.ht-timeline__when {
  font: 500 var(--ht-fs-xs)/1 var(--ht-font-mono);
  color: var(--ht-lima);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.ht-timeline__title {
  font-family: var(--ht-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ht-fg);
  margin: 0 0 .4rem;
  line-height: 1.3;
}
.ht-timeline__desc {
  color: var(--ht-fg-mute);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Team grid --- */
.ht-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.ht-team-card {
  padding: 1.4rem;
  background: linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-r);
  text-align: center;
}
.ht-team-card__role {
  font: 500 .82rem/1.2 var(--ht-font-mono);
  color: var(--ht-cyan);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.ht-team-card__count {
  font: 600 2.2rem/1 var(--ht-font-display);
  color: var(--ht-fg);
  margin-bottom: .6rem;
}
.ht-team-card__desc {
  color: var(--ht-fg-mute);
  font-size: .88rem;
  line-height: 1.5;
  margin: 0;
}

/* --- Stack grid (case studies) --- */
.ht-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.ht-stack-item {
  padding: 1.2rem 1.4rem;
  background: linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line);
  border-left: 3px solid var(--ht-cyan);
  border-radius: 0 var(--ht-r-sm) var(--ht-r-sm) 0;
}
.ht-stack-item__cat {
  font: 500 .78rem/1 var(--ht-font-mono);
  color: var(--ht-fg-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}
.ht-stack-item__tech {
  font: 600 1.05rem/1.3 var(--ht-font-display);
  color: var(--ht-fg);
  margin-bottom: .5rem;
}
.ht-stack-item__why {
  color: var(--ht-fg-mute);
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
}

/* --- Lessons learned --- */
.ht-lessons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.ht-lesson {
  padding: 1.6rem;
  background: linear-gradient(180deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-r);
  position: relative;
}
.ht-lesson::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--ht-cyan), var(--ht-lima));
  border-radius: var(--ht-r) var(--ht-r) 0 0;
}
.ht-lesson__hash {
  font: 600 .85rem/1 var(--ht-font-mono);
  color: var(--ht-lima);
  letter-spacing: .04em;
  margin-bottom: .8rem;
}
.ht-lesson__title {
  font-family: var(--ht-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ht-fg);
  margin: 0 0 .8rem;
  line-height: 1.3;
}
.ht-lesson__desc {
  color: var(--ht-fg-mute);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Gallery (placeholder o capturas) --- */
.ht-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.ht-gallery__item {
  margin: 0;
}
.ht-gallery__ph {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 50%, var(--ht-cyan-dim), transparent 70%),
    linear-gradient(135deg, var(--ht-navy-700), var(--ht-navy-800));
  border: 1px solid var(--ht-line-2);
  border-radius: var(--ht-r);
  display: grid;
  place-items: center;
  font-size: 3rem;
  transition: border-color .2s var(--ht-ease), transform .2s var(--ht-ease);
}
.ht-gallery__ph span {
  filter: drop-shadow(0 0 12px var(--ht-cyan-glow));
}
.ht-gallery__item:hover .ht-gallery__ph {
  border-color: var(--ht-cyan-dim);
  transform: translateY(-2px);
}
.ht-gallery__item figcaption {
  margin-top: .6rem;
  font-size: .88rem;
  color: var(--ht-fg-mute);
  text-align: center;
}
