/* =====================================================================
   CHINALAT — Modern redesign system
   Light "Apple" base + carmine accent + Pro dark mode
   ===================================================================== */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ------------------------------ Tokens ------------------------------ */
:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ececee;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --line: rgba(0, 0, 0, .10);
  --line-strong: rgba(0, 0, 0, .16);

  --accent: #c8102e;
  --accent-hover: #a60d26;
  --accent-soft: rgba(200, 16, 46, .10);
  --accent-contrast: #ffffff;

  --nav-bg: rgba(255, 255, 255, .72);
  --nav-border: rgba(0, 0, 0, .08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, .10);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .14);

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 30px;
  --radius-xl: 40px;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --hero-grad: radial-gradient(120% 120% at 15% 0%, #fde7ea 0%, #ffffff 45%, #f5f5f7 100%);
}

[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-elevated: #17171c;
  --surface: #101014;
  --surface-2: #212127;
  --ink: #f5f5f7;
  --ink-soft: #a1a1a8;
  --ink-faint: #86868b;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .20);

  --accent: #ff4d6a;
  --accent-hover: #ff6f87;
  --accent-soft: rgba(255, 77, 106, .14);
  --accent-contrast: #14060a;

  --nav-bg: rgba(14, 14, 16, .68);
  --nav-border: rgba(255, 255, 255, .10);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, .5);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, .6);

  --hero-grad: radial-gradient(120% 120% at 15% 0%, #2a0b12 0%, #120309 42%, #0a0a0c 100%);
}

/* ------------------------------ Typography ------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--ink);
}

.h-display {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.h-xl { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; line-height: 1.16; letter-spacing: -.03em; }
.h-lg { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.18; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-soft);
  font-weight: 400;
}

.text-accent { color: var(--accent); }

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

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--surface { background: var(--surface); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 6vw, 72px);
  display: grid;
  gap: 18px;
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.01em;
  --btn-border: transparent;
  border: 1px solid var(--btn-border);
  transition: transform .35s var(--ease), background .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.btn i { font-size: 1.15em; transition: transform .35s var(--ease); }
.btn:hover { --btn-bg: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 16px 34px var(--accent-soft); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-border: var(--ink); box-shadow: none; }

.btn--light {
  --btn-bg: var(--bg-elevated);
  --btn-fg: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover { --btn-bg: var(--bg-elevated); box-shadow: var(--shadow-md); }

.btn--sm { padding: 11px 22px; font-size: .9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow i { transition: transform .35s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ============================ NAVBAR ============================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  opacity: 0;
  transition: opacity .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-stuck::before {
  opacity: 1;
  border-bottom-color: var(--nav-border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: padding .35s var(--ease);
}
.nav.is-stuck .nav__inner { padding-top: 11px; padding-bottom: 11px; }

.nav__logo img { width: 132px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  position: relative;
  padding: 9px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a.is-active { color: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__theme {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.nav__theme:hover { color: var(--ink); border-color: var(--ink); }
.nav__theme i { font-size: 1.15rem; }
.nav__theme [data-theme-icon-dark] { display: none; }
[data-theme="dark"] .nav__theme [data-theme-icon-dark] { display: block; }
[data-theme="dark"] .nav__theme [data-theme-icon-light] { display: none; }

.nav__user {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 1.2rem;
  color: var(--ink-soft);
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.nav__user:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .2s ease;
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateX(-50%) translateY(5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateX(-50%) translateY(-5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__links {
    position: fixed;
    inset: 84px var(--gutter) auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .nav__links a { padding: 13px 16px; font-size: 1rem; }
  .nav__burger { display: block; }
  .nav__theme-label { display: none; }
  .nav__theme { padding: 0; width: 42px; justify-content: center; }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: min(94svh, 820px);
  display: flex;
  align-items: center;
  padding-top: 148px;
  padding-bottom: 84px;
  background: var(--hero-grad);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero__copy { display: grid; gap: 26px; justify-items: start; max-width: 620px; }
.hero__title { font-size: clamp(2.7rem, 6.6vw, 5.1rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.16; }
.hero__title .grad {
  display: inline-block;
  padding-bottom: .06em;
  background: linear-gradient(115deg, var(--accent), #ff8aa0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 44px);
  margin-top: 10px;
}
.hero__stat { display: grid; gap: 2px; }
.hero__stat b { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.hero__stat span { font-size: .86rem; color: var(--ink-soft); }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  /* transparent: the section gradient shows through the PNGs */
}
.hero__visual .rotator-img {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  margin: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s var(--ease), transform 5s linear;
}
.hero__visual .rotator-img.is-active { opacity: 1; transform: scale(1); }

.hero__badge {
  position: absolute;
  left: 0;
  bottom: 4px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: .88rem;
  max-width: 100%;
}
.hero__badge i { color: var(--accent); font-size: 1.35rem; flex-shrink: 0; }

.hero__blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}
.hero__blob--1 { width: 40vw; height: 40vw; left: -12vw; top: -8vw; background: #ffb3c1; }
.hero__blob--2 { width: 32vw; height: 32vw; right: -10vw; bottom: -12vw; background: #c8102e; opacity: .28; }
[data-theme="dark"] .hero__blob--1 { background: #7a1226; opacity: .4; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-cue span {
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 999px;
  position: relative;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: currentColor;
  transform: translateX(-50%);
  animation: scrollCue 1.7s var(--ease) infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

@media (max-width: 940px) {
  .hero { min-height: auto; padding-top: 124px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 360px; margin-inline: auto; aspect-ratio: 1 / 1; }
  .hero__badge { left: 50%; transform: translateX(-50%); }
  .scroll-cue { display: none; }
}

/* ============================ MARQUEE (seamless infinite) ============================ */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  padding-block: 20px;
  overflow: hidden;
}
/* edge fades as overlays (mask-image on the container can de-composite the child animation) */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 11%;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  /* JS sets animation-duration from content width so the speed never varies */
  animation: marquee 18s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex: 0 0 auto;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 1rem;
  white-space: nowrap;
}
.marquee__item i { color: var(--accent); font-size: 1.2rem; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ============================ REVEAL / SCROLL FX ============================ */
/* Content is always visible if JS is missing/broken — gating is scoped to .js */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
.js [data-reveal="left"] { transform: translateX(-46px); }
.js [data-reveal="right"] { transform: translateX(46px); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal="blur"] { filter: blur(14px); }
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

[data-parallax] { will-change: transform; }

.reveal-line {
  display: block;
  overflow: hidden;
}

/* ============================ SERVICES SWIPER ============================ */
.services .swiper { padding-bottom: 0; }
.card-wrapper { overflow: hidden; padding: 4px 4px 0; }
.card-list.swiper-wrapper { align-items: stretch; }

.card-item {
  height: auto;
}
.card-item .card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.card-item .card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card-item .card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-s);
}
.card-item .badge {
  width: fit-content;
  margin: 18px 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  background: var(--accent-soft);
}
.card-item .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.card-item .card-button {
  margin-top: auto;
  align-self: flex-start;
  width: 42px;
  height: 42px;
  margin-top: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  transition: background .3s ease, color .3s ease, transform .3s var(--ease);
}
.card-item .card-link:hover .card-button {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
  transform: translateX(4px);
}
.card-wrapper .swiper-pagination {
  position: static !important;
  margin-top: 40px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  left: auto !important;
  transform: none !important;
}
.swiper-pagination-bullet { margin: 0 !important; background: var(--ink-faint); opacity: .4; }
.swiper-pagination-bullet-active { background: var(--accent); opacity: 1; }

/* ============================ FEATURE / COUNTRIES ============================ */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 26px);
}
.country-card {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--hero-grad);
  color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.country-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.country-card img {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 62%;
  max-height: 52%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.country-card:hover img { transform: translate(-50%, -50%) scale(1.06); }
.country-card__label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.country-card__name { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; }

@media (max-width: 860px) {
  .countries-grid { grid-template-columns: 1fr; }
  .country-card { min-height: 320px; }
}

/* ============================ PRODUCTS ============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.product-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card__img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--surface);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card h3 { font-size: 1.05rem; }
.product-card p { font-size: .92rem; color: var(--ink-soft); }
.product-card__stars { color: var(--accent); font-size: .9rem; letter-spacing: 2px; }
.products-more { margin-top: 26px; text-align: center; color: var(--ink-soft); font-weight: 500; }

@media (max-width: 1000px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products-grid { grid-template-columns: 1fr; } }

/* ============================ STATS BAND ============================ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-l);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.stat { display: grid; gap: 6px; text-align: center; }
.stat b { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; color: var(--accent); }
.stat span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* ============================ FAQ ============================ */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.faq-item.is-open { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
}
.faq-q i { flex-shrink: 0; font-size: 1.4rem; color: var(--accent); transition: transform .35s var(--ease); }
.faq-item.is-open .faq-q i { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 24px; color: var(--ink-soft); }

/* ============================ SPLIT / ABOUT SHOWCASE ============================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__copy { display: grid; gap: 22px; justify-items: start; }
.split__media {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
/* round medallion (chinalatlogo.png has a dark backdrop baked in) —
   crop to a clean circle and scale up so no dark ring/corner shows;
   container is transparent so the section colour shows through */
.split__media--contain {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.split__media--contain img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ============================ FEATURE CARDS GRID ============================ */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}
.feature-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { font-size: .95rem; color: var(--ink-soft); }
.feature-card .highlight { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .feature-cards { grid-template-columns: 1fr; } }

/* ============================ CASES (existing markup restyle) ============================ */
.cases-section { padding-block: clamp(72px, 12vw, 150px); background: var(--surface); overflow: hidden; }
.cases-header { max-width: 720px; margin: 0 auto clamp(36px, 6vw, 64px); text-align: center; display: grid; gap: 16px; justify-items: center; }
.cases-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.cases-header h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; }
.cases-subtitle { color: var(--ink-soft); font-size: 1.05rem; }

.cases-slider-container {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  overflow: hidden;
}
.cases-slider-track {
  display: flex;
  cursor: grab;
  transition: transform .6s var(--ease);
  user-select: none;
  -webkit-user-select: none;
}
.cases-slider-track.is-dragging { cursor: grabbing; transition: none; }
.cases-slide {
  flex: 0 0 64%;
  min-width: 64%;
  padding: 10px;
  opacity: .4;
  transform: scale(.9);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.cases-slide.is-active { opacity: 1; transform: scale(1); }
.video-square {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-square iframe,
.video-square video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* real <video> files (some are vertical) must show whole frame, not be cropped */
.video-square video { object-fit: contain; background: #000; }
/* YouTube embeds letterbox themselves inside the iframe */
.video-square iframe { object-fit: fill; }
/* legacy side arrows — removed in favour of drag + click-to-navigate */
.cases-arrow { display: none !important; }
/* click-to-navigate overlay on the non-active (peeking) cards */
.cases-slide__nav {
  position: absolute;
  inset: 10px;
  z-index: 4;
  border: 0;
  background: transparent;
  padding: 0 7%;
  display: grid;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease;
}
.cases-slide:not(.is-active) .cases-slide__nav { opacity: 1; }
.cases-slide.is-active .cases-slide__nav { display: none; }
.cases-slide__nav[data-dir="prev"] { justify-items: start; }
.cases-slide__nav[data-dir="next"] { justify-items: end; }
.cases-slide__nav i {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 1.3rem;
  transform: scale(.85);
  opacity: .55;
  transition: transform .25s var(--ease), opacity .25s ease, background .25s ease, color .25s ease;
}
.cases-slide__nav:hover i { transform: scale(1); opacity: 1; background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.cases-indicators { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.cases-dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0;
  background: var(--ink-faint); opacity: .4; transition: all .3s var(--ease); cursor: pointer;
}
.cases-dot.active { opacity: 1; width: 26px; background: var(--accent); }
@media (max-width: 860px) {
  .cases-slide { flex-basis: 84%; min-width: 84%; }
}

/* ============================ TESTIMONIALS (existing markup restyle) ============================ */
.outerdiv { padding: clamp(56px, 9vw, 120px) var(--gutter); background: var(--bg); }
.innerdiv {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.eachdiv {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.div1 { grid-column: span 2; background: var(--accent); color: #fff; border-color: transparent; }
.div2 { grid-column: span 1; }
.div3 { grid-column: span 1; background: var(--ink); color: var(--bg); border-color: transparent; }
.div4 { grid-column: span 2; }
.div5 { grid-column: span 3; }
.userdetails { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.userdetails .imgbox { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.userdetails .imgbox img { width: 100%; height: 100%; object-fit: cover; }
.detbox .name { font-weight: 700; font-size: .98rem; }
.detbox .designation { font-size: .82rem; color: var(--ink-soft); }
.review h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
.review p { font-size: .92rem; color: var(--ink-soft); }

/* inverted cards: force readable text over the solid backgrounds */
.div1 .detbox .name, .div1 .detbox .designation,
.div1 .review h4, .div1 .review p { color: #fff; }
.div3 .detbox .name, .div3 .detbox .designation,
.div3 .review h4, .div3 .review p { color: var(--bg); }
@media (max-width: 900px) {
  .innerdiv { grid-template-columns: 1fr; }
  .div1, .div2, .div3, .div4, .div5 { grid-column: span 1; }
}

/* ============================ CTA BAND ============================ */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 96px);
  text-align: center;
  background: linear-gradient(135deg, #c8102e, #7a0c1c);
  color: #fff;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 90% at 50% 0%, rgba(255, 255, 255, .22), transparent 70%);
}
.cta-band .logo {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
.cta-band .logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); filter: none; }
.cta-band h3 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 14px auto 30px; max-width: 520px; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: #b00c22; --btn-border: transparent; }
.cta-band .btn:hover { --btn-bg: #fff5f6; --btn-fg: #8f0a1b; box-shadow: 0 20px 46px rgba(0, 0, 0, .3); }

/* keep old class hooks working */
.cta-content { padding: 0 var(--gutter) clamp(40px, 7vw, 90px); }
.cta-content .cta { max-width: var(--container); margin-inline: auto; }

/* ============================ FOOTER ============================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 90px) var(--gutter) 40px;
}
.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.site-footer__brand { display: grid; gap: 16px; align-content: start; }
.site-footer__brand img { width: 150px; }
.site-footer__brand p { color: var(--ink-soft); font-size: .92rem; max-width: 280px; }
.site-footer__socials { display: flex; gap: 10px; }
.site-footer__socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft);
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.site-footer__socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-col h5 { font-size: .95rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .9rem; color: var(--ink-soft); transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }

.site-footer__bottom {
  max-width: var(--container);
  margin: 46px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--ink-faint);
}
@media (max-width: 960px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 680px) {
  .site-footer { text-align: center; }
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer__brand { justify-items: center; }
  .site-footer__brand p { max-width: none; margin-inline: auto; }
  .site-footer__socials { justify-content: center; }
  .footer-col li { list-style: none; }
  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
  }
}

/* legacy footer markup fallback (if not replaced) */
.contact { padding: clamp(48px, 7vw, 80px) var(--gutter); background: var(--surface); border-top: 1px solid var(--line); }
.contact .main-contact { max-width: var(--container); margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.contact-content h5 { margin-bottom: 14px; font-size: .95rem; }
.contact-content li { margin-bottom: 9px; }
.contact-content a { font-size: .9rem; color: var(--ink-soft); }
.contact-content a:hover { color: var(--accent); }
.end-text { padding: 22px; text-align: center; background: var(--surface); color: var(--ink-faint); font-size: .85rem; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .contact .main-contact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .contact .main-contact { grid-template-columns: 1fr; } }

/* ============================ CHAT WIDGET (restyle) ============================ */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 999; }
.chat-toggle {
  position: relative;
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), background .25s ease;
}
.chat-toggle:hover { transform: scale(1.06); background: var(--accent-hover); }
.chat-toggle i { font-size: 1.75rem; line-height: 1; transition: transform .3s var(--ease); }
.chat-toggle img { display: none; }
.chat-widget.is-open .chat-toggle i { transform: rotate(90deg) scale(.92); }
.chat-status { position: absolute; right: 6px; top: 6px; width: 11px; height: 11px; border-radius: 999px; background: #22c55e; border: 2px solid var(--accent); }

/* catalogos.php also loads public-import-calculator.css, which restyles the chat
   button white + adds a pulse. Re-assert the brand look with id-level specificity. */
#chinalat-chat .chat-toggle {
  background: var(--accent);
  color: #fff;
  animation: none;
}
#chinalat-chat .chat-toggle:hover { background: var(--accent-hover); }
#chinalat-chat .chat-toggle::before { display: none; }
#chinalat-chat .chat-toggle img { display: none; }
#chinalat-chat .chat-status { right: 6px; top: 6px; bottom: auto; border-color: var(--accent); }
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 44px));
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chat-widget.is-open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; background: var(--accent); color: #fff; }
.chat-brand { display: flex; align-items: center; gap: 10px; }
.chat-brand img { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; }
.chat-brand strong { display: block; font-size: .95rem; }
.chat-brand span { font-size: .78rem; opacity: .85; }
.chat-close { color: #fff; font-size: 1.3rem; display: grid; place-items: center; }
.chat-messages { padding: 16px; display: grid; gap: 10px; max-height: 320px; overflow-y: auto; background: var(--surface); }
.chat-message { padding: 10px 14px; border-radius: 14px; font-size: .9rem; max-width: 85%; }
.chat-message.bot { background: var(--bg-elevated); border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 4px; }
.chat-message.user { background: var(--accent); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.whatsapp-chat-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--accent); font-size: .85rem; }
.chat-message.bot .whatsapp-chat-link { color: var(--accent); }
.chat-quick-actions { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; background: var(--bg-elevated); }
.chat-quick-actions button {
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--ink-soft); transition: all .2s ease;
}
.chat-quick-actions button:hover { color: var(--accent); border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px 16px; background: var(--bg-elevated); border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); outline: none;
}
.chat-form input:focus { border-color: var(--accent); }
.chat-form button { width: 42px; height: 42px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; }

/* ============================ FLOATING STORE ============================ */
#tienda { position: fixed; left: 22px; bottom: 22px; z-index: 998; }
.tienda-btn {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease);
}
.tienda-btn:hover { transform: scale(1.08) rotate(-6deg); }
.tienda-btn img { width: 30px; filter: brightness(0) invert(1); }

/* ============================ BLOG PAGE ============================ */
.blog-hero { min-height: auto; padding-top: 168px; padding-bottom: 56px; background: var(--hero-grad); }
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin-bottom: 40px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
}
.blog-chip {
  padding: 9px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: var(--ink-soft); white-space: nowrap;
  transition: color .25s ease, background .25s ease;
}
.blog-chip:hover { color: var(--ink); background: var(--surface-2); }
.blog-chip.is-active { background: var(--accent); color: var(--accent-contrast); }

@media (max-width: 640px) {
  .blog-toolbar {
    width: 100%;
    border-radius: 16px;
    padding: 12px;
    justify-content: flex-start;
  }
  .blog-chip { padding: 8px 14px; font-size: .84rem; }
}

.blog-grid {
  columns: 3 300px;
  column-gap: 24px;
}
.blog-card {
  break-inside: avoid;
  margin-bottom: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.blog-card__tag { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.blog-card h3 { margin: 12px 0 10px; font-size: 1.2rem; letter-spacing: -.02em; }
.blog-card p { font-size: .94rem; color: var(--ink-soft); }
.blog-card__more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: .9rem; }
.blog-card__more i { transition: transform .3s var(--ease); }
.blog-card:hover .blog-card__more i { transform: translateX(4px); }

/* ============================ CONTACT PAGE ============================ */
.contacto-chinalat {
  padding: 170px var(--gutter) clamp(64px, 10vw, 120px);
  max-width: 900px;
  margin-inline: auto;
}
.contacto-chinalat h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 12px;
}
.contacto-lead { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 40px; max-width: 560px; }
.formulario-contacto {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-l);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.formulario-contacto input:focus,
.formulario-contacto textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.formulario-contacto textarea { resize: vertical; min-height: 140px; }
.formulario-contacto button {
  justify-self: start;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  transition: transform .3s var(--ease), background .25s ease, box-shadow .3s ease;
}
.formulario-contacto button:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 16px 34px var(--accent-soft); }
.formulario-error {
  padding: 14px 18px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.titulo-redes { margin: 54px 0 20px; font-size: 1.3rem; }
.redes-contacto { display: flex; flex-wrap: wrap; gap: 12px; }
.redes-contacto .red {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 600; font-size: .92rem;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.redes-contacto .red i { font-size: 1.15rem; }
.redes-contacto .red:hover { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* about-section reused on nosotros/blog/contacto */
.about-section {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(56px, 9vw, 120px) var(--gutter);
}
.about-section > h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.about-section > .subtitle { color: var(--ink-soft); margin: 14px 0 44px; font-size: 1.05rem; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}
.cardn {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.cardn:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cardn h3 { font-size: 1.12rem; }
.cardn p { font-size: .95rem; color: var(--ink-soft); }
.cardn .highlight { color: var(--accent); font-weight: 600; }
.ctabot { margin-top: 40px; }
.ctabot a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; border-radius: 999px;
  background: var(--accent); color: var(--accent-contrast); font-weight: 600;
  transition: transform .3s var(--ease), background .25s ease;
}
.ctabot a:hover { background: var(--accent-hover); transform: translateY(-2px); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* generic section titles reused (middle-text) */
.middle-text { max-width: 760px; margin: 0 auto clamp(36px, 6vw, 64px); text-align: center; }
.middle-text h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; }
.middle-text h2 span { color: var(--accent); }
.feature .feature-content { display: none; }

/* ============================ CATALOGOS PAGE ============================ */
.catalog-page {
  min-height: 100vh;
  padding: 170px var(--gutter) 80px;
  background: var(--hero-grad);
}
.catalog-wrap { max-width: var(--container); margin-inline: auto; }
.catalog-header { text-align: center; margin-bottom: 34px; display: grid; gap: 14px; justify-items: center; }
.catalog-header h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
.catalog-header p { max-width: 640px; color: var(--ink-soft); }
.catalog-tools { position: relative; max-width: 560px; margin: 0 auto 36px; }
.catalog-tools i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); }
.catalog-tools input {
  width: 100%; height: 54px; padding: 0 20px 0 50px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--bg-elevated); outline: none; box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.catalog-tools input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.catalog-card__media {
  height: 150px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--card-a, #c8102e), var(--card-b, #ef9aa8));
  overflow: hidden;
}
.catalog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card__media i { font-size: 58px; color: #fff; }
.catalog-card__body { padding: 22px; display: grid; gap: 12px; flex: 1; }
.catalog-card h2 { font-size: 1.15rem; }
.catalog-card__body > p { font-size: .9rem; color: var(--ink-soft); }
.catalog-files { display: grid; gap: 8px; margin-top: auto; }
.catalog-file {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-s);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: .9rem; color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.catalog-file:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.catalog-file.is-extra { display: none; }
.catalog-card.is-expanded .catalog-file.is-extra { display: flex; }
.catalog-more {
  border: 0; border-radius: var(--radius-s); min-height: 42px; padding: 0 14px;
  background: var(--accent); color: var(--accent-contrast); font-weight: 700; font-size: .88rem;
}
.catalog-more:hover { background: var(--accent-hover); }
.empty { padding: 12px; border-radius: var(--radius-s); background: var(--surface); color: var(--ink-soft); font-weight: 600; font-size: .88rem; }

/* ============================ MOTION UTILS ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}
/* Escape hatch: ?noanim disables entrance gating entirely */
html.noanim [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }

/* page fade-in */
/* opacity-only: a transform keyframe here would make <body> a containing block
   and break position:fixed on the floating buttons */
.page-fade { animation: pageFade .6s var(--ease) both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* ============================ SCROLL-TO-TOP ============================ */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 998;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.scroll-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); transform: translateY(-2px); }
/* keep the top button clear of the open chat panel */
#chinalat-chat.is-open ~ .scroll-top { opacity: 0; pointer-events: none; transform: translateY(12px) scale(.9); }

/* ============================ SAFE AREAS (notch / Dynamic Island / barras del sistema) ============================
   Requiere <meta name="viewport" content="..., viewport-fit=cover">. Sin notch o fuera de la app,
   env() vale 0 y nada cambia. max() evita sumar el inset al espaciado que ya existe (sin padding doble). */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
html { scroll-padding-top: calc(100px + var(--safe-top)); }

/* Navbar fija: su fondo cubre la zona de la barra de estado y el contenido baja lo justo */
.nav { padding-top: var(--safe-top); }
.nav__inner {
  padding-left: max(var(--gutter), var(--safe-left));
  padding-right: max(var(--gutter), var(--safe-right));
}
@media (max-width: 940px) {
  .nav__links {
    top: calc(84px + var(--safe-top));
    left: max(var(--gutter), var(--safe-left));
    right: max(var(--gutter), var(--safe-right));
    max-height: calc(100vh - 100px - var(--safe-top) - var(--safe-bottom));
    overflow-y: auto;
  }
}

/* Primera sección de cada página: compensa la altura extra del navbar */
.hero { padding-top: calc(148px + var(--safe-top)); }
.blog-hero { padding-top: calc(168px + var(--safe-top)); }
@media (max-width: 940px) { .hero:not(.blog-hero) { padding-top: calc(124px + var(--safe-top)); } }
.contacto-chinalat,
.catalog-page { padding-top: calc(170px + var(--safe-top)); }

/* Laterales (landscape con notch) */
.container {
  padding-left: max(var(--gutter), var(--safe-left));
  padding-right: max(var(--gutter), var(--safe-right));
}
.site-footer {
  padding-left: max(var(--gutter), var(--safe-left));
  padding-right: max(var(--gutter), var(--safe-right));
  padding-bottom: calc(40px + var(--safe-bottom));
}

/* Botones flotantes: por encima del indicador de inicio / barra de gestos */
.chat-widget {
  right: calc(22px + var(--safe-right));
  bottom: calc(22px + var(--safe-bottom));
}
#tienda {
  left: calc(22px + var(--safe-left));
  bottom: calc(22px + var(--safe-bottom));
}
.scroll-top {
  right: calc(22px + var(--safe-right));
  bottom: calc(96px + var(--safe-bottom));
}
.public-limit-modal {
  padding: max(20px, var(--safe-top)) max(20px, var(--safe-right)) max(20px, var(--safe-bottom)) max(20px, var(--safe-left));
}

/* ================= Páginas legales, soporte y app (oct 2026) ================= */
.page-head {
  position: relative;
  padding-top: calc(150px + var(--safe-top));
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--hero-grad);
  overflow: hidden;
}
@media (max-width: 940px) { .page-head { padding-top: calc(118px + var(--safe-top)); } }
.page-head__inner { display: grid; gap: 18px; max-width: 820px; }
.page-head__title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.page-head__meta { font-size: .9rem; color: var(--ink-faint); }

.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 940px) { .legal { grid-template-columns: 1fr; } }
.legal__toc {
  position: sticky;
  top: calc(104px + var(--safe-top));
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .9rem;
}
.legal__toc strong { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.legal__toc a { padding: 6px 10px; border-radius: 10px; color: var(--ink-soft); }
.legal__toc a:hover { background: var(--bg-elevated); color: var(--accent); }
@media (max-width: 940px) { .legal__toc { position: static; } }

.prose { display: grid; gap: 16px; max-width: 760px; color: var(--ink); font-size: 1rem; line-height: 1.72; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 28px; scroll-margin-top: calc(110px + var(--safe-top)); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { display: grid; gap: 8px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose .note { padding: 16px 18px; border-radius: var(--radius-s); background: var(--accent-soft); color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.prose th { background: var(--surface); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.legal-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.legal-links a.cardn { color: var(--ink); }
.legal-links a.cardn i { font-size: 1.5rem; color: var(--accent); }

.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.support-grid .cardn i { font-size: 1.6rem; color: var(--accent); }
.support-grid .cardn a { color: var(--accent); font-weight: 600; }

.app-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .app-hero { grid-template-columns: 1fr; } }
.app-hero__visual { justify-self: center; width: min(320px, 80vw); }
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg-elevated); font-weight: 600; font-size: .92rem; }
.app-badge i { font-size: 1.4rem; }
.app-badge small { display: block; font-weight: 500; font-size: .72rem; color: var(--ink-faint); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature-grid .cardn i { font-size: 1.6rem; color: var(--accent); }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__legal a { color: var(--ink-soft); font-size: .88rem; }
.site-footer__legal a:hover { color: var(--accent); }

/* ================= Web comercial / SEO (oct 2026) ================= */
/* Navegación: botón «Cotizar» y ajuste de los enlaces en pantallas medianas */
.nav__cta { display: inline-flex; }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--surface); }
@media (min-width: 941px) and (max-width: 1220px) {
  .nav__links a { padding: 9px 10px; font-size: .9rem; }
  .nav__theme-label { display: none; }
  .nav__theme { padding: 0; width: 42px; justify-content: center; }
}
@media (max-width: 560px) { .nav__cta { display: none; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-faint); }

.page-head .hero__actions { margin-top: 6px; }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .page-head__grid { grid-template-columns: 1fr; } }
.page-head__aside { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-l); background: var(--bg-elevated); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.page-head__aside h2 { font-size: 1.05rem; }

.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.check-list li::before { content: "\eb7b"; font-family: remixicon; position: absolute; left: 0; top: -1px; font-size: 1.2rem; color: var(--accent); }
.check-list strong { color: var(--ink); }

/* Flujo Proveedor -> Compra -> Control -> Consolidación -> Logística -> Destino */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .flow { grid-template-columns: 1fr; } }
.flow__step { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 20px; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--line); counter-increment: flow; }
.flow__step::before { content: counter(flow, decimal-leading-zero); font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.flow__step i { font-size: 1.6rem; color: var(--ink); }
.flow__step h3 { font-size: 1.02rem; }
.flow__step p { font-size: .9rem; color: var(--ink-soft); }
.flow__step:not(:last-child)::after { content: "\ea6c"; font-family: remixicon; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); z-index: 1; width: 18px; text-align: center; color: var(--ink-faint); font-size: 1.1rem; }
@media (max-width: 1100px) { .flow__step::after { display: none; } }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tile-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tile-grid .cardn > i { font-size: 1.7rem; color: var(--accent); }
a.cardn { color: var(--ink); }
a.cardn .link-arrow { margin-top: 4px; }

/* Bloques Uruguay / Argentina */
.country-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 800px) { .country-split { grid-template-columns: 1fr; } }
.country-block { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l); background: var(--bg-elevated); border: 1px solid var(--line); color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.country-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.country-block img { width: 96px; height: auto; }
.country-block h3 { font-size: 1.3rem; margin-bottom: 8px; }
.country-block p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 12px; }
@media (max-width: 480px) { .country-block { grid-template-columns: 1fr; } .country-block img { width: 72px; } }

/* Banda de confianza (sin cifras inventadas) */
.trust-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 800px) { .trust-band { grid-template-columns: 1fr; } }
.trust-band div { display: grid; gap: 4px; }
.trust-band b { font-family: var(--font-display); font-size: clamp(1.2rem, 2.3vw, 1.55rem); letter-spacing: -.02em; }
.trust-band span { color: var(--ink-soft); font-size: .92rem; }

/* Fundadora */
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }
.founder__photo { justify-self: center; width: min(380px, 85vw); }
.founder__copy { display: grid; gap: 16px; justify-items: start; }

/* Bloque del curso (secundario) */
.course-block { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-l); border: 1px dashed var(--line-strong); background: var(--bg-elevated); }
@media (max-width: 800px) { .course-block { grid-template-columns: 1fr; } }
.course-block__copy { display: grid; gap: 12px; }
.course-block__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Video testimonial real */
.case-video { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .case-video { grid-template-columns: 1fr; } }
.case-video video { width: 100%; max-width: 420px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-l); background: #000; justify-self: center; box-shadow: var(--shadow-md); }
.case-video__copy { display: grid; gap: 16px; justify-items: start; }

/* CTA final */
.cta-band { position: relative; overflow: hidden; display: grid; gap: 18px; justify-items: center; text-align: center; padding: clamp(40px, 6vw, 72px) clamp(22px, 4vw, 48px); border-radius: var(--radius-xl); background: #15151a; color: #ffffff; }
.cta-band h2 { color: #ffffff; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 760px; }
.cta-band p { color: rgba(255, 255, 255, .78); max-width: 620px; }
.cta-band .hero__actions { justify-content: center; }
.cta-band .btn--ghost { --btn-fg: #ffffff; --btn-border: rgba(255, 255, 255, .4); }
.cta-band .btn--ghost:hover { --btn-bg: #ffffff; --btn-fg: #15151a; }
[data-theme="dark"] .cta-band { background: #1c1c22; border: 1px solid var(--line); }

/* Recuadro de CTA dentro de guías */
.inline-cta { display: grid; gap: 10px; justify-items: start; padding: 20px 22px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line); }
.inline-cta strong { color: var(--ink); font-size: 1.02rem; }
.prose .inline-cta a.btn { text-decoration: none; color: var(--btn-fg); }
.prose ol.steps { display: grid; gap: 10px; counter-reset: st; padding-left: 0; list-style: none; }
.prose ol.steps > li { position: relative; padding-left: 42px; color: var(--ink-soft); counter-increment: st; }
.prose ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: var(--accent); color: var(--accent-contrast); }
.prose h4 { font-size: 1rem; margin-top: 6px; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg-elevated); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.related a:hover { border-color: var(--accent); color: var(--accent); }

.rubros-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .rubros-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rubro { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--line); text-align: center; }
.rubro img { width: 100%; max-width: 180px; aspect-ratio: 600 / 656; object-fit: contain; justify-self: center; }
.rubro h3 { font-size: 1rem; }
.rubro p { font-size: .88rem; color: var(--ink-soft); }
.footer-col__title { font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; color: var(--ink); font-size: .95rem; margin-bottom: 16px; }
.support-grid .cardn h2 { font-size: 1.12rem; }
.about-grid--2 { margin-top: clamp(16px, 2.4vw, 24px); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .about-grid--2 { grid-template-columns: 1fr; } }
.hero__title--long { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.1; }
.nav__links a { white-space: nowrap; }
@media (min-width: 941px) and (max-width: 1040px) {
  .nav__links a { padding: 9px 7px; font-size: .86rem; }
}

/* ================= Pulido visual UI (oct 2026) ================= */

/* --- Logo: el <a> era un ítem flex que se encogía (29 px a 1280) --- */
.nav__logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.nav__logo img { width: 156px; height: auto; }
@media (min-width: 941px) and (max-width: 1220px) { .nav__logo img { width: 138px; } }
@media (max-width: 940px) { .nav__logo img { width: 148px; } }
@media (max-width: 380px) { .nav__logo img { width: 132px; } }

/* --- Estadísticas del hero: tres bloques en fila, compactos --- */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 620px;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero__stat { gap: 6px; align-content: start; padding: 2px clamp(12px, 1.8vw, 22px); border-left: 1px solid var(--line); }
.hero__stat:first-child { padding-left: 0; border-left: 0; }
.hero__stat b { font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.15; letter-spacing: -.02em; }
.hero__stat span { font-size: .8rem; line-height: 1.4; }
@media (max-width: 560px) {
  .hero__stats { grid-template-columns: 1fr; gap: 14px; padding-top: 18px; }
  .hero__stat { padding: 0; border-left: 0; gap: 2px; }
}

/* --- Tarjetas del proceso (index) y "Cómo trabajamos" (nosotros) --- */
.flow { list-style: none; padding: 0; }
.flow__step::marker { content: none; }
.flow__step {
  gap: 12px;
  padding: 22px 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.flow__step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.flow__step::before {
  position: absolute;
  top: 20px;
  right: 18px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-faint);
  transition: color .3s ease;
}
.flow__step:hover::before { color: var(--accent); }
.flow__step i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.35rem;
  transition: background .3s ease, color .3s ease, transform .4s var(--ease);
}
.flow__step:hover i { background: var(--accent); color: #ffffff; }
.flow__step h3 { font-size: 1.05rem; margin-top: 4px; }
.flow__step p { font-size: .88rem; line-height: 1.5; }
@media (hover: none) { .flow__step:hover { transform: none; } }

/* mismo tratamiento de iconos en las tarjetas de grilla */
.tile-grid .cardn > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.4rem;
  transition: background .3s ease, color .3s ease;
}
.tile-grid .cardn:hover > i { background: var(--accent); color: #ffffff; }
.rubro { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease; }
.rubro:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.related a { transition: transform .3s var(--ease), border-color .3s ease, color .3s ease, box-shadow .3s ease; }
.related a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* --- Bandera de China completa dentro del círculo --- */
.split__media--flag {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  padding: 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--bg-elevated), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.split__media--flag img { width: 100%; height: 100%; object-fit: contain; transform: none; }

/* --- CTA sobre fondo oscuro: el secundario heredaba fondo blanco --- */
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: #ffffff; --btn-border: rgba(255, 255, 255, .55); }
.cta-band .btn--ghost:hover { --btn-bg: #ffffff; --btn-fg: #15151a; --btn-border: #ffffff; }

/* --- Preguntas frecuentes al final de artículos (UY, AR, guías) --- */
.prose h2#preguntas {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.legal + .container { margin-top: clamp(20px, 2.6vw, 28px); }
@media (min-width: 941px) {
  /* el acordeón se alinea con la columna del artículo, no con el índice */
  .legal + .container > .faq-list { margin-left: calc(250px + clamp(28px, 5vw, 64px)); }
}

/* --- Casos reales: carrusel de videos --- */
.cases { --case-h: clamp(380px, 46vw, 500px); overflow: hidden; }
.cases__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(26px, 4vw, 40px); }
.cases__head .section-head { margin-bottom: 0; }
.cases__controls { display: flex; gap: 10px; }
.cases__btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, opacity .3s ease, transform .3s var(--ease);
}
.cases__btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-1px); }
.cases__btn:disabled { opacity: .35; cursor: default; }
.cases--static .cases__controls, .cases--static .cases__progress { visibility: hidden; }
@media (max-width: 700px) { .cases__controls { display: none; } }

.cases__viewport {
  --cases-pad: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--cases-pad);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: 6px 18px;
  outline: none;
  cursor: grab;
}
.cases__viewport::-webkit-scrollbar { display: none; }
.cases__viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.cases__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cases__viewport.is-dragging .case-card { pointer-events: none; }
.cases__track {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 22px);
  width: max-content;
  margin: 0;
  padding: 0 var(--cases-pad);
  list-style: none;
}
.case-card { flex: none; display: grid; gap: 12px; align-content: start; width: calc(var(--case-h) * 9 / 16); scroll-snap-align: start; }
.case-card--h { width: min(calc(var(--case-h) * 16 / 9), 84vw, 720px); }
.case-card__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: #0b0b0e;
  box-shadow: var(--shadow-md);
}
.case-card--h .case-card__media { aspect-ratio: 16 / 9; }
.case-card__media video,
.case-card__media iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #0b0b0e; }
.case-card__play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.case-card__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s ease; }
.case-card__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35)); }
.case-card__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--accent);
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), background .3s ease, color .3s ease;
}
.case-card__play:hover img { transform: scale(1.04); filter: brightness(.92); }
.case-card__play:hover .case-card__icon,
.case-card__play:focus-visible .case-card__icon { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: #ffffff; }
.case-card__play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.case-card__meta { display: grid; gap: 2px; padding-inline: 4px; }
.case-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.case-card__title { font-size: 1rem; line-height: 1.3; }
.cases__foot { margin-top: 8px; }
.cases__progress { position: relative; height: 3px; max-width: 220px; margin-inline: auto; border-radius: 3px; background: var(--line); overflow: hidden; }
.cases__progress span { position: absolute; left: 0; top: 0; height: 100%; width: 30%; border-radius: 3px; background: var(--accent); transition: transform .15s linear; }
.cases__cta { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 32px); }
@media (max-width: 600px) { .cases { --case-h: 400px; } }

/* el indicador "Scroll" del hero chocaba con las estadísticas en fila */
.hero:has(.hero__stats) .scroll-cue { display: none; }
.hero__stat { padding-inline: clamp(10px, 1.4vw, 18px); }
.hero__stat b { font-size: clamp(1rem, 1.3vw, 1.18rem); }

/* --- Navbar: que entren logo + 7 enlaces + acciones sin encoger el logo --- */
.nav__inner { gap: 18px; }
@media (min-width: 1221px) { .nav__links a { padding-inline: 10px; } }
.nav__theme-label { display: none; }
.nav__theme { padding: 0; width: 42px; justify-content: center; }
.nav__logo img { width: 150px; }
@media (min-width: 1101px) and (max-width: 1220px) {
  .nav__logo img { width: 136px; }
  .nav__links a { padding: 9px 8px; font-size: .88rem; }
}
/* 941–1100 px: no hay ancho para todo en una fila → mismo menú desplegable que en móvil */
@media (min-width: 941px) and (max-width: 1100px) {
  .nav__links {
    position: fixed;
    inset: 84px var(--gutter) auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .nav__links a { padding: 13px 16px; font-size: 1rem; }
  .nav__burger { display: block; }
  .nav__logo img { width: 150px; }
}
@media (max-width: 560px) { .hero__stat { padding: 0; } }
.cta-band .eyebrow { color: #ff8a9c; }
.cta-band .eyebrow::before { background: #ff8a9c; }
