/* SanQ · estilos comunes (Guía de marca v1.1) */

@font-face { font-family: 'MiSans Latin'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/MiSansLatin-Regular.woff2') format('woff2'); }
@font-face { font-family: 'MiSans Latin'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/MiSansLatin-Medium.woff2') format('woff2'); }
@font-face { font-family: 'MiSans Latin'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/MiSansLatin-Demibold.woff2') format('woff2'); }
@font-face { font-family: 'MiSans Latin'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/MiSansLatin-Bold.woff2') format('woff2'); }
@font-face { font-family: 'MiSans Latin'; font-weight: 900; font-style: normal; font-display: swap; src: url('../fonts/MiSansLatin-Heavy.woff2') format('woff2'); }

:root {
  /* Identidad */
  --tinta: #121212; --papel: #FFFFFF; --mandarina: #FF8A1E; --mandarina-texto: #B35300;
  --piel: #FFE1C7; --piel-texto: #8F4200;
  /* Neutros */
  --grafito: #3D3D3D; --piedra: #6B6B6B; --niebla: #BDBDBD; --linea: #E4E4E4; --humo: #F3F3F3;
  /* Niveles HSK */
  --bambu: #CDEBB4; --jade: #B6E4D6; --cielo: #C3DCFA; --glicina: #D9D0FB; --loto: #FCD3DE; --limon: #FCEB9C;

  /* Roles (modo claro) */
  --bg: #FFFFFF; --bg-2: #F3F3F3; --surface: #FFFFFF;
  --text-1: #121212; --text-2: #3D3D3D; --text-3: #6B6B6B;
  --border: #E4E4E4; --frame: #121212;
  --btn: #121212; --btn-text: #FFFFFF;
  --grid-line: #F6C79C;
  --yy-border: #121212;

  --f-lat: 'MiSans Latin', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --r-s: 8px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E0E0E; --bg-2: #1A1A1A; --surface: #1A1A1A;
  --text-1: #F2F2F2; --text-2: #B5B5B5; --text-3: #8C8C8C;
  --border: #2E2E2E; --frame: #333333;
  --btn: #F2F2F2; --btn-text: #121212;
  --grid-line: #5A3A1C;
  --yy-border: #F2F2F2;
  color-scheme: dark;
}

/* Bloques de color: el texto sobre cualquier pastel es siempre Tinta, en los dos modos */
.pastel {
  --text-1: #121212; --text-2: #3D3D3D; --text-3: #3D3D3D;
  --border: rgba(18,18,18,.16); --surface: #FFFFFF; --bg-2: rgba(255,255,255,.55);
  --btn: #121212; --btn-text: #FFFFFF; --frame: #121212; --grid-line: #F6C79C; --yy-border: #121212;
  color: var(--text-1);
}
.b-piel { background: var(--piel); }
.b-glicina { background: var(--glicina); }
.b-cielo { background: var(--cielo); }
.b-bambu { background: var(--bambu); }
.b-limon { background: var(--limon); }
.b-loto { background: var(--loto); }
.b-jade { background: var(--jade); }
.b-tinta {
  background: #121212; color: #F2F2F2;
  --text-1: #F2F2F2; --text-2: #B5B5B5; --text-3: #8C8C8C; --border: #2E2E2E; --surface: #1A1A1A;
  --btn: #F2F2F2; --btn-text: #121212; --frame: #333333; --yy-border: #F2F2F2;
}
:root[data-theme="dark"] .b-tinta { box-shadow: inset 0 1px 0 #2E2E2E, inset 0 -1px 0 #2E2E2E; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text-1);
  font-family: var(--f-lat); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .25s ease-out, color .25s ease-out;
}
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--piel); color: #121212; }
:focus-visible { outline: 3px solid var(--mandarina); outline-offset: 3px; }
.zh { font-family: var(--f-zh); }
.py { font-family: 'Noto Sans SC', 'MiSans Latin', sans-serif; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.overline { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } body { transition: none; } }

/* ─ Símbolos ─ */
.coin { display: block; }
.ic { width: 20px; height: 20px; flex: none; }

/* ─ Botones ─ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-m); border: 0;
  font: 600 15px/1.1 var(--f-lat); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease-out, background-color .2s ease-out;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-secondary { background: transparent; color: var(--text-1); box-shadow: inset 0 0 0 1.5px var(--text-1); }
.btn-piel { background: var(--piel); color: #121212; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.btn-play .gp { width: 20px; height: 20px; }
.btn-play .gp-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-play .gp-top { font-size: 10px; font-weight: 500; opacity: .75; }
.btn-play .gp-bot { font-size: 15px; font-weight: 700; }

/* ─ Chips ─ */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 99px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip-piel { background: var(--piel); color: #121212; }
.chip-limon { background: var(--limon); color: #121212; }
.chip-tinta { background: #121212; color: #FFFFFF; }
.chip-humo { background: var(--bg-2); color: var(--text-2); }
.chip .ic { width: 16px; height: 16px; }

/* ─ Navegación ─ */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); transition: background-color .25s ease-out; }
.nav-in { height: 60px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 19px; letter-spacing: -.02em; color: var(--text-1); flex: none; }
.brand .coin { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 2px; margin-left: 12px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 99px; }
.nav-links a:hover { background: var(--bg-2); color: var(--text-1); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--text-1); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ic { width: 24px; height: 24px; }
.mobile-menu { border-top: 1px solid var(--border); background: var(--bg); padding: 8px var(--gutter) 16px; display: grid; }
.mobile-menu a { padding: 12px 4px; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 480px) {
  .nav .btn-play .gp-label { display: none; }
  .nav .btn-play { padding: 0 14px; }
}

/* ─ Interruptor yin-yang ─ */
.yy { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; flex: none; }
.yy svg { width: 24px; height: 24px; display: block; transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
:root[data-theme="dark"] .yy svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .yy svg { transition: none; } }

/* ─ Teléfono con captura real ─ */
.phone { width: var(--pw, 300px); max-width: 100%; aspect-ratio: 1200 / 2670; border: 7px solid var(--frame); border-radius: 34px; overflow: hidden; background: #FFFFFF; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ─ Pie ─ */
.ft { border-top: 1px solid var(--border); padding-block: 44px 28px; font-size: 14px; }
.ft-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.ft-brand { max-width: 340px; display: grid; gap: 14px; }
.ft-brand p { color: var(--text-2); }
.ft-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.ft-col { display: grid; gap: 10px; align-content: start; }
.ft-col a { color: var(--text-2); text-decoration: none; }
.ft-col a:hover { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--mandarina); text-underline-offset: 4px; }
.ft-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: 12px; color: var(--text-3); }
