/* Traevo Access (zh-CN) — extensiones sobre styles.css. No toca las páginas ES/EN. */

html[lang="zh-CN"] body,
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .btn,
html[lang="zh-CN"] .lang-switch__opt,
html[lang="zh-CN"] summary {
  font-family: 'Geist', 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

html[lang="zh-CN"] body { line-height: 1.75; }
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 { line-height: 1.3; letter-spacing: 0.01em; }

.nav__logo-sub {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-left: 10px;
  white-space: nowrap;
}
.nav__logo-link { display: inline-flex; align-items: center; text-decoration: none; }

.zh-hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); margin-bottom: 22px; }
.zh-hero .hero__subtitle { display: block; opacity: 1; animation: none; }
.zh-hero__trust {
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.zh-hero__micro {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.zh-lead {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-muted);
}

.zh-cta-row { display: flex; justify-content: center; margin-top: 44px; }

.zh-card-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.zh-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.zh-card-grid .card h3 { font-size: 1.15rem; }

.zh-card__tags {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.8;
}
.zh-card__note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 87, 34, 0.08);
  border: 1px solid rgba(255, 87, 34, 0.3);
  color: var(--text);
  font-size: 0.85rem;
}

.zh-transition {
  max-width: 720px;
  margin: 44px auto 0;
  text-align: center;
  font-family: 'Geist', 'Noto Sans SC', sans-serif;
  font-size: 1.15rem;
  color: var(--text);
}

.zh-note {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.zh-fit {
  max-width: 760px;
  margin: 0 auto;
}
.zh-fit .cta-inline__perks { gap: 16px; margin-bottom: 36px; }
.zh-fit .cta-inline__perks li { font-size: 1rem; color: var(--text); align-items: flex-start; }
.zh-fit .cta-inline__perks li::before { margin-top: 4px; }
.zh-fit__box {
  background: rgba(18, 19, 27, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.zh-fit__box + .zh-fit__box { margin-top: 14px; }

.zh-company {
  max-width: 720px;
  margin: 48px auto 0;
  list-style: none;
  padding: 24px 28px;
  background: rgba(18, 19, 27, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: grid;
  gap: 8px;
}
.zh-company strong { color: var(--text); font-weight: 600; margin-right: 6px; }
.zh-company a { color: var(--orange); text-decoration: none; }

/* FAQ */
.zh-faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.zh-faq details {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.25s ease;
}
.zh-faq details[open] { border-color: rgba(255, 87, 34, 0.35); }
.zh-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-weight: 600;
  font-size: 1.02rem;
  min-height: 48px;
}
.zh-faq summary::-webkit-details-marker { display: none; }
.zh-faq summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--orange);
  transition: transform 0.2s ease;
}
.zh-faq details[open] summary::after { content: '–'; }
.zh-faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 18px; }
.zh-faq__a { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.97rem; }

/* Contacto WeChat */
.zh-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 28px;
  justify-content: center;
  margin-top: 48px;
}
.zh-qr-card {
  background: rgba(18, 19, 27, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px 24px;
  text-align: center;
}
.zh-qr-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.zh-qr-card__label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
.zh-qr-card__img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 688 / 670;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}
.zh-qr-card__hint { color: var(--text-muted); font-size: 0.82rem; }
.zh-qr-card__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: border-color 0.2s ease;
}
.zh-qr-card__save:hover { border-color: var(--orange-dim); }
.zh-contact__line { margin-top: 40px; text-align: center; color: var(--text-muted); font-size: 0.95rem; }
.zh-contact__line a { color: var(--text); text-decoration: none; }
.zh-contact__scope { margin-top: 10px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (max-width: 860px) {
  .zh-card-grid, .zh-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .zh-card-grid, .zh-card-grid--4 { grid-template-columns: 1fr; }
  .zh-contact__grid { grid-template-columns: minmax(0, 340px); }
  .nav__logo-sub { display: none; }
  .zh-faq summary { padding-left: 18px; }
}

/* El acento del h1 original es serif cursiva latina; en chino se usa sans, sin cursiva ni tamaño ampliado. */
.zh-hero h1 .accent {
  font-family: 'Geist', 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1em;
  height: auto;
  margin-top: 0;
  vertical-align: baseline;
}
.zh-hero h1 { font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 700px) { .zh-hero h1 { font-size: 1.9rem; } .zh-qr-card__img { max-width: 240px; } }

/* QR dentro de las tarjetas de fundadores */
.founder-card__qr {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  aspect-ratio: 688 / 670;
  margin: 18px auto 8px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}
.founder-card__qr-hint { color: var(--text-muted); font-size: 0.82rem; text-align: center; margin-bottom: 14px; }

/* ===== RITMO VERTICAL (espaciados unificados) ===== */
.hero.zh-hero { padding: 56px 24px 40px; }
.zh-hero .hero__badge { margin-bottom: 28px; }
.zh-hero h1 { margin-bottom: 22px; text-wrap: balance; }
.zh-hero .hero__subtitle { max-width: 600px; margin: 0 auto 32px; text-wrap: balance; }

.section { padding: 64px 24px; }
.section__title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 14px;
  text-wrap: balance;
}
.section__intro {
  max-width: 640px;
  margin: 0 auto 44px;
  font-size: 1rem;
  text-wrap: balance;
}
.zh-transition { margin-top: 36px; }
.zh-cta-row { margin-top: 36px; }
.zh-card-grid .card { padding: 28px 26px; display: flex; flex-direction: column; }
.card__number { margin-bottom: 12px; }
.zh-contact__grid { margin-top: 40px; }
.zh-contact__line { margin-top: 32px; }
#contacto.section { padding-bottom: 48px; }
.footer { padding: 32px 24px 40px; }

/* Lista "para quién" alineada con las cajas */
.zh-fit { max-width: 720px; }
.zh-fit .cta-inline__perks { margin-bottom: 28px; }
.zh-faq { max-width: 720px; }

/* Tarjetas de fundadores: info a la izquierda, QR a la derecha */
.founders { max-width: var(--max-width); }
.founder-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 36px 36px;
}
.founder-card__avatar { margin-bottom: 18px; }
.founder-card__role { margin-bottom: 18px; }
.founder-card__qrbox { text-align: center; }
.founder-card__qr { margin: 0 auto 8px; max-width: 168px; }
.founder-card__qr-hint { margin-bottom: 0; }
@media (max-width: 860px) {
  .founder-card { padding: 32px 28px; }
}
@media (max-width: 560px) {
  .section { padding: 48px 20px; }
  .section__intro { margin-bottom: 32px; }
  .founder-card { grid-template-columns: 1fr; justify-items: start; gap: 22px; }
  .founder-card__qrbox { align-self: center; justify-self: center; }
  .hero.zh-hero { padding: 40px 20px 28px; }
}
#nosotros .section__intro { margin-top: 0; }

#encaje .section__title { margin-bottom: 40px; }

/* Proceso: mismo patrón que "Servicios" de la web ES (índice fijo + paneles) */
.zh-process.services { margin-top: 0; gap: 48px; grid-template-columns: 0.8fr 1.3fr; }
.zh-process .services__sidebar { top: 130px; }
.zh-process .services__nav { gap: 28px; }
.zh-process .service-panel { min-height: 0; padding: 40px 44px; border-radius: 22px; }
.zh-process .service-panel h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); max-width: none; margin-bottom: 12px; }
.zh-process .service-panel > p { max-width: none; font-size: 1rem; margin-bottom: 0; }
.zh-process .services__panels { gap: 20px; }
@media (max-width: 860px) {
  .zh-process.services { display: block; }
  .zh-process .services__sidebar { display: none; }
  .zh-process .service-panel { padding: 30px 26px; margin-bottom: 16px; }
}

/* Datos de mercado (mismo formato que .stats de la web ES + antetítulo) */
.zh-stats { padding: 24px 24px 56px; }
.zh-stats .stats { margin-top: 0; opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.zh-stats .stats.is-visible { opacity: 1; transform: none; filter: none; }
.zh-stats .stat { max-width: 240px; }
.stat__kicker {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-family: 'Geist', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.zh-stats .stat__number { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .zh-stats { padding: 8px 20px 40px; } }

/* =====================================================================
   MÓVIL (≤700px): sin tarjetas numeradas repetidas
   - Problemas  → lista editorial con separadores
   - Proceso    → línea de tiempo vertical
   - Servicios  → carrusel horizontal con paginación
   ===================================================================== */
.zh-dots { display: none; }

@media (max-width: 700px) {
  /* Problemas: lista con separadores, sin cajas */
  #problemas .zh-card-grid { display: block; border-bottom: 1px solid var(--border); }
  #problemas .zh-card-grid .card {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 4px;
    padding: 20px 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    backdrop-filter: none;
    transform: none;
  }
  #problemas .zh-card-grid .card:hover { transform: none; border-color: var(--border); }
  #problemas .card__number { grid-row: 1 / span 2; margin: 2px 0 0; font-size: 1.05rem; }
  #problemas .zh-card-grid .card h3 { margin-bottom: 6px; font-size: 1.08rem; }
  #problemas .zh-card-grid .card p { font-size: 0.93rem; }
  .zh-transition { text-align: left; font-size: 1.05rem; padding-left: 14px; border-left: 2px solid var(--orange); }

  /* Proceso: línea de tiempo */
  .zh-process .services__panels { position: relative; gap: 0; padding-left: 38px; }
  .zh-process .services__panels::before {
    content: '';
    position: absolute;
    left: 9px; top: 8px; bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange), rgba(255, 87, 34, 0.12));
  }
  .zh-process .service-panel {
    position: relative;
    margin: 0;
    padding: 0 0 30px;
    background: none;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    overflow: visible;
  }
  .zh-process .service-panel:last-child { padding-bottom: 0; }
  .zh-process .service-panel::before {
    content: '';
    position: absolute;
    left: -35px; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.14);
  }
  .zh-process .service-panel__num {
    position: static;
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--orange);
  }
  .zh-process .service-panel h3 { font-size: 1.15rem; margin-bottom: 6px; }
  .zh-process .service-panel > p { font-size: 0.94rem; }

  /* Servicios: carrusel con scroll-snap */
  #servicios .zh-card-grid {
    display: flex;
    gap: 14px;
    margin: 0 -20px;
    padding: 4px 10vw 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #servicios .zh-card-grid::-webkit-scrollbar { display: none; }
  #servicios .zh-card-grid .card {
    flex: 0 0 80vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    opacity: 1; filter: none; transform: none;
    padding: 26px 24px;
  }
  #servicios .zh-card-grid .card:hover { transform: none; }
  .zh-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .zh-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background 0.25s ease, width 0.25s ease; }
  .zh-dots span.is-active { width: 22px; border-radius: 999px; background: var(--orange); }
}
