/* ============================================================
   BARBER TOOLS by IATOOLS · Fresh Cut · tokens (DISENO §3)
   Se carga ANTES que todo. Tema oscuro grafito por defecto; «papel» para informes e impresión.
   Contraste medido (WCAG) en DISENO §3: texto ≥ 4,5:1, controles ≥ 3:1.
   Movimiento: prohibidos ease/linear; todo pasa por las curvas de abajo.
   ============================================================ */

/* Space Grotesk servida desde este servidor (/fonts/): ninguna página le pide la tipografía a Google,
   así que Google no recibe la IP de quien reserva. Fuente variable, pesos 300 a 700.
   © 2020 The Space Grotesk Project Authors, SIL Open Font License 1.1 (/fonts/OFL.txt).
   Archivos woff2 de Google Fonts v22 (latin y latin-ext), los mismos de iatools.cl (14-10-2026).
   sha256 (16 primeros): latin 0640890476fc1198 · latin-ext 952dddb45d2f96f7. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/fonts/space-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/fonts/space-grotesk-latin.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; }

:root {
  color-scheme: dark;
  /* superficies */
  --bt-fondo: #090C0C; --bt-sup-1: #0F1414; --bt-sup-2: #161D1D; --bt-sup-3: #1E2727;
  --bt-linea: #2A3434;            /* solo separadores decorativos (1,45:1) */
  --bt-borde-control: #627072;    /* inputs y toggles: 3,61:1 s/ grafito, 3,32:1 s/ sup-2 */
  /* texto */
  --bt-texto: #F5F1E8; --bt-texto-2: #B4BDBB; --bt-texto-3: #8A9694;
  /* marca IATOOLS */
  --bt-esmeralda: #00A884; --bt-verde-luz: #2BD9A8; --bt-menta: #B7F2E0;
  --bt-crema: #F5F1E8; --bt-gris: #E6EAEE; --bt-grafito: #0F1414;
  /* metal */
  --bt-cromo: #C9D1D4; --bt-acero: #8A9598;
  --bt-cromo-texto: linear-gradient(180deg, #F4F7F8 0%, #DDE3E5 38%, #8A9598 52%, #C9D1D4 70%, #F4F7F8 100%);
  --bt-cromo-relleno: linear-gradient(135deg, #F4F7F8 0%, #B8C2C5 24%, #8A9598 46%, #E9EEF0 60%, #9AA5A8 80%, #F4F7F8 100%);
  --bt-verde-metal: linear-gradient(135deg, #5BE6BE 0%, #00C79A 28%, #00A884 52%, #1FD3A2 76%, #B7F2E0 100%);
  --bt-verde-metal-texto: linear-gradient(180deg, #B7F2E0 0%, #2BD9A8 45%, #00A884 55%, #5BE6BE 100%);
  --bt-gunmetal: linear-gradient(160deg, #1E2727 0%, #141A1A 60%, #1A2222 100%);
  --bt-borde-metal: linear-gradient(135deg, rgba(244,247,248,.5), rgba(138,149,152,.12) 40%, rgba(244,247,248,.3) 70%, rgba(138,149,152,.08));
  /* textura de acero cepillado (SVG en data:, la CSP lo permite) */
  --bt-acero-cepillado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.015' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.9 0 0 0 0 0.92 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* estados */
  --bt-ok: #2BD9A8; --bt-alerta: #F2B84B; --bt-error: #FF7A6E;
  --bt-ok-tenue: rgba(43,217,168,.12); --bt-alerta-tenue: rgba(242,184,75,.12); --bt-error-tenue: rgba(255,122,110,.12);
  /* acento de la barbería (lista cerrada; lo fija el panel con data-acento) */
  --bt-acento: var(--bt-esmeralda);
  /* tipografía */
  --bt-fuente: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --bt-t-micro: .75rem; --bt-t-chico: .875rem; --bt-t-base: 1rem;
  --bt-t-m: clamp(1.125rem, 1.05rem + .4vw, 1.25rem);
  --bt-t-l: clamp(1.375rem, 1.2rem + .9vw, 1.75rem);
  --bt-t-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --bt-t-kpi: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  --bt-t-hero-app: clamp(3rem, 2rem + 6vw, 5rem);
  --bt-t-display: clamp(3.5rem, 1rem + 11vw, 10rem);
  --bt-tr-display: -.045em; --bt-tr-kpi: -.03em; --bt-tr-titulo: -.02em; --bt-tr-micro: .12em;
  /* espaciado 4 pt */
  --bt-e-1: 4px; --bt-e-2: 8px; --bt-e-3: 12px; --bt-e-4: 16px; --bt-e-5: 24px;
  --bt-e-6: 32px; --bt-e-7: 48px; --bt-e-8: 64px; --bt-e-9: 96px; --bt-e-10: 128px;
  /* radios */
  --bt-r-xs: 6px; --bt-r-s: 10px; --bt-r-m: 14px; --bt-r-l: 20px; --bt-r-xl: 28px; --bt-r-pill: 999px;
  /* sombras (en oscuro: luz superior + caída) */
  --bt-sombra-1: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.5);
  --bt-sombra-2: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.45);
  --bt-sombra-hoja: 0 -12px 40px rgba(0,0,0,.6);
  --bt-brillo-verde: 0 0 0 1px rgba(43,217,168,.35), 0 8px 28px rgba(0,168,132,.28);
  /* movimiento */
  --bt-ease-salida: cubic-bezier(.16,1,.3,1);
  --bt-ease-suave: cubic-bezier(.25,1,.5,1);
  --bt-ease-io: cubic-bezier(.87,0,.13,1);
  --bt-ease-filo: cubic-bezier(.65,0,.35,1);
  --bt-d-toque: 120ms; --bt-d-hover: 200ms; --bt-d-pestana: 280ms;
  --bt-d-hoja: 480ms; --bt-d-firma: 900ms; --bt-d-landing: 1100ms;
  /* táctil */
  --bt-toque: 48px; --bt-tabbar: 64px;
  /* zonas seguras (iPhone; requiere viewport-fit=cover) */
  --bt-seg-arriba: env(safe-area-inset-top, 0px);
  --bt-seg-abajo: env(safe-area-inset-bottom, 0px);
  --bt-seg-izq: env(safe-area-inset-left, 0px);
  --bt-seg-der: env(safe-area-inset-right, 0px);
}

/* Acento de cada barbería: SOLO la lista cerrada (la base rechaza cualquier otra clave). */
:root[data-acento="esmeralda"] { --bt-acento: #00A884; }
:root[data-acento="cromo"] { --bt-acento: #C9D1D4; }
:root[data-acento="laton"] { --bt-acento: #C8A24A; }
:root[data-acento="cobre"] { --bt-acento: #D9895F; }
:root[data-acento="rojo_barbero"] { --bt-acento: #E5534B; }
:root[data-acento="azul_acero"] { --bt-acento: #6FA3D6; }
:root[data-acento="hueso"] { --bt-acento: #E9DFC9; }
:root[data-acento="menta"] { --bt-acento: #7FE3C4; }

/* Papel: informes en pantalla. Nunca #00A884 en papel (2,90:1): ahí va #00785E. */
:root[data-tema="papel"], [data-tema="papel"] {
  color-scheme: light;
  --bt-fondo: #FBFAF6; --bt-sup-1: #FFFFFF; --bt-sup-2: #F5F1E8; --bt-sup-3: #E6EAEE;
  --bt-linea: #E6EAEE; --bt-borde-control: #5E6B6D;
  --bt-texto: #0F1414; --bt-texto-2: #4A5553; --bt-texto-3: #5E6B6D;
  --bt-esmeralda: #00785E; --bt-verde-luz: #00785E; --bt-ok: #00785E; --bt-alerta: #8A5A00; --bt-error: #B3261E;
  --bt-cromo-texto: linear-gradient(180deg, #0F1414, #0F1414);
}
@media print {
  :root {
    color-scheme: light;
    --bt-fondo: #FBFAF6; --bt-sup-1: #FFFFFF; --bt-sup-2: #F5F1E8; --bt-sup-3: #E6EAEE;
    --bt-linea: #E6EAEE; --bt-borde-control: #5E6B6D;
    --bt-texto: #0F1414; --bt-texto-2: #4A5553; --bt-texto-3: #5E6B6D;
    --bt-esmeralda: #00785E; --bt-verde-luz: #00785E; --bt-ok: #00785E; --bt-alerta: #8A5A00; --bt-error: #B3261E;
    --bt-cromo-texto: linear-gradient(180deg, #0F1414, #0F1414);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bt-fondo); }
body {
  margin: 0; font-family: var(--bt-fuente); background: var(--bt-fondo); color: var(--bt-texto);
  line-height: 1.55; font-size: 16px; font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: var(--bt-tr-titulo); font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--bt-verde-luz); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
.bt-num { font-variant-numeric: tabular-nums; letter-spacing: var(--bt-tr-kpi); }
::selection { background: rgba(43,217,168,.35); color: var(--bt-texto); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--bt-verde-luz); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(43,217,168,.16); }
[hidden], .oculto { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Sin animación para quien la pidió apagada: todo queda en su estado final. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
