/* ============================================================
   Tienda Cenecoop — Sistema visual (Libro de Marca 2025)
   Primario: azul cobalto #1B56DB · Secundario verde · acento amarillo
   Tipografía: Jost (sustituto libre de Avant Garde Gothic)
   ============================================================ */

:root {
  /* Brand — verde (ahora SECUNDARIO: ahorro, éxito, isotipo, banda cooperativas) */
  --green-900: #013d20;
  --green-800: #014e29;
  --green-700: #006030;   /* wordmark / isotipo */
  --green-600: #0a7a40;
  --green-500: #169a52;
  --lime:      #90c020;
  --lime-600:  #79a317;
  --lime-bright:#a8d62f;
  --yellow:    #ffe000;
  --yellow-deep:#f5c400;

  /* Azul cooperativo — PRINCIPAL (libro de marca, 2.ª línea: colores cooperativos) */
  --navy-900:  #0b1f47;   /* superficie más oscura (heroes, bandas) */
  --navy-800:  #102a63;
  --blue-800:  #14399a;   /* hover de primario / profundo */
  --blue-700:  #1b56db;   /* PRINCIPAL — cobalto */
  --blue-600:  #3b74ec;
  --blue-500:  #5e93f5;
  --blue-400:  #8ab3f8;
  --blue-100:  #e9f0fe;

  /* Neutrals (from black) */
  --ink:       #14201a;
  --slate-800: #243029;
  --slate-600: #4a564f;
  --slate-500: #6b766f;
  --slate-400: #98a29b;
  --slate-300: #c7cec9;
  --slate-200: #e2e7e3;
  --slate-100: #eef1ee;
  --bg:        #f5f7f4;
  --paper:     #ffffff;

  /* Semantic */
  --primary: var(--blue-700);
  --primary-ink: #ffffff;

  /* Type — Libro de Marca 2025: Avant Garde Gothic (titulares) + Futura (cuerpo).
     Sustituto libre geométrico fiel: Jost. */
  --font-display: 'Jost', system-ui, sans-serif;
  --font-body: 'Jost', system-ui, sans-serif;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 9px;
  --r:    13px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(20,32,26,.06), 0 1px 3px rgba(20,32,26,.04);
  --sh:    0 4px 14px rgba(20,32,26,.07), 0 1px 3px rgba(20,32,26,.05);
  --sh-md: 0 10px 30px rgba(20,32,26,.10), 0 3px 8px rgba(20,32,26,.06);
  --sh-lg: 0 24px 60px rgba(11,31,71,.20), 0 8px 20px rgba(11,31,71,.10);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 15px;
  border: none; border-radius: var(--r-sm);
  padding: 12px 20px; line-height: 1;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-800); box-shadow: var(--sh); }
.btn-ghost { background: transparent; color: var(--blue-700); border: 1.5px solid var(--slate-300); }
.btn-ghost:hover { border-color: var(--blue-700); background: #fff; }
.btn-gold { background: var(--yellow); color: var(--ink); }
.btn-gold:hover { background: var(--yellow-deep); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--slate-100); color: var(--slate-600);
}

/* Section heading */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600);
}

/* Utility */
.muted { color: var(--slate-500); }
.strike { color: var(--slate-400); text-decoration: line-through; font-weight: 600; }

::selection { background: var(--lime); color: var(--green-900); }

/* Scrollbar (cart) */
.thin-scroll::-webkit-scrollbar { width: 8px; }
.thin-scroll::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 999px; }

/* Focus ring */
:focus-visible { outline: 3px solid color-mix(in oklab, var(--lime) 70%, white); outline-offset: 2px; }
