@charset "utf-8";

/* AlixPress España — hoja de estilos.
   Mismo lenguaje visual que mercadillosem.com.es: papel cálido, paneles
   blancos con filete fino, sin degradados, sombras ni iconos decorativos.
   Titulares en Bricolage Grotesque, el resto con la tipografía del sistema. */

/* Mientras carga Bricolage, los titulares van en Arial con métricas ajustadas:
   el cambio de fuente no mueve nada de sitio. */
@font-face {
  font-family: "Bricolage Grotesque Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 88.21%; descent-override: 25.61%; line-gap-override: 0%; size-adjust: 105.43%;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-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;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-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;
}

:root {
  --primary: #b4461a; --primary-press: #933813; --primary-subdued: #f8ebe2; --on-primary: #fff;
  --paper: #fbf8f2; --canvas: #fff; --canvas-soft: #f5efe5;
  --ink: #1f1b16; --ink-2: #3b342c; --mute: #6b6258;
  --hairline: #e8e1d6; --hairline-input: #d6ccbd;
  --header-bg: rgba(251, 248, 242, .92);
  --pop: 0 10px 28px rgba(31, 27, 22, .14);
  --warn: #9a5b06;
  --ok: #4f6b2f;
  --display: "Bricolage Grotesque", "Bricolage Grotesque Fallback", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px; --radius-control: 8px;
  color-scheme: light;
}
/* Tema oscuro: por defecto el del sistema, pero la elección de la persona manda. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #ef8a5c; --primary-press: #f4a581; --primary-subdued: rgba(239, 138, 92, .13); --on-primary: #2a120a;
    --paper: #161412; --canvas: #1e1b18; --canvas-soft: #25211d;
    --ink: #f3eee7; --ink-2: #ddd5ca; --mute: #a99f93;
    --hairline: rgba(255, 240, 220, .1); --hairline-input: rgba(255, 240, 220, .2);
    --header-bg: rgba(22, 20, 18, .88);
    --pop: 0 10px 28px rgba(0, 0, 0, .45);
    --warn: #f0b24a;
    --ok: #9dba76;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --primary: #ef8a5c; --primary-press: #f4a581; --primary-subdued: rgba(239, 138, 92, .13); --on-primary: #2a120a;
  --paper: #161412; --canvas: #1e1b18; --canvas-soft: #25211d;
  --ink: #f3eee7; --ink-2: #ddd5ca; --mute: #a99f93;
  --hairline: rgba(255, 240, 220, .1); --hairline-input: rgba(255, 240, 220, .2);
  --header-bg: rgba(22, 20, 18, .88);
  --pop: 0 10px 28px rgba(0, 0, 0, .45);
  --warn: #f0b24a;
  --ok: #9dba76;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--text); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
a {
  color: var(--primary);
  text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 8px; }
h2 { font-size: 22px; font-weight: 700; margin: 44px 0 14px; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--primary); }
h3 { font-size: 17px; font-weight: 650; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.muted { color: var(--mute); }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 680px; margin: 0 0 16px; }
.intro { color: var(--ink-2); max-width: 680px; margin: -4px 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 1100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }

/* El único icono del sitio es el del cambio de tema. */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; vertical-align: -4px; }

/* Cabecera */
header.site {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg); border-bottom: 1px solid var(--hairline);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
header.site .wrap { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.brand {
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.025em;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.brand span { color: var(--mute); font-weight: 500; }
header nav { display: flex; gap: 2px 16px; flex-wrap: wrap; order: 3; width: 100%; }
@media (min-width: 760px) { header nav { order: 0; width: auto; } }
header nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--mute); padding: 4px 0; }
header nav a:hover, header nav a[aria-current] { color: var(--primary); }
.head-shop {
  margin-left: auto; display: inline-flex; align-items: center; height: 34px; padding: 0 13px;
  background: var(--primary); color: var(--on-primary); border-radius: var(--radius-control);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.head-shop:hover { background: var(--primary-press); color: var(--on-primary); }
.themebtn {
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; cursor: pointer;
  background: transparent; border: 0; border-radius: var(--radius-control); color: var(--ink);
}
.themebtn:hover { background: var(--canvas-soft); }
.themebtn .ic { grid-area: 1 / 1; width: 18px; height: 18px; }
.themebtn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .themebtn .sun { display: none; }
  :root:not([data-theme="light"]) .themebtn .moon { display: block; }
}
:root[data-theme="dark"] .themebtn .sun { display: none; }
:root[data-theme="dark"] .themebtn .moon { display: block; }
:root[data-theme="light"] .themebtn .sun { display: block; }
:root[data-theme="light"] .themebtn .moon { display: none; }

/* Migas: caja baja, separador en forma de chevron */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none;
  padding: 20px 0 0; margin: 0; font-size: 14px; line-height: 20px; color: var(--mute);
}
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 10px 0 8px;
  border-top: 1.5px solid var(--hairline-input); border-right: 1.5px solid var(--hairline-input);
  transform: rotate(45deg);
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

/* Encabezado de página: solo texto sobre el papel */
.hero { margin: 24px 0 8px; padding: 0 0 26px; border-bottom: 1px solid var(--hairline); }
.hero > :last-child { margin-bottom: 0; }
.hero .lead { margin: 0; }
.subtitle { font: 500 18px/1.4 var(--display); letter-spacing: -.01em; color: var(--mute); margin: 0 0 14px; }
.updated { font-size: 14px; color: var(--mute); margin: 10px 0 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary);
  border-radius: var(--radius-control); text-decoration: none;
  font: 600 15px var(--text); cursor: pointer; transition: background-color .15s ease;
}
.btn:hover { background: var(--primary-press); border-color: var(--primary-press); color: var(--on-primary); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--canvas); color: var(--ink); border-color: var(--hairline-input); }
.btn.ghost:hover { background: var(--canvas-soft); border-color: var(--ink-2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.actions:last-child { margin-bottom: 0; }

/* Listas en panel: nombre a la izquierda, detalle a la derecha */
.rows {
  list-style: none; padding: 0; margin: 14px 0 0;
  border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--canvas); overflow: hidden;
}
.rows > li { border-bottom: 1px solid var(--hairline); }
.rows > li:last-child { border-bottom: 0; }
@media (min-width: 760px) {
  .rows.cols { display: grid; grid-template-columns: 1fr 1fr; }
  .rows.cols > li:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .rows.cols > li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.row {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 18px;
  color: var(--ink); text-decoration: none; min-height: 100%;
}
a.row:hover { background: var(--primary-subdued); }
a.row:hover .row-name { color: var(--primary); }
.row-main { flex: 1; min-width: 0; }
.row-name { display: block; font-weight: 600; line-height: 1.3; }
.row-main small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--mute); }
.row-side { flex: none; text-align: right; font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.row-side small { display: block; font-size: 14px; color: var(--mute); }

/* Índice a varias columnas, como en un directorio */
.index { list-style: none; padding: 0; margin: 14px 0 0; columns: 2 170px; column-gap: 28px; }
.index li { break-inside: avoid; border-bottom: 1px solid var(--hairline); }
.index a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; color: var(--ink); text-decoration: none; }
.index a:hover { color: var(--primary); }
@media (min-width: 760px) { .index { columns: 3 170px; } }

/* Ventajas y otros bloques de dos columnas: definiciones, sin tarjetas */
.defs { display: grid; gap: 0 40px; margin: 14px 0 0; border-top: 1px solid var(--hairline); }
@media (min-width: 700px) { .defs { grid-template-columns: 1fr 1fr; } }
.defs > div { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.defs h3 { margin: 0 0 4px; }
.defs p { margin: 0; color: var(--ink-2); }

/* Datos clave en tabla */
.ficha {
  display: grid; grid-template-columns: minmax(110px, max-content) 1fr; margin: 22px 0 0;
  border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--canvas); overflow: hidden;
}
.ficha dt, .ficha dd { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--hairline); }
.ficha dt { color: var(--mute); font-size: 14px; }
.ficha dd { font-weight: 600; overflow-wrap: anywhere; }
.ficha dt:last-of-type, .ficha dd:last-of-type { border-bottom: 0; }

/* Preguntas */
.faq { margin: 14px 0 0; border-top: 1px solid var(--hairline); max-width: 760px; }
.faq dt { font-weight: 650; padding: 14px 0 0; }
.faq dd { margin: 4px 0 0; padding: 0 0 14px; color: var(--ink-2); border-bottom: 1px solid var(--hairline); }
.faq dd p { margin: 0 0 8px; }
.faq dd p:last-child { margin-bottom: 0; }

.note {
  margin: 18px 0; padding: 12px 16px; font-size: 15px; color: var(--ink-2);
  border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--canvas);
}
.hint { margin: 10px 0 0; font-size: 14px; color: var(--mute); }
.alsolinks { font-size: 15px; color: var(--mute); margin: 18px 0 0; }

/* Artículos */
.prose { max-width: 42rem; padding-top: 4px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose li { line-height: 1.65; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 5px; }
.prose li::marker { color: var(--mute); }
.prose dl { margin: 12px 0; }
.prose dt { font-weight: 620; margin-top: 10px; }
.prose dd { margin: 2px 0 0; color: var(--mute); }
.prose img { display: block; margin: 18px 0; border: 1px solid var(--hairline); border-radius: var(--radius); }
.prose img[src$=".svg"] { max-height: 72px; width: auto; border: 0; }
.prose blockquote { margin: 16px 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--primary); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { color: var(--mute); font-weight: 600; font-size: 14px; }
.table-scroll { overflow-x: auto; }

/* Sigue leyendo */
.related { margin: 40px 0 0; }
.related h2 { font-size: 20px; margin-bottom: 10px; }

/* Comentarios */
.comments { margin: 44px 0 0; }
.comments h2 { margin-bottom: 8px; }

/* Pie */
footer.site { margin-top: 64px; border-top: 1px solid var(--hairline); }
footer.site .wrap { padding: 28px 16px 36px; font-size: 14px; color: var(--mute); }
@media (min-width: 700px) { footer.site .wrap { padding-left: 24px; padding-right: 24px; } }
footer.site p { margin: 0 0 8px; max-width: 760px; }
footer.site a { color: var(--ink-2); }
.footcols { display: grid; gap: 22px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 24px; }
@media (min-width: 760px) { .footcols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.footcols h2 { font: 600 15px var(--text); color: var(--ink); margin: 0 0 8px; letter-spacing: 0; }
.footcols ul { list-style: none; padding: 0; margin: 0; }
.footcols li { margin-bottom: 6px; }
.footcols a { text-decoration: none; }
.footcols a:hover { color: var(--primary); text-decoration: underline; }

/* Formularios (acceso al panel) */
.form { max-width: 420px; margin-top: 20px; }
.form label { display: block; margin-bottom: 14px; }
.form label span { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.form input {
  width: 100%; font: inherit; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--hairline-input); border-radius: var(--radius-control); padding: 10px 12px;
}
.form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }

.error-page { padding: 48px 0 0; }
