/* Legión Barber Club — sistema base v3 (tokens, tipografía, componentes compartidos)
   Dirección: carbón, latón y marfil. Erode para la voz (serif de sastrería), Supreme para la lectura.
   Tipografía elegida por el dueño el 30-nov-2026 (opción D). Fontshare · ITF Free Font License, uso comercial.
   El oro es un acento de hilo fino, nunca un relleno. */

@font-face { font-family: "Erode"; src: url("fuentes/erode-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Erode"; src: url("fuentes/erode-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Erode"; src: url("fuentes/erode-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Erode"; src: url("fuentes/erode-600-normal.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Erode"; src: url("fuentes/erode-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Erode"; src: url("fuentes/erode-400-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fuentes/supreme-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fuentes/supreme-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fuentes/supreme-500-normal.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fuentes/supreme-700-normal.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --onix: #0B0A09;        /* carbón: negro cálido de sala de cine */
  --pizarra: #13110F;     /* humo */
  --piedra: #1C1916;
  --veta: #2C2823;
  --oro: #C8A46B;         /* latón envejecido */
  --oro-claro: #EAD3A4;   /* champán */
  --oro-hondo: #7A5A2B;
  --hueso: #F2EBDF;       /* marfil */
  --hueso-tenue: #A69D8F;
  --burdeos: #4A1916;     /* vino oxblood, el cuero de los sillones */
  --vino-luz: rgba(122, 32, 26, 0.38);
  --verde: #111C17;       /* verde botella de club inglés */
  --verde-luz: rgba(40, 74, 58, 0.32);
  --champan: linear-gradient(100deg, #F5E6C4 0%, #D3B079 38%, #EED9AE 62%, #A9864F 100%);
  --exito: #8DB596;

  --hoja: linear-gradient(180deg, #F3E5C2 0%, #CDAE72 36%, #8E6C35 52%, #DCC390 68%, #76582A 100%);

  --f-titulo: "Erode", Georgia, "Times New Roman", serif;
  --f-texto: "Supreme", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-cita: "Erode", Georgia, serif;

  --t-xs: 0.78rem; --t-s: 0.875rem; --t-m: 1rem; --t-l: 1.25rem; --t-xl: 1.6rem;
  --t-2xl: 2.1rem; --t-3xl: 2.8rem; --t-4xl: 3.8rem;

  --r-s: 10px; --r-m: 14px; --r-l: 22px; --r-xl: 28px; --r-boton: 999px;
  --sombra: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --borde: 1px solid rgba(194, 161, 106, 0.22);
  --borde-fuerte: 1px solid rgba(194, 161, 106, 0.55);
  --hilo: 1px solid rgba(242, 237, 228, 0.1);
  --ancho: 1240px;
  --curva: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; } }
body { margin: 0; background: var(--onix); color: var(--hueso); font: 400 var(--t-m)/1.6 var(--f-texto); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--hueso); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--oro-claro); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--oro); color: var(--onix); }

h1, h2, h3 { font-family: var(--f-titulo); font-weight: 500; line-height: 1.04; margin: 0 0 0.45em; letter-spacing: -0.015em; font-optical-sizing: auto; }
h2 { font-size: clamp(2.2rem, 4.6vw, var(--t-4xl)); }
h3 { font-size: var(--t-xl); letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
em { font-family: var(--f-titulo); font-style: italic; }
h1 em, h2 em, .cierre-frase em, .contactos-frase em, .portada-titulo em { background: var(--champan); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }

.oro-hoja { background: var(--hoja); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contenedor { width: min(var(--ancho), 100% - 3rem); margin-inline: auto; }
.tenue { color: var(--hueso-tenue); }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones: rectángulo de esquina mínima, mayúsculas espaciadas y flecha que se desliza.
   Marfil sólido para la acción principal; filete marfil para la secundaria. El latón nunca rellena. */
.boton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.9rem; min-height: 52px; padding: 0.85rem 1.6rem;
  border-radius: 2px; border: 1px solid transparent; font: 500 0.74rem/1 var(--f-texto); letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background-color 0.35s var(--curva), color 0.35s var(--curva), border-color 0.35s var(--curva), transform 0.25s var(--curva); }
.boton::after { content: "→"; font: 400 1rem/1 var(--f-texto); letter-spacing: 0; transition: transform 0.5s var(--curva); }
.boton:hover::after { transform: translateX(5px); }
.boton.sin-flecha::after, .boton[download]::after { content: none; }
.boton:active { transform: scale(0.985); }
.boton-oro { background: var(--hueso); color: var(--onix); }
.boton-oro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--curva); }
.boton-oro:hover::before { transform: translateX(120%); }
.boton-linea { border-color: rgba(242, 237, 228, 0.32); color: var(--hueso); background: rgba(14, 13, 12, 0.18); }
.boton-linea:hover { border-color: var(--hueso); background: rgba(242, 237, 228, 0.06); }
.boton-quieto { background: rgba(242, 237, 228, 0.06); color: var(--hueso); border-color: rgba(242, 237, 228, 0.08); }
.boton-quieto:hover { background: rgba(242, 237, 228, 0.11); }
.boton[disabled] { opacity: 0.35; cursor: not-allowed; }

/* Campos */
.campo { display: grid; gap: 0.4rem; }
.campo label { font-size: var(--t-s); color: var(--hueso-tenue); }
.campo input, .campo select, .campo textarea { background: rgba(242, 237, 228, 0.04); border: 1px solid var(--veta); border-radius: var(--r-m);
  padding: 0.75rem 0.9rem; min-height: 48px; }
.campo select option { background: var(--pizarra); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 3px rgba(194, 161, 106, 0.16); }

/* Pastillas de selección */
.pastilla { border: 1px solid var(--veta); background: transparent; border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; min-height: 44px; font-size: var(--t-s);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.pastilla:hover { border-color: rgba(242, 237, 228, 0.35); }
.pastilla[aria-pressed="true"] { border-color: var(--hueso); background: var(--hueso); color: var(--onix); }

/* Aviso */
.aviso { border-left: 1px solid var(--oro); background: rgba(194, 161, 106, 0.06); padding: 0.85rem 1rem; border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--t-s); }
.aviso-error { border-left-color: #c46a5a; background: rgba(196, 106, 90, 0.08); }

/* Grano de película para superficies oscuras */
.grano { position: relative; }
.grano::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* ================================================================ botones de la casa (2026-11-29)
   Sin flecha en cada botón ni destello que barre: peso tipográfico, buen aire y un cambio de tono al pasar. */
.boton { gap: 0.6rem; min-height: 52px; padding: 0.9rem 1.9rem; border-radius: 1px; font-size: 0.7rem; letter-spacing: 0.24em; font-weight: 500;
  transition: background-color 0.45s var(--curva), color 0.45s var(--curva), border-color 0.45s var(--curva), letter-spacing 0.6s var(--curva); }
.boton::after { content: none; }
.boton-oro::before { display: none; }
.boton-oro { background: var(--hueso); color: var(--onix); box-shadow: inset 0 0 0 1px rgba(14, 13, 12, 0.04); }
.boton-oro:hover { background: var(--oro-claro); letter-spacing: 0.27em; }
.boton-linea { background: transparent; border-color: rgba(242, 237, 228, 0.28); }
.boton-linea:hover { background: transparent; border-color: var(--oro-claro); color: var(--oro-claro); letter-spacing: 0.27em; }
@media (prefers-reduced-motion: reduce) { .boton, .boton:hover { letter-spacing: 0.24em; } }

/* ================================================================ botones de la casa v2 (29-nov-2026)
   Placa de latón cepillado con filete interior grabado: la acción principal se ve como una pieza del local,
   no como un rectángulo blanco. La secundaria es un marco de latón sobre vidrio ahumado. Nunca parten línea. */
.boton { white-space: nowrap; border-radius: 0; font-weight: 600; letter-spacing: 0.22em; }
.boton-oro { color: #160F07; border: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 248, 225, 0.55) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #EFDDB0 0%, #D2B276 42%, #B38F56 58%, #CDAD72 100%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 225, 0.8), inset 0 -1px 0 rgba(70, 48, 18, 0.55), 0 0 0 1px #6E5226, 0 14px 34px -16px rgba(200, 164, 107, 0.7);
  transition: background-position 1.1s var(--curva), box-shadow 0.5s var(--curva), transform 0.25s var(--curva); }
.boton-oro::before { display: block; content: ""; position: absolute; inset: 4px; z-index: 0; border: 1px solid rgba(40, 26, 8, 0.32); transform: none; background: none; pointer-events: none; }
.boton-oro:hover { background-position: -30% 0, 0 0; letter-spacing: 0.22em; box-shadow: inset 0 1px 0 rgba(255, 248, 225, 0.9), inset 0 -1px 0 rgba(70, 48, 18, 0.55), 0 0 0 1px #8A6A35, 0 18px 44px -14px rgba(220, 184, 120, 0.85); }
.boton-oro:active { transform: translateY(1px) scale(0.99); }
.boton-linea { color: var(--oro-claro); background: rgba(11, 10, 9, 0.38); border: 1px solid rgba(200, 164, 107, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.boton-linea::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(200, 164, 107, 0.16); pointer-events: none; }
.boton-linea:hover { background: rgba(200, 164, 107, 0.12); border-color: var(--oro-claro); color: var(--hueso); letter-spacing: 0.22em; }
@media (max-width: 480px) { .boton { padding-inline: 1.25rem; letter-spacing: 0.16em; font-size: 0.7rem; } .boton-oro:hover, .boton-linea:hover { letter-spacing: 0.16em; } }

/* ================= Redondeo de la casa: esquinas suaves en todo (sitio, páginas y consola) =================
   Botones en píldora con su doble filete; tarjetas, fotos y paneles con radio amplio; campos con radio medio. */
.boton, .boton::before, .boton-linea::before, .boton-oro::before { border-radius: var(--r-boton); }
.boton-linea::before { inset: 3px; }
.campo input, .campo select, .campo textarea { border-radius: var(--r-m); }
.aviso { border-radius: var(--r-s); border-left-width: 2px; }
:focus-visible { border-radius: var(--r-s); }

/* Escala tipográfica: títulos balanceados (sin palabras huérfanas) y párrafos sin viudas, en sitio y consola */
h1, h2, h3, .portada-titulo { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
