/* ========================================================================== 
   KUDEN MARKETING SYSTEM — VISUAL REFRESH 2026
   Capa compartida para Home, Kuden IA, Kuden QA y Kimi Academy.
   Mantiene el sistema de marca y normaliza jerarquía, layout y responsive.
   ========================================================================== */

:root {
  color-scheme: light;
  --radius-full: 999px;
  --bg-dark: var(--bg-secondary);
  --bubble-bg: rgba(255, 255, 255, 0.94);
  --bubble-border: rgba(99, 91, 255, 0.14);
  --layout-max: 1200px;
  --reading-max: 760px;
  --section-space: clamp(72px, 3vw, 112px);
  --surface-solid: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(238, 242, 249, 0.68);
  --surface-accent: rgba(99, 91, 255, 0.07);
  --line-strong: rgba(99, 91, 255, 0.16);
  --shadow-soft: 0 12px 34px rgba(34, 40, 87, 0.08);
  --shadow-card: 0 24px 64px rgba(34, 40, 87, 0.12);
  --shadow-product: 0 32px 90px rgba(55, 53, 126, 0.16);
  --transition-ui: 180ms ease;
  --transition-lift: 320ms cubic-bezier(.2, .8, .2, 1);
  --page-accent: var(--kuden-indigo);
  --page-accent-rgb: 99, 91, 255;
  --refresh-bg: var(--bg-primary);
  --refresh-surface: var(--surface-solid);
  --refresh-surface-muted: var(--surface-soft);
  --refresh-border: var(--line-strong);
  --refresh-text: var(--text-title);
  --refresh-text-muted: var(--text-secondary);
  --refresh-text-soft: var(--text-tertiary);
  --refresh-accent: var(--page-accent);
  --refresh-accent-strong: var(--page-accent);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-dark: #171A2F;
  --bubble-bg: rgba(28, 32, 53, 0.96);
  --bubble-border: rgba(255, 255, 255, 0.10);
  --surface-solid: rgba(28, 32, 53, 0.96);
  --surface-soft: rgba(13, 16, 32, 0.48);
  --surface-accent: rgba(99, 91, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.20);
  --shadow-card: 0 26px 70px rgba(0, 0, 0, 0.30);
  --shadow-product: 0 34px 96px rgba(0, 0, 0, 0.42);
}

.page-ia {
  --page-accent: #635BFF;
  --page-accent-rgb: 99, 91, 255;
}

.page-qa {
  --page-accent: #2678FF;
  --page-accent-rgb: 38, 120, 255;
}

.page-academy {
  --page-accent: #8A5CF6;
  --page-accent-rgb: 138, 92, 246;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background:
    radial-gradient(circle at 12% 2%, rgba(99, 91, 255, 0.09), transparent 29rem),
    radial-gradient(circle at 92% 14%, rgba(55, 215, 255, 0.08), transparent 28rem),
    var(--bg-primary) !important;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: var(--kuden-indigo);
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(55, 215, 255, 0.72);
  outline-offset: 3px;
}

.hub-wrap,
.container {
  width: min(calc(100% - 48px), var(--layout-max));
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

main h2:not(.product-title) {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.042em;
}

main h3 {
  letter-spacing: -0.025em;
}

.hl,
.grad {
  background: linear-gradient(125deg, var(--kuden-indigo) 10%, #287DFF 58%, #16BEEA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ── Shell y navegación ───────────────────────────────────────────── */
.hub-navbar {
  z-index: 1000;
  background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hub-navbar-inner {
  width: min(100%, 1280px);
  height: 72px;
  max-width: 1280px;
  padding-inline: 32px;
  gap: 18px;
}

.hub-logo {
  flex: 0 0 auto;
  gap: 10px;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
}

.hub-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hub-nav-links {
  gap: 2px;
}

.hub-nav-link {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
}

.hub-nav-link:hover,
.hub-nav-link.active {
  color: var(--text-title);
  background: var(--surface-accent);
}

.hub-nav-actions {
  flex: 0 0 auto;
  gap: 9px;
}

.hub-theme-btn {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--surface-solid);
}

.hub-btn-demo {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  white-space: nowrap;
}

.hub-dropdown-menu {
  padding: 9px;
  border-radius: 18px;
  background: var(--surface-solid);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.hub-dropdown-item {
  border-radius: 12px;
}

.hub-mobile-menu {
  z-index: 999;
  padding: 16px max(24px, calc((100vw - var(--layout-max)) / 2));
  background: color-mix(in srgb, var(--bg-primary) 95%, transparent);
  box-shadow: var(--shadow-card);
}

.hub-mobile-menu.open {
  display: flex;
}

.hub-mobile-link,
.hub-mobile-demo {
  min-height: 48px;
}

.hub-hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
}

.hub-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hub-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hub-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Botones compartidos ──────────────────────────────────────────── */
.hub-btn-primary,
.hub-btn-ghost,
.btn-primary,
.btn-secondary {
  min-height: 48px;
  justify-content: center;
  border-radius: 16px;
  font-weight: 700;
  transition: transform var(--transition-ui), box-shadow var(--transition-ui), border-color var(--transition-ui);
}

.hub-btn-primary,
.btn-primary {
  background: linear-gradient(120deg, #5148F4 0%, #6E5CFF 54%, #287DFF 100%);
  box-shadow: 0 12px 28px rgba(99, 91, 255, 0.25);
}

.hub-btn-primary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(99, 91, 255, 0.32);
}

.hub-btn-ghost,
.btn-secondary {
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.hub-btn-ghost:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--page-accent-rgb), 0.36);
}

/* ── Hero principal y heroes de producto ─────────────────────────── */
.hub-hero,
.ia-hero,
.qa-hero,
.academy-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(var(--page-accent-rgb), 0.17), transparent 34rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent) !important;
  border-bottom: 1px solid var(--glass-border);
}

.hub-hero::before,
.ia-hero::before,
.qa-hero::before,
.academy-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  left: 50%;
  top: -520px;
  transform: translateX(-50%);
  border: 1px solid rgba(var(--page-accent-rgb), 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(var(--page-accent-rgb), 0.025),
    0 0 0 180px rgba(var(--page-accent-rgb), 0.018);
  animation: none;
}

.hub-hero {
  min-height: 620px;
  padding: clamp(92px, 11vw, 148px) 0 112px;
  display: grid;
  align-items: center;
}

.hub-hero-centered,
.ia-hero-content,
.qa-hero-content,
.academy-hero .hub-wrap > div {
  max-width: 960px !important;
  margin-inline: auto;
  text-align: center;
}

.hub-hero h1,
.ia-hero h1,
.qa-hero h1,
.academy-hero h1 {
  max-width: 980px;
  margin-inline: auto;
  margin-bottom: 26px !important;
  font-size: clamp(2.65rem, 5.8vw, 5rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.058em;
}

.ia-hero h1,
.qa-hero h1,
.academy-hero h1 {
  font-size: clamp(2.55rem, 5vw, 4.35rem) !important;
}

.hub-hero-sub,
.ia-hero-content > p,
.qa-hero-content > p,
.academy-hero .hub-wrap > div > p {
  max-width: 800px !important;
  margin: 0 auto 38px !important;
  color: var(--text-secondary) !important;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem) !important;
  line-height: 1.65 !important;
}

.hub-hero-actions,
.ia-hero-content > div:last-child,
.qa-hero-content > div:last-child,
.academy-hero .hub-wrap > div > div:last-child {
  gap: 12px !important;
}

.hub-hero-kicker,
.hub-kicker,
.badge-kicker {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  color: var(--page-accent);
  background: rgba(var(--page-accent-rgb), 0.08);
  border: 1px solid rgba(var(--page-accent-rgb), 0.18);
  font-size: 0.74rem;
  letter-spacing: 0.085em;
  font-weight: 750;
}

/* ── Ritmo de secciones ──────────────────────────────────────────── */
.hub-products,
.hub-conoce-kimi,
.hub-dfy,
.hub-security,
.hub-industries,
.hub-team,
.hub-cases,
.hub-faq,
.page-product main > section:not(.ia-hero):not(.qa-hero):not(.academy-hero):not(.hub-cta-final) {
  padding-top: var(--section-space) !important;
  padding-bottom: var(--section-space) !important;
}

.page-product main > section:nth-of-type(even):not(.hub-cta-final) {
  background: var(--surface-soft) !important;
  border-top: 1px solid var(--glass-border) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}

.page-product main > section:nth-of-type(odd):not(.ia-hero):not(.qa-hero):not(.academy-hero):not(.hub-cta-final) {
  background: transparent !important;
}

.hub-sec-head {
  max-width: 820px;
  margin: 0 auto 54px;
}

.hub-sec-head p,
.page-product main > section > .hub-wrap > p {
  max-width: var(--reading-max);
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.72;
}

/* ── Prueba social ───────────────────────────────────────────────── */
.hub-social-proof {
  padding: 28px 0;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--glass-border);
}

.sp-title {
  margin-bottom: 14px;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sp-logos {
  gap: 22px;
  row-gap: 12px;
}

.sp-logo {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.78;
}

/* ── Home: tarjetas de producto ──────────────────────────────────── */
.hub-products-grid {
  gap: 28px;
}

.hub-product-card {
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
  transition: transform var(--transition-lift), box-shadow var(--transition-lift), border-color var(--transition-lift);
}

.hub-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--page-accent-rgb), 0.24);
  box-shadow: var(--shadow-product);
}

.macos-bar {
  min-height: 46px;
  padding-inline: 18px;
  background: color-mix(in srgb, var(--surface-solid) 88%, var(--bg-secondary));
  border-bottom-color: var(--glass-border);
}

.macos-bar-title {
  overflow: hidden;
  color: var(--text-tertiary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-screenshot-wrap {
  background: #f6f8fd;
}

.hub-product-card:not(.card-academy) .product-screenshot-wrap {
  height: 310px;
}

.hub-product-card:not(.card-academy) .product-screenshot-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.product-body {
  padding: 34px 36px 38px;
}

.product-title {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.product-desc {
  font-size: 0.98rem;
  line-height: 1.7;
}

.product-bullets {
  gap: 14px;
}

.product-bullets li {
  font-size: 0.91rem;
  line-height: 1.58;
}

.product-cta {
  margin-top: 26px;
  padding-top: 20px;
}

.card-academy {
  min-height: 480px;
  background:
    radial-gradient(circle at 92% 24%, rgba(138, 92, 246, 0.14), transparent 24rem),
    var(--surface-solid);
}

.card-academy .product-screenshot-wrap {
  margin: 28px 28px 28px 0;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.card-academy .product-screenshot-wrap img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: top;
}

/* ── Kimi ────────────────────────────────────────────────────────── */
.hub-conoce-kimi {
  background:
    radial-gradient(circle at 76% 48%, rgba(99, 91, 255, 0.12), transparent 28rem),
    var(--surface-soft);
  border-block: 1px solid var(--glass-border);
}

.hub-conoce-kimi .hub-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(48px, 7vw, 92px);
}

.kimi-stage,
.state-card,
.state-library {
  background: var(--surface-solid);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.kimi-stage-svg-wrap {
  width: min(100%, 430px);
  height: auto;
  aspect-ratio: 1;
}

.kimi-stage {
  border-radius: 34px;
}

.kimi-speech {
  top: auto;
  right: -24px;
  bottom: 22px;
  left: auto;
  max-width: 210px;
  background: var(--bubble-bg);
  border-color: var(--bubble-border);
  box-shadow: var(--shadow-card);
}

.kimi-speech::after {
  display: none;
}

.interaction-hint {
  color: var(--text-secondary);
  background: var(--surface-solid);
  border-color: var(--line-strong);
}

/* ── Componentes de contenido y producto ────────────────────────── */
.dfy-step,
.security-card,
.case-card,
.ia-card,
.qa-card,
.ia-industry-card,
.qa-acc-item,
.academy-gamification-panel,
.hub-formula,
.api-integration-box {
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.dfy-step,
.security-card,
.case-card,
.ia-card,
.qa-card,
.academy-gamification-panel {
  border-radius: 24px;
}

.dfy-step,
.security-card,
.case-card {
  transition: transform var(--transition-lift), box-shadow var(--transition-lift), border-color var(--transition-lift);
}

.dfy-step:hover,
.security-card:hover,
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.hub-industries-grid {
  gap: 14px;
}

.industry-chip {
  min-height: 54px;
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 16px rgba(34, 40, 87, 0.05);
}

.ia-bento-grid,
.qa-grid-container {
  gap: clamp(28px, 4vw, 52px);
}

.ia-card,
.qa-card {
  padding: clamp(24px, 3vw, 36px);
}

.ia-feature-icon,
.qa-feature-icon {
  color: var(--page-accent);
  background: rgba(var(--page-accent-rgb), 0.08);
  border-color: rgba(var(--page-accent-rgb), 0.15);
}

.ia-mockup-wrapper,
.qa-mockup-wrapper {
  padding: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-product);
}

.ia-mockup-wrapper img,
.qa-mockup-wrapper img,
.page-product main section > .hub-wrap > img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.ia-voice-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(99, 91, 255, 0.12), transparent 32rem),
    var(--surface-soft) !important;
}

.qa-radar-section {
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 94, 115, 0.12), transparent 28rem),
    var(--surface-soft) !important;
}

.qa-radar-alert {
  color: #d43c54;
  background: rgba(255, 94, 115, 0.08);
  border-color: rgba(255, 94, 115, 0.24);
}

.badge-item {
  background: var(--surface-solid);
  border-color: var(--glass-border);
}

.faq-item {
  background: var(--surface-solid);
  border-color: var(--glass-border);
  box-shadow: 0 6px 18px rgba(34, 40, 87, 0.04);
}

.faq-question {
  min-height: 64px;
}

/* ── CTA y footer ───────────────────────────────────────────────── */
.hub-cta-final {
  position: relative;
  overflow: hidden;
  margin: clamp(36px, 6vw, 72px) 24px 0;
  padding: clamp(72px, 8vw, 108px) 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 0%, rgba(55, 215, 255, 0.24), transparent 24rem),
    linear-gradient(130deg, #24205D 0%, #4F46D8 48%, #196FC7 100%) !important;
  box-shadow: 0 30px 90px rgba(43, 39, 124, 0.28);
}

.hub-cta-final h2,
.hub-cta-final p {
  color: #fff;
}

.hub-cta-final .hl {
  background: linear-gradient(120deg, #fff 10%, #9FEAFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hub-cta-final .hub-btn-primary {
  color: #27245f;
  background: #fff;
  box-shadow: 0 16px 38px rgba(8, 12, 42, 0.24);
}

.hub-footer {
  margin-top: 0;
  padding-top: 76px;
  background: var(--bg-primary);
  border-top: 0;
}

.hub-footer-grid,
.hub-footer-inner {
  gap: 42px !important;
}

.hub-footer a {
  transition: color var(--transition-ui);
}

/* ── Responsive: desktop compacto / tablet ──────────────────────── */
@media (max-width: 1100px) {
  .hub-nav-links {
    display: none;
  }

  .hub-hamburger {
    display: flex;
  }

  .hub-navbar-inner {
    padding-inline: 24px;
  }

  .hub-products-grid {
    grid-template-columns: 1fr;
  }

  .hub-product-card:not(.card-academy) .product-screenshot-wrap {
    height: 390px;
  }
}

@media (max-width: 900px) {
  :root {
    --section-space: 76px;
  }

  .hub-wrap,
  .container {
    width: min(calc(100% - 40px), var(--layout-max));
  }

  .hub-hero {
    min-height: 560px;
    padding: 94px 0 84px;
  }

  .ia-hero,
  .qa-hero,
  .academy-hero {
    padding: 96px 0 80px;
  }

  .hub-conoce-kimi .hub-hero-grid,
  .ia-bento-grid,
  .qa-grid-container,
  .page-product main [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-12 {
    grid-column: 1 / -1 !important;
  }

  .hub-conoce-kimi .hub-hero-content {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
  }

  .hub-conoce-kimi .hub-hero-sub {
    max-width: 680px !important;
  }

  .kimi-bullets {
    max-width: 620px;
    margin-inline: auto;
    text-align: left;
  }

  .hub-hero-kimi {
    min-width: 0;
  }

  .kimi-stage-svg-wrap {
    width: min(78vw, 440px);
  }

  .kimi-speech {
    right: 12px;
    bottom: 14px;
  }

  .card-academy {
    padding: 0;
  }

  .card-academy .product-screenshot-wrap {
    width: auto;
    margin: 0 28px 28px;
  }

  .hub-footer-grid,
  .hub-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ── Responsive: móvil ───────────────────────────────────────────── */
@media (max-width: 680px) {
  :root {
    --section-space: 62px;
  }

  .hub-wrap,
  .container {
    width: min(calc(100% - 32px), var(--layout-max));
  }

  .hub-navbar-inner {
    height: 64px;
    padding-inline: 16px;
    gap: 10px;
  }

  .hub-logo img {
    width: 31px;
    height: 31px;
  }

  .hub-logo span {
    font-size: 1.02rem;
  }

  .hub-nav-actions > .hub-nav-dropdown,
  .hub-nav-actions > .hub-btn-demo,
  .hub-theme-btn #hub-theme-label {
    display: none;
  }

  .hub-theme-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .hub-mobile-menu {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding: 18px 16px 28px;
  }

  .hub-hero {
    min-height: auto;
    padding: 78px 0 68px;
  }

  .ia-hero,
  .qa-hero,
  .academy-hero {
    padding: 76px 0 64px;
  }

  .hub-hero h1,
  .ia-hero h1,
  .qa-hero h1,
  .academy-hero h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.25rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.052em;
  }

  main h2:not(.product-title) {
    font-size: clamp(1.8rem, 8.5vw, 2.5rem);
  }

  .hub-hero h1 br,
  .ia-hero h1 br,
  .qa-hero h1 br,
  .academy-hero h1 br,
  .hub-sec-head h2 br,
  .page-product h2 br {
    display: none;
  }

  .hub-hero-sub,
  .ia-hero-content > p,
  .qa-hero-content > p,
  .academy-hero .hub-wrap > div > p {
    font-size: 1rem !important;
    line-height: 1.62 !important;
  }

  .hub-hero-actions,
  .ia-hero-content > div:last-child,
  .qa-hero-content > div:last-child,
  .academy-hero .hub-wrap > div > div:last-child {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
  }

  .hub-hero-actions > *,
  .ia-hero-content > div:last-child > *,
  .qa-hero-content > div:last-child > *,
  .academy-hero .hub-wrap > div > div:last-child > * {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px !important;
  }

  .hub-hero-kicker,
  .hub-kicker,
  .badge-kicker {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .sp-separator {
    display: none;
  }

  .sp-logos {
    justify-content: center;
    gap: 12px 18px;
  }

  .hub-sec-head {
    margin-bottom: 38px;
  }

  .hub-product-card,
  .dfy-step,
  .security-card,
  .case-card,
  .ia-card,
  .qa-card {
    border-radius: 20px;
  }

  .hub-product-card:not(.card-academy) .product-screenshot-wrap {
    height: 230px;
  }

  .product-body {
    padding: 26px 22px 28px;
  }

  .product-title {
    font-size: 1.55rem;
  }

  .card-academy .product-screenshot-wrap {
    margin: 0 16px 16px;
  }

  .card-academy .product-screenshot-wrap img {
    min-height: 220px;
  }

  .ia-bento-grid,
  .qa-grid-container {
    gap: 26px;
    margin-top: 32px;
  }

  .ia-mockup-wrapper,
  .qa-mockup-wrapper {
    padding: 5px;
    border-radius: 18px;
  }

  .ia-mockup-wrapper img,
  .qa-mockup-wrapper img {
    border-radius: 12px;
  }

  .kimi-stage-svg-wrap {
    width: min(92vw, 390px);
  }

  .kimi-speech {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 300px;
    margin: 14px auto 0;
  }

  .hub-industries-grid {
    grid-template-columns: 1fr !important;
  }

  .hub-cta-final {
    margin: 24px 12px 0;
    padding: 64px 18px !important;
    border-radius: 24px;
  }

  .hub-footer {
    padding-top: 58px;
  }

  .hub-footer-grid,
  .hub-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .hub-foot-base,
  .footer-bottom {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .hub-logo span {
    display: none;
  }

  .hub-hero h1,
  .ia-hero h1,
  .qa-hero h1,
  .academy-hero h1 {
    font-size: 2.2rem !important;
  }

  .product-bullets li {
    padding-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Conectividad editorial: contenido sin decoración genérica ───── */
.hub-connectivity .hub-wrap {
  max-width: 920px;
  text-align: center;
}

.hub-connectivity .hub-sec-head {
  margin-bottom: 30px;
}

.hub-connectivity .hub-sec-head p,
.hub-connectivity .hub-wrap > div:not(.hub-sec-head),
.hub-connectivity .hub-wrap > p:last-of-type {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.hub-connectivity .hub-wrap > p:last-of-type {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--glass-border);
}

/* PRODUCT KIMI & WINDOW SYSTEM */
.page-product .kimi-product-composition {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 28px;
  min-width: 0;
}

.page-product .kimi-product-figure {
  width: 100%;
  max-width: 138px;
  margin: 0;
  transform: none;
  transform-origin: center;
  z-index: 2;
}

.page-product .kimi-product-figure .kimi-stage-svg-wrap {
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

.page-product .kimi-product-figure .kimi-stage {
  width: 100%;
  aspect-ratio: 1;
}

.page-product .kimi-product-panel {
  position: relative;
  inset: auto;
  width: min(100%, 430px);
  max-width: none;
  margin: 0 auto;
  padding: 18px 20px 17px;
  border: 1px solid var(--refresh-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--refresh-surface) 94%, transparent);
  box-shadow: 0 18px 42px rgba(28, 46, 91, 0.12);
  text-align: left;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3;
}

.page-product .kimi-product-panel::after {
  display: none;
}

.page-product .ia-mockup-wrapper,
.page-product .qa-mockup-wrapper,
.page-product .product-window {
  position: relative;
  width: 100%;
  height: auto !important;
  margin-top: 0 !important;
  padding: 48px 8px 8px;
  overflow: hidden;
  border: 1px solid var(--refresh-border);
  border-radius: 24px;
  background: var(--refresh-surface);
  box-shadow: 0 24px 60px rgba(28, 46, 91, 0.14), 0 4px 14px rgba(28, 46, 91, 0.08);
  isolation: isolate;
}

.page-product .ia-mockup-wrapper::before,
.page-product .qa-mockup-wrapper::before,
.page-product .product-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40px;
  border-bottom: 1px solid var(--refresh-border);
  background: color-mix(in srgb, var(--refresh-surface-muted) 92%, transparent);
  z-index: 2;
}

.page-product .ia-mockup-wrapper::after,
.page-product .qa-mockup-wrapper::after,
.page-product .product-window::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 #febc2e, 36px 0 #28c840;
  z-index: 3;
}

.page-product .ia-mockup-wrapper > img,
.page-product .qa-mockup-wrapper > img,
.page-product .product-window > img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 560px;
  margin: 0 auto;
  border: 0;
  border-radius: 14px;
  background: #f6f8fd;
  box-shadow: none;
  object-fit: contain;
  object-position: top center;
}

.page-product .product-window--support {
  max-width: 720px;
}

[data-theme="dark"] .page-product .kimi-product-panel {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .page-product .ia-mockup-wrapper,
[data-theme="dark"] .page-product .qa-mockup-wrapper,
[data-theme="dark"] .page-product .product-window {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

@media (max-width: 680px) {
  .page-product .kimi-product-composition {
    gap: 20px;
  }

  .page-product .kimi-product-figure {
    max-width: 108px;
  }

  .page-product .kimi-product-panel {
    padding: 16px 17px 15px;
    border-radius: 16px;
  }

  .page-product .ia-mockup-wrapper,
  .page-product .qa-mockup-wrapper,
  .page-product .product-window {
    padding: 42px 5px 5px;
    border-radius: 18px;
  }

  .page-product .ia-mockup-wrapper::before,
  .page-product .qa-mockup-wrapper::before,
  .page-product .product-window::before {
    height: 36px;
  }

  .page-product .ia-mockup-wrapper::after,
  .page-product .qa-mockup-wrapper::after,
  .page-product .product-window::after {
    top: 13px;
    left: 14px;
    width: 9px;
    height: 9px;
    box-shadow: 16px 0 #febc2e, 32px 0 #28c840;
  }

  .page-product .ia-mockup-wrapper > img,
  .page-product .qa-mockup-wrapper > img,
  .page-product .product-window > img {
    max-height: 420px;
    border-radius: 11px;
  }
}
