/* Lantaño · tokens comunes a web, ERP y portal */
@font-face { font-family: 'Manrope'; src: url('/vendor/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/vendor/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/vendor/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --granito: #e8e7e3;      /* fondo web: granito claro, frío */
  --papel: #f6f6f3;        /* superficies */
  --blanco: #ffffff;
  --lousa: #1f2a2e;        /* tinta: pizarra */
  --lousa-2: #4a575c;      /* texto secundario */
  --lousa-3: #7b878b;
  --pino: #2e5e4e;         /* acento: verde pino */
  --pino-2: #3f7a66;
  --pino-claro: #dbe8e2;
  --carballo: #b88a5a;     /* madera */
  --lapis: #e3b23c;        /* lápiz de carpintero: solo cotas y marcas */
  --regla: #d3d1ca;
  --regla-2: #e4e3de;
  --rojo: #b5482f;
  --ambar: #b9821c;
  --azul: #3d6b8c;
  --violeta: #6e5e9c;
  --teal: #2f7f7a;
  --sombra: 0 1px 2px rgba(31, 42, 46, .06), 0 8px 24px -12px rgba(31, 42, 46, .18);
  --r1: 6px; --r2: 10px; --r3: 16px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--lousa); background: var(--granito); font-size: 16px; line-height: 1.55; font-feature-settings: 'tnum' 0; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--pino); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pino); outline-offset: 2px; border-radius: 3px; }
.num, td.n, .tnum { font-variant-numeric: tabular-nums; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Marca: palabra + cota */
.marca { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; line-height: 1; }
.marca b { font-family: var(--serif); font-weight: 560; font-size: 26px; letter-spacing: -.01em; font-variation-settings: 'opsz' 48, 'SOFT' 30; }
.marca i { display: block; height: 7px; position: relative; border-bottom: 1.5px solid var(--lapis); margin: 0 1px; }
.marca i::before, .marca i::after { content: ''; position: absolute; bottom: -4px; width: 1.5px; height: 9px; background: var(--lapis); transform: skewX(-35deg); }
.marca i::before { left: -1px; } .marca i::after { right: -1px; }
.marca small { font-size: 10.5px; letter-spacing: .02em; color: var(--lousa-3); font-weight: 600; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; background: var(--lousa); color: #fff; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: #2b383d; }
.btn:active { transform: translateY(1px); }
.btn.pino { background: var(--pino); } .btn.pino:hover { background: #26503f; }
.btn.claro { background: transparent; color: var(--lousa); border-color: var(--lousa); }
.btn.claro:hover { background: rgba(31, 42, 46, .06); }
.btn.suave { background: var(--blanco); color: var(--lousa); border-color: var(--regla); }
.btn.suave:hover { border-color: var(--lousa-3); }
.btn.peligro { background: var(--rojo); }
.btn.peq { padding: 6px 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Etiquetas de estado */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 650; line-height: 1.6; white-space: nowrap; background: #eceae4; color: var(--lousa-2); }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip.blue { background: #e3ecf3; color: #2f5a78; } .chip.green { background: #e0eee6; color: #2b6a4a; }
.chip.amber { background: #f5ead2; color: #8a5f0f; } .chip.red { background: #f5e1db; color: #9c3a24; }
.chip.violet { background: #ebe7f4; color: #5a4b88; } .chip.oak { background: #f1e6d9; color: #7f5630; }
.chip.teal { background: #dcefed; color: #226763; } .chip.grey { background: #ebeae6; color: #5f6a6e; }
.chip.liso::before { display: none; }

.muestra { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: none; display: inline-block; vertical-align: middle; }
.muestra.madera { background-image: repeating-linear-gradient(95deg, rgba(0,0,0,.08) 0 2px, transparent 2px 6px); }
[hidden] { display: none !important; }

/* Aviso permanente, sin interacción ni bloqueo de contenido. */
.aviso-demo { position: sticky; top: 72px; z-index: 25; background: #fff8e8; border-bottom: 1px solid #ddc98f; color: #4c3a10; }
.aviso-demo__interior { width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: baseline; gap: 10px 16px; padding: 8px 0; font-size: 12px; line-height: 1.45; }
.aviso-demo strong { flex: none; font-size: 12.5px; }
.aviso-demo span:last-child { color: #685522; }
body > .aviso-demo { position: fixed; inset: 0 0 auto; }
@media (max-width: 760px) { .aviso-demo__interior { width: min(100% - 24px, 1240px); display: block; padding: 7px 0; font-size: 11.5px; } .aviso-demo strong, .aviso-demo span { display: block; } .aviso-demo span + span { margin-top: 3px; } }
