/* AMULETO — design tokens
   Fuente de verdad de marca: manual de marca v1.0 (22/10/2026), valores en BRAND.md.
   Estructura y efectos de interacción: referencia cheweb.com.ar. */

:root {
  color-scheme: light;

  /* ---------- Marca ---------- */
  --am-ciruela: #5a2a4f;
  --am-ciruela-hover: #47203e;
  --am-durazno: #f4a56b;
  --am-durazno-suave: #fbe1cd;
  --am-claro: #f8efe8;
  --am-oscuro: #24111f;
  --am-blanco: #ffffff;

  /* ---------- Roles (tema claro por defecto; los bloques .theme-* los redefinen) ---------- */
  --color-background: var(--am-claro);
  --color-text: var(--am-oscuro);        /* texto principal */
  --color-heading: var(--am-ciruela);    /* títulos */
  --color-primary: var(--am-ciruela);    /* botón principal, aros de foco de tarjetas */
  --color-primary-hover: var(--am-ciruela-hover);
  --color-primary-text: var(--am-ciruela);
  --color-on-primary: var(--am-claro);
  --color-accent: var(--am-durazno);     /* CTA de contacto (WhatsApp) */
  --color-on-accent: var(--am-oscuro);
  --color-whatsapp: var(--am-durazno);   /* el botón flotante usa el durazno del manual */
  --color-on-whatsapp: var(--am-oscuro);
  --color-focus: var(--am-durazno);

  --text-strong: rgb(36 17 31 / 0.85);
  --text-muted: #6e5a68;
  --text-soft: #6e5a68;

  --border-subtle: rgb(36 17 31 / 0.14);
  --border-strong: rgb(36 17 31 / 0.3);
  --border-nav: rgb(90 42 79 / 0.45);
  --surface-card: var(--am-blanco);
  --surface-raised: var(--am-blanco);
  --surface-block: transparent;           /* fondo de cada bloque de sección */
  --glow-primary: rgb(90 42 79 / 0.1);
  --ring-primary: rgb(90 42 79 / 0.4);

  /* ---------- Tipografía ---------- */
  --font-heading: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --weight-light: 400;     /* texto corrido */
  --weight-regular: 500;   /* menú, etiquetas */
  --weight-bold: 600;      /* botones */
  --weight-heavy: 500;     /* títulos (Bricolage 500; 700 solo para destacar una palabra) */
  --weight-strong: 700;

  --fs-hero: clamp(2.75rem, 6vw + 1rem, 5rem);     /* Display del manual */
  --fs-h2: clamp(2.25rem, 4vw + 1rem, 3.5rem);     /* H1 del manual: títulos de sección */
  --fs-chapter: clamp(2.75rem, 7.5vw, 7.5rem);
  --fs-statement: clamp(1.875rem, 4.6vw, 4.5rem);
  --fs-cta: clamp(2.75rem, 8vw, 7rem);
  --fs-h3-card: clamp(1.5rem, 2vw, 2rem);
  --fs-h3-row: clamp(1.75rem, 3.4vw, 3rem);
  --fs-lead: 1.25rem;
  --fs-body: 1.125rem;
  --fs-card-text: 1.0625rem;
  --fs-nav: 0.9375rem;
  --fs-footer: 0.9375rem;
  --fs-legal: 0.8125rem;
  --fs-kicker: 0.8125rem;
  --fs-button: 0.75rem;

  --lh-hero: 1.05;
  --lh-tight: 1.1;
  --lh-statement: 1.15;
  --lh-body: 1.6;

  --ls-hero: -0.03em;
  --ls-h2: -0.02em;
  --ls-cta: -0.03em;
  --ls-mono: 0.12em;
  --ls-kicker: 0.12em;

  /* ---------- Layout ---------- */
  --gutter: max(20px, 4vw);
  --container-width: 1100px;   /* filas de servicios y trabajos */
  --container-narrow: 1000px;  /* bloque de 2 tarjetas */
  --container-full: 100%;      /* secciones: ancho completo menos gutters */
  --measure-statement: 22ch;
  --measure-text: 52ch;

  --sp-m: clamp(56px, 7vw, 96px);
  --sp-l: clamp(72px, 8vw, 112px);   /* padding vertical de sección (manual: 6–8 rem entre secciones) */
  --sp-xl: clamp(96px, 12vw, 160px);  /* manifiesto */

  --radius-card: 16px;
  --radius-pill: 100px;

  --shadow-card-hover: 0 8px 24px rgb(36 17 31 / 0.08), 0 0 0 1px var(--ring-primary);
  --shadow-preview: 0 1px 2px rgb(36 17 31 / 0.08), 0 16px 40px rgb(36 17 31 / 0.18);

  /* ---------- Movimiento ---------- */
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-wipe: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.3s;
  --dur-base: 0.4s;
  --dur-slow: 0.6s;

  /* ---------- Capas ---------- */
  --z-menu: 90;
  --z-nav: 100;
  --z-float: 200;

  /* ---------- Breakpoints (referencia, no se pueden usar en @media) ---------- */
  --bp-mobile: 820px;  /* corte principal de CHEWEB */
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0.01s; --dur-base: 0.01s; --dur-slow: 0.01s; }
}

/* ---------- Bloques de color (tokens redefinidos por contexto) ---------- */
.theme-plum {
  --surface-block: var(--am-ciruela);
  --color-background: var(--am-ciruela);
  --color-text: var(--am-claro);
  --color-heading: var(--am-claro);
  --color-primary: var(--am-durazno);
  --color-primary-hover: #f7b887;
  --color-primary-text: var(--am-durazno);
  --color-on-primary: var(--am-oscuro);
  --color-accent: var(--am-durazno);
  --text-strong: rgb(248 239 232 / 0.9);
  --text-muted: rgb(248 239 232 / 0.78);
  --text-soft: rgb(248 239 232 / 0.78);
  --border-subtle: rgb(248 239 232 / 0.2);
  --border-strong: rgb(248 239 232 / 0.4);
  --border-nav: rgb(248 239 232 / 0.5);
  --ring-primary: rgb(244 165 107 / 0.7);
  --glow-primary: rgb(244 165 107 / 0.1);
  --surface-card: #6a3a5e;
  --surface-raised: #6a3a5e;
  --color-focus: var(--am-durazno);
}
.theme-peach {
  --surface-block: var(--am-durazno-suave);
  --color-background: var(--am-durazno-suave);
  --text-muted: #6e5a68;
  --border-subtle: rgb(36 17 31 / 0.16);
  --border-strong: rgb(36 17 31 / 0.32);
}
.theme-dark {
  --surface-block: var(--am-oscuro);
  --color-background: var(--am-oscuro);
  --color-text: var(--am-claro);
  --color-heading: var(--am-claro);
  --text-strong: rgb(248 239 232 / 0.9);
  --text-muted: #c2aebb;
  --text-soft: #c2aebb;
  --border-subtle: rgb(248 239 232 / 0.14);
  --border-strong: rgb(248 239 232 / 0.3);
}
