@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Tight:wght@400&display=swap');

:root {
  /* Marca (style-reference) */
  --c-ink: #151581;            /* titulares y texto principal; nunca negro puro */
  --c-ink-hover: #10106a;
  --c-lavender: #a1a1cd;       /* SOLO decorativo (fill/stroke/border/background). Prohibido como color de texto */
  --c-lilac: #9f73e6;          /* decorativo */
  --c-petal: #de62de;          /* decorativo */
  --c-green: #00bb76;          /* estrellas e íconos de confianza (siempre con texto al lado) */
  --c-amber: #f59e0b;          /* "Cierra pronto" (siempre con texto al lado) */
  --c-amber-text: #8a5300;
  --c-rose: #f25c75;           /* bordes y fondos de error */
  --c-info: #20a2e3;           /* borde semántico de contraindicaciones */
  --c-porcelain: #f6f6fa;
  --c-paper: #ffffff;
  --c-bone: #f6f5f4;
  --c-fog: #d6d6d6;
  --c-pebble: #bfbfbd;
  --c-graphite: #292824;
  --c-ash: #949392;            /* decorativo/íconos; para texto usar --c-ash-text */

  /* Correcciones de contraste de UX (AA) */
  --c-muted: #5f5f9c;          /* texto secundario sobre porcelana ≈5.2:1 */
  --c-ash-text: #6e6d6b;       /* metadatos sobre blanco */
  --c-green-text: #007a4d;     /* "Verificado", "Vinculado" */
  --c-rose-text: #b4233c;      /* texto de error ≈6:1 */
  --c-info-bg: #e8f6fd;        /* chip "Pendiente de confirmación" (texto --c-ink) */
  --c-rose-bg: #fdecef;

  /* Semánticos (los que usan los componentes) */
  --bg: var(--c-porcelain);
  --surface: var(--c-paper);
  --surface-warm: var(--c-bone);
  --text: var(--c-ink);
  --text-2: var(--c-muted);
  --text-meta: var(--c-ash-text);
  --line: var(--c-fog);
  --btn-bg: var(--c-ink);
  --btn-fg: #ffffff;
  --btn-bg-hover: var(--c-ink-hover);
  --focus: var(--c-ink);
  --ok-text: var(--c-green-text);
  --err-text: var(--c-rose-text);
  --err-bg: var(--c-rose-bg);
  --info-bg: var(--c-info-bg);
  --gradient-brand: linear-gradient(270deg, rgba(102,127,255,.8) 19.6%, rgba(206,162,255,.8) 50%, rgba(255,133,177,.8) 86%);
  /* único uso: borde de la barra "Pregúntale a Meraki" (y overlay "scan" del hero si se usa) */

  /* Paleta de color de artista (texto blanco encima ≥4.5:1; QA lo verifica) */
  --artist-1: #3b3f8c; --artist-2: #5b3aa6; --artist-3: #8a2f7a; --artist-4: #a32b4d;
  --artist-5: #8f4512; --artist-6: #2f6b3a; --artist-7: #1f5f8b; --artist-8: #4a4a4a;

  /* Tipografía */
  --font-display: 'Inter Tight', 'Manrope', system-ui, sans-serif;   /* SIEMPRE peso 400 */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: 48px;  --lh-display: .91;  --ls-display: -2.02px;
  --fs-h-lg: 44px;     --lh-h-lg: .92;     --ls-h-lg: -1.58px;
  --fs-h: 32px;        --lh-h: 1.05;       --ls-h: -.99px;
  --fs-h-sm: 28px;     --lh-h-sm: 1.14;    --ls-h-sm: -.64px;
  --fs-sub: 24px;      --lh-sub: 1.25;
  --fs-body-lg: 18px;  --fs-body: 16px;    --lh-body: 1.38;  --ls-body: -.44px;
  --fs-body-sm: 14px;  --lh-body-sm: 1.29;
  --fs-caption: 12px;  --lh-caption: 1.2;

  /* Espaciado (base 4) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-14: 56px; --s-16: 64px; --s-26: 104px; --s-28: 112px; --s-30: 120px;

  /* Formas */
  --r-tag: 12px; --r-img: 16px; --r-card: 24px; --r-btn: 48px; --r-pill: 9999px; --r-section: 40px; --r-phone: 38px;
  --shadow: rgba(36,36,41,.07) 0 8px 34px 0, rgba(37,36,41,.09) 0 1px 2px 0;   /* la ÚNICA sombra */

  /* Layout */
  --max-w: 1200px; --gutter: 16px; --section-gap: 80px; --card-pad: 24px;
  --tap: 44px;     /* objetivo táctil mínimo */
  --focus-ring: 0 0 0 2px #fff, 0 0 0 4px var(--focus);
  color-scheme: light;
}

/* Tema oscuro: SOLO panel (html.panel). El sitio público es solo claro. */
:root.panel[data-theme="dark"] { color-scheme: dark;
  --bg: #0f0f1f; --surface: #17172b; --surface-warm: #1d1d33;
  --text: #ececfb; --text-2: #b9b9e0; --text-meta: #a9a8a6; --line: #2c2c48;
  --btn-bg: #c9c9ff; --btn-fg: #151581; --btn-bg-hover: #b3b3f5; --focus: #c9c9ff;
  --ok-text: #4fd6a0; --err-text: #ff8fa3; --err-bg: #3a1520; --info-bg: #142a3a;
  --shadow: rgba(0,0,0,.4) 0 8px 34px 0, rgba(0,0,0,.5) 0 1px 2px 0;
}
@media (prefers-color-scheme: dark) {
  :root.panel:not([data-theme="light"]) { color-scheme: dark;
    --bg: #0f0f1f; --surface: #17172b; --surface-warm: #1d1d33;
    --text: #ececfb; --text-2: #b9b9e0; --text-meta: #a9a8a6; --line: #2c2c48;
    --btn-bg: #c9c9ff; --btn-fg: #151581; --btn-bg-hover: #b3b3f5; --focus: #c9c9ff;
    --ok-text: #4fd6a0; --err-text: #ff8fa3; --err-bg: #3a1520; --info-bg: #142a3a;
    --shadow: rgba(0,0,0,.4) 0 8px 34px 0, rgba(0,0,0,.5) 0 1px 2px 0;
  }
}

html { background: var(--bg); color: var(--text); font-family: var(--font-body);
       font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
