/* ==========================================================================
   circuitos-en-bus.com — tokens de marca
   Copia este archivo en la web y úsalo como base de estilos.
   Fuentes: copia la carpeta /fuentes junto a este CSS (o ajusta las rutas).
   ========================================================================== */

/* ---------- Tipografía: Outfit (licencia SIL OFL, autoalojada) ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fuentes/outfit-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fuentes/outfit-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fuentes/outfit-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fuentes/outfit-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- Color ---------- */
  --cb-ink: #1F2A37;          /* Negro tinta: logo, titulares, texto, botones */
  --cb-white: #FFFFFF;        /* Fondo principal */
  --cb-sand: #F5F3EE;         /* Arena: fondos de sección y tarjetas */
  --cb-orange: #E8743B;       /* Naranja guion: guiones del logo y acentos (NO texto pequeño) */
  --cb-orange-text: #B4501E;  /* Naranja para texto/enlaces sobre blanco (contraste 5,1:1) */
  --cb-gray: #6B7280;         /* Texto secundario sobre BLANCO (4,8:1) */
  --cb-gray-strong: #4B5563;  /* Texto secundario sobre ARENA */
  --cb-line: #E5E5E2;         /* Bordes y separadores */
  --cb-overlay: rgba(31, 42, 55, 0.35); /* Velo sobre fotos para poner texto/logo blanco */

  /* ---------- Tipografía ---------- */
  --cb-font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cb-weight-regular: 400;
  --cb-weight-bold: 600;

  /* Escala fluida: móvil (390 px) → ordenador (1280 px) */
  --cb-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);    /* 36 → 56 px */
  --cb-h2: clamp(1.75rem, 1.5rem + 1.1vw, 2.25rem);   /* 28 → 36 px */
  --cb-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);  /* 20 → 24 px */
  --cb-body: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem); /* 17 → 18 px */
  --cb-small: 0.875rem;                               /* 14 px */
  --cb-leading-tight: 1.1;
  --cb-leading-body: 1.6;
  --cb-tracking-tight: -0.018em;

  /* ---------- Espaciado (múltiplos de 4) ---------- */
  --cb-space-1: 4px;
  --cb-space-2: 8px;
  --cb-space-3: 12px;
  --cb-space-4: 16px;
  --cb-space-5: 24px;
  --cb-space-6: 32px;
  --cb-space-7: 48px;
  --cb-space-8: 64px;
  --cb-space-9: 96px;
  --cb-container: 1200px;
  --cb-gutter: clamp(16px, 4vw, 24px);

  /* ---------- Forma ---------- */
  --cb-radius-sm: 8px;
  --cb-radius: 12px;     /* tarjetas */
  --cb-radius-lg: 20px;  /* fotos grandes / hero */
  --cb-radius-pill: 999px; /* botones */

  /* ---------- Cabecera ---------- */
  --cb-header-h: 76px;        /* ordenador */
  --cb-header-h-mobile: 60px; /* móvil */
  --cb-logo-h: 40px;          /* alto del logo horizontal en ordenador */
  --cb-logo-h-mobile: 30px;   /* alto del logo horizontal en móvil (≈ 200 px de ancho) */
}

/* ---------- Base ---------- */
body {
  font-family: var(--cb-font);
  font-size: var(--cb-body);
  line-height: var(--cb-leading-body);
  color: var(--cb-ink);
  background: var(--cb-white);
}
h1, h2, h3 {
  font-weight: var(--cb-weight-bold);
  line-height: var(--cb-leading-tight);
  letter-spacing: var(--cb-tracking-tight);
}
h1 { font-size: var(--cb-h1); }
h2 { font-size: var(--cb-h2); }
h3 { font-size: var(--cb-h3); }

a { color: var(--cb-ink); text-decoration-color: var(--cb-orange); text-underline-offset: 3px; }
a:hover { color: var(--cb-orange-text); }

:focus-visible { outline: 3px solid var(--cb-orange); outline-offset: 2px; }

/* ---------- Botones ---------- */
.cb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--cb-radius-pill);
  font: var(--cb-weight-bold) 1rem/1 var(--cb-font);
  text-decoration: none; cursor: pointer;
}
.cb-btn--primary { background: var(--cb-ink); color: var(--cb-white); border: 0; }
.cb-btn--primary:hover { background: #000; color: var(--cb-white); }
.cb-btn--secondary { background: transparent; color: var(--cb-ink); border: 1.5px solid var(--cb-ink); }
.cb-btn--secondary:hover { background: var(--cb-ink); color: var(--cb-white); }

/* ---------- Nombre de marca en texto (cuando no se usa el SVG) ----------
   <span class="cb-wordmark">circuitos<span class="cb-dash">-</span>en<span class="cb-dash">-</span>bus.com</span> */
.cb-wordmark { font-family: var(--cb-font); font-weight: var(--cb-weight-bold); letter-spacing: var(--cb-tracking-tight); white-space: nowrap; }
.cb-wordmark .cb-dash { color: var(--cb-orange); }
