/* Sitio público de BierHof. Misma línea que la plataforma (DESIGN.md): negro cálido de noche y papel de barra de día,
   un único ámbar, superficies separadas por filetes de 1px, Instrument Sans servida desde acá y sin sombras. */

@font-face {
  font-family: "Instrument Sans Variable"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("fuentes/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Instrument Sans Variable"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("fuentes/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

/* De noche (el de la plataforma) */
:root {
  --fondo: #0f0d0b; --superficie: #171411; --superficie-alta: #1f1b17;
  --tinta: #ede6da; --tinta-suave: #a49a8c; --tinta-tenue: #8a8174;
  --filete: #2b2620; --filete-fuerte: #3d362e;
  --ambar: #e8a33d; --ambar-encendido: #f0b456; --sobre-ambar: #1a1206;
  --fuente: "Instrument Sans Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
/* De día: el mismo mundo pasado a papel de barra */
@media (prefers-color-scheme: light) {
  :root {
    --fondo: #f6f2ec; --superficie: #ffffff; --superficie-alta: #efe9e0;
    --tinta: #1f1a15; --tinta-suave: #5e554b; --tinta-tenue: #6b6257;
    --filete: #e3dcd2; --filete-fuerte: #cdc3b6;
    --ambar: #9f4e0a; --ambar-encendido: #8f460a; --sobre-ambar: #ffffff;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--filete-fuerte) var(--fondo); }
body {
  margin: 0; background: var(--fondo); color: var(--tinta); font: 400 1rem/1.5 var(--fuente);
  font-variant-numeric: tabular-nums; min-height: 100dvh; display: flex; flex-direction: column;
}
::selection { background: var(--ambar); color: var(--sobre-ambar); }
a { color: var(--ambar); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ambar-encendido); }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.contenedor {
  width: 100%; max-width: 44rem; margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
main { flex: 1; }

/* Encabezado de las páginas internas */
.barra { border-bottom: 1px solid var(--filete); padding-block: 0.75rem; }
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--tinta); text-decoration: none; font-weight: 600; }
.marca img { width: 36px; height: 36px; border-radius: 4px; }

/* Inicio */
.portada { padding-block: clamp(3rem, 10vw, 6rem) 2.5rem; }
.logo { width: 112px; height: 112px; border-radius: 4px; margin-bottom: 2rem; }
.logo-claro { display: none; }
@media (prefers-color-scheme: light) { .logo-oscuro { display: none; } .logo-claro { display: block; } }
h1 { font: 600 clamp(2.25rem, 8vw, 3.5rem)/1.05 var(--fuente); letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance; }
.bajada { font-size: 1.2rem; line-height: 1.45; color: var(--tinta-suave); max-width: 32ch; margin: 0 0 2rem; text-wrap: pretty; }
.acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.55rem 1.1rem;
  border-radius: 8px; border: 1px solid var(--filete-fuerte); color: var(--tinta); background: transparent;
  font: 500 0.95rem/1.2 var(--fuente); text-decoration: none; transition: background-color 160ms ease-out;
}
.boton:hover { background: var(--superficie-alta); color: var(--tinta); }
.boton.principal { background: var(--ambar); border-color: var(--ambar); color: var(--sobre-ambar); }
.boton.principal:hover { background: var(--ambar-encendido); border-color: var(--ambar-encendido); color: var(--sobre-ambar); }

.datos { margin: 0; padding: 0; }
.dato { display: grid; grid-template-columns: 1fr; gap: 0.25rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--filete); }
.dato:last-child { border-bottom: 1px solid var(--filete); }
.dato dt { font-weight: 600; font-size: 1.1rem; }
.dato dd { margin: 0; color: var(--tinta-suave); max-width: 52ch; }
.dato dd strong { color: var(--tinta); font-weight: 500; }
.dato dd + dd { margin-top: 0.25rem; }
@media (min-width: 640px) { .dato { grid-template-columns: 9rem 1fr; } .dato dd { grid-column: 2; } .dato dt { grid-row: 1 / span 3; } }

/* Páginas de texto */
.texto { padding-block: 2.5rem 3.5rem; }
.texto h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 0.5rem; }
.texto .fecha { color: var(--tinta-tenue); font-size: 0.9rem; margin: 0 0 2rem; }
.texto h2 { font: 600 1.25rem/1.3 var(--fuente); letter-spacing: -0.01em; margin: 2.25rem 0 0.5rem; }
.texto p, .texto li { max-width: 70ch; color: var(--tinta-suave); }
.texto p { margin: 0 0 0.9rem; }
.texto ul { padding-left: 1.2rem; margin: 0 0 0.9rem; }
.texto li { margin-bottom: 0.35rem; }
.texto strong { color: var(--tinta); font-weight: 500; }
.aviso { background: var(--superficie); border: 1px solid var(--filete); border-radius: 8px; padding: 0.75rem 1rem; margin: 1.25rem 0; }
.aviso p { margin: 0; color: var(--tinta); }

/* Pie */
.pie { border-top: 1px solid var(--filete); padding-block: 1.5rem 2rem; color: var(--tinta-tenue); font-size: 0.9rem; }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.pie nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.pie a { color: var(--tinta-suave); }
.pie a:hover { color: var(--ambar); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
