/* ==========================================================================
   CAJA SOLIDARIA — hoja de estilos principal
   1. Fuentes locales  2. Tokens  3. Base  4. Utilidades  5. Encabezado
   6. Hero  7. Aviso comercial  8. Comparativa  9. Guía (artículo)
   10. FAQ  11. Cierre  12. Pie de página  13. Páginas legales  14. Movimiento
   ========================================================================== */

/* 1. Fuentes locales (SIL Open Font License, ver assets/fonts) ------------ */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-italic.woff2") format("woff2"); }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Paleta */
  --c-wine-900: #561D30;   /* hover de botones */
  --c-wine-800: #6B263D;   /* logotipo y títulos */
  --c-wine-700: #922F4C;   /* botones principales */
  --c-wine-50:  #F7EEF0;   /* tinte suave derivado */
  --c-milk:     #FAF7F2;   /* fondo principal */
  --c-white:    #FFFFFF;   /* artículo y tarjetas */
  --c-sand:     #EFE4D5;   /* consejos y conclusiones */
  --c-sand-200: #E7D8C4;   /* borde de bloques arena */
  --c-gold:     #C9A66B;   /* acentos puntuales */
  --c-ink:      #302B2D;   /* texto principal */
  --c-muted:    #71676B;   /* texto secundario */
  --c-line:     #E3D9D0;   /* bordes y divisores */
  --c-focus:    #922F4C;

  /* Tipografía */
  --f-sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Lora", Georgia, "Times New Roman", serif;
  --fs-xs: 0.8125rem;                               /* 13 */
  --fs-sm: 0.9375rem;                               /* 15 */
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); /* 16–17 */
  --fs-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);  /* 17–20 */
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --fs-h1: clamp(2.25rem, 1.55rem + 3.2vw, 4.25rem);
  --fs-rate: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --tracking-eyebrow: 0.14em;

  /* Espaciado (escala 4–96) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: clamp(64px, 6vw + 32px, 96px);

  /* Radios */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-xl: 22px; --r-pill: 999px;

  /* Sombras cálidas */
  --sh-1: 0 1px 2px rgba(48, 43, 45, 0.06);
  --sh-2: 0 6px 18px -8px rgba(86, 29, 48, 0.18), 0 2px 4px rgba(48, 43, 45, 0.05);
  --sh-3: 0 24px 48px -24px rgba(86, 29, 48, 0.32);

  /* Retícula */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 68ch;
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--c-milk); color: var(--c-ink);
  font-family: var(--f-sans); font-size: var(--fs-base); line-height: var(--lh-body);
  font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-wine-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-wine-900); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--c-wine-800); margin: 0; font-weight: 700; line-height: var(--lh-snug); letter-spacing: -0.01em; }
h1 { font-family: var(--f-serif); font-weight: 500; font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2em; }
li + li { margin-top: var(--s-2); }
strong { font-weight: 700; }
small { font-size: var(--fs-sm); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-sand); color: var(--c-ink); }
svg.i { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.75; vertical-align: -0.25em; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-7) 0; }

/* 4. Utilidades ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--c-wine-800); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-weight: 700; }
.skip-link:focus { top: var(--s-3); color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--c-wine-700);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--c-gold); }
.lead { font-size: var(--fs-lg); color: var(--c-ink); line-height: 1.6; }
.muted { color: var(--c-muted); }
.serif { font-family: var(--f-serif); font-weight: 500; }

/* Botones */
.btn {
  --btn-bg: var(--c-wine-700); --btn-fg: #fff; --btn-bd: var(--c-wine-700);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font: 700 var(--fs-sm)/1 var(--f-sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { --btn-bg: var(--c-wine-900); --btn-bd: var(--c-wine-900); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg.i { width: 1.1em; height: 1.1em; }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-xs); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-wine-800); --btn-bd: var(--c-line); }
.btn--ghost:hover { --btn-bg: var(--c-white); --btn-fg: var(--c-wine-900); --btn-bd: var(--c-wine-700); color: var(--c-wine-900); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; text-decoration: none; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow svg { transition: transform var(--dur) var(--ease); }

/* Etiquetas */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; border: 1px solid transparent; white-space: nowrap;
}
.tag svg.i { width: 14px; height: 14px; }
.tag--ad { background: var(--c-sand); color: var(--c-ink); border-color: var(--c-sand-200); }
.tag--mx { background: var(--c-wine-50); color: var(--c-wine-900); border-color: #E6CBD3; }
.tag--no { background: #F1EEEC; color: #4A4245; border-color: var(--c-line); }
.tag--tbc { background: #FBF4E8; color: #5C4A2A; border-color: #EAD9B8; }

/* 5. Encabezado ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 247, 242, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: var(--sh-1); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.logo { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--c-wine-800); font-family: var(--f-serif); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.logo:hover { color: var(--c-wine-900); text-decoration: none; }
.logo__mark { width: 10px; height: 10px; border-radius: 50%; background: var(--c-gold); margin-right: 8px; align-self: center; box-shadow: 0 0 0 3px var(--c-sand); }
.logo em { font-style: italic; font-weight: 500; color: var(--c-wine-700); }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-1); }
.nav__list li + li { margin-top: 0; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); border-radius: var(--r-md); position: relative; }
.nav__link::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 8px; height: 1px; background: var(--c-gold); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav__link:hover { color: var(--c-wine-800); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-wine-800); cursor: pointer; }
.menu-toggle svg.i { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--c-milk); border-bottom: 1px solid var(--c-line); box-shadow: var(--sh-2); padding: var(--s-4) var(--gutter) var(--s-5); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { display: block; animation: drop var(--dur) var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: flex; width: 100%; min-height: 52px; font-size: var(--fs-base); border-bottom: 1px solid var(--c-line); border-radius: 0; padding: 0 var(--s-1); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: var(--s-4); }
  .nav__cta .btn { width: 100%; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 1101px) { .nav__cta { display: none; } }
@media (max-width: 560px) {
  .site-header__inner { gap: var(--s-3); }
  .header-actions { gap: var(--s-2); }
  .logo { font-size: 1.15rem; }
  .logo__mark { margin-right: 6px; }
  .header-actions .tag--ad { white-space: normal; max-width: 92px; text-align: center; line-height: 1.15; font-size: 0.6875rem; padding: 4px 8px; border-radius: var(--r-md); }
  .header-actions .tag--ad svg { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 6. Hero ----------------------------------------------------------------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 var(--section-y); position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy h1 { margin: var(--s-5) 0 var(--s-5); max-width: 15ch; }
.hero__copy h1 em { font-style: italic; color: var(--c-wine-700); }
.hero__lead { max-width: 56ch; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin: var(--s-5) 0 var(--s-6); font-size: var(--fs-sm); color: var(--c-muted); }
.hero__meta strong { color: var(--c-ink); font-weight: 700; }
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.hero__notice {
  margin-top: var(--s-6); display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start;
  padding: var(--s-4) var(--s-5); background: var(--c-white); border: 1px solid var(--c-line); border-left: 3px solid var(--c-gold); border-radius: var(--r-md);
  font-size: var(--fs-sm); line-height: 1.55; max-width: 60ch;
}
.hero__notice svg.i { color: var(--c-wine-700); margin-top: 2px; }
.hero__notice p { margin: 0; }
.hero__figure { margin: 0; position: relative; }
.hero__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px; overflow: hidden; background: var(--c-sand); box-shadow: var(--sh-3); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero__figure::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1px solid var(--c-gold); border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px; z-index: -1; }
.hero__figure figcaption { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--c-muted); padding-left: var(--s-4); border-left: 1px solid var(--c-gold); }
.hero__stamp {
  position: absolute; left: -28px; bottom: 56px; background: var(--c-white); border-radius: var(--r-lg); box-shadow: var(--sh-2);
  padding: var(--s-4) var(--s-5); max-width: 230px; font-size: var(--fs-xs); line-height: 1.45; color: var(--c-muted);
}
.hero__stamp b { display: block; font-family: var(--f-serif); font-weight: 500; font-size: 1.75rem; color: var(--c-wine-800); line-height: 1.1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { max-width: 560px; }
  .hero__frame { aspect-ratio: 4 / 3; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 72px; }
  .hero__figure::before { border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 72px; inset: -10px -10px 10px 10px; }
  .hero__stamp { left: auto; right: var(--s-4); bottom: -24px; }
  .hero__figure figcaption { margin-top: var(--s-7); }
}
@media (max-width: 480px) { .hero__figure::before { display: none; } .hero__meta .dot { display: none; } .hero__actions .btn { width: 100%; } .hero__stamp { position: static; margin-top: var(--s-4); max-width: none; } .hero__figure figcaption { margin-top: var(--s-4); } }

/* 7. Cómo se financia este sitio ---------------------------------------- */
.funding { background: var(--c-white); border-block: 1px solid var(--c-line); padding: var(--s-7) 0; }
.funding__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.funding__title { display: flex; gap: var(--s-3); align-items: flex-start; }
.funding__title svg.i { width: 28px; height: 28px; color: var(--c-gold); margin-top: 4px; }
.funding__title h2 { font-size: var(--fs-h3); }
.funding__body { columns: 2 280px; column-gap: var(--s-7); }
.funding__body p { break-inside: avoid; }
.funding__body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .funding__grid { grid-template-columns: 1fr; } }

/* 8. Comparativa ---------------------------------------------------------- */
.compare { padding: var(--section-y) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); align-items: end; margin-bottom: var(--s-6); }
.section-head h2 { margin-top: var(--s-4); }
.section-head p { margin: 0; color: var(--c-muted); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: var(--s-4); } }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.filter { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; }
.filter legend { float: left; margin-right: var(--s-3); font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); display: inline-flex; align-items: center; gap: 6px; }
.filter legend svg.i { color: var(--c-gold); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-pill); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); transition: background var(--dur), color var(--dur); }
.seg label .count { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); padding: 1px 7px; border-radius: var(--r-pill); background: var(--c-milk); color: var(--c-muted); }
.seg label:hover { color: var(--c-wine-800); }
.seg input:checked + label { background: var(--c-wine-800); color: #fff; }
.seg input:checked + label .count { background: rgba(255,255,255,.18); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.toolbar__status { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
@media (max-width: 640px) { .seg { border-radius: var(--r-lg); width: 100%; } .seg label { flex: 1 1 auto; justify-content: center; } .filter legend { float: none; width: 100%; margin-bottom: var(--s-2); } }

.order-note { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-muted); margin: 0 0 var(--s-5); max-width: 90ch; }
.order-note svg.i { color: var(--c-gold); margin-top: 3px; }

.offers-wrap { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; }
.offers { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; table-layout: fixed; }
.offers thead th:nth-child(1) { width: 18%; }
.offers thead th:nth-child(2) { width: 12%; }
.offers thead th:nth-child(3) { width: 18%; }
.offers thead th:nth-child(4) { width: 14%; }
.offers thead th:nth-child(5) { width: 13%; }
.offers thead th:nth-child(6) { width: 8%; }
.offers thead th:nth-child(7) { width: 17%; }
.offers td { overflow-wrap: break-word; }
.offers caption { text-align: left; }
.offers thead th {
  background: var(--c-white); text-align: left; vertical-align: top; white-space: nowrap;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted);
  padding: var(--s-4) var(--s-3); border-bottom: 2px solid var(--c-wine-800);
}
.offers thead th:first-child { padding-left: var(--s-5); }
.offers thead th:last-child { padding-right: var(--s-5); }
.offers td { padding: var(--s-5) var(--s-3); vertical-align: top; border-bottom: 1px solid var(--c-line); font-size: var(--fs-sm); }
.offers td:first-child { padding-left: var(--s-5); }
.offers td:last-child { padding-right: var(--s-5); }
.offer-row { transition: background var(--dur) var(--ease); }
.offers tr[hidden], .offers tr.offer-row[hidden] { display: none !important; }
.offer-row:hover { background: #FDFBF8; }
.offer-row.is-open { background: #FDFBF8; }
.offer-row.is-open td { border-bottom-color: transparent; }
.cell-label { display: none; }
.inst { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-2); align-items: baseline; }
.inst__n { grid-row: span 3; font-family: var(--f-serif); font-size: 1.05rem; color: var(--c-gold); font-weight: 600; min-width: 1.6em; }
.inst__name { font-weight: 800; font-size: 1.0625rem; color: var(--c-ink); line-height: 1.3; }
.inst__product { color: var(--c-wine-700); font-weight: 600; line-height: 1.35; }
.inst__type { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.4; }
.rate { display: block; font-size: var(--fs-rate); font-weight: 800; color: var(--c-ink); line-height: 1.1; letter-spacing: -0.01em; }
.rate--promo { color: var(--c-wine-800); }
.rate-sub { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.45; }
.rate-none { display: inline-block; font-weight: 700; color: var(--c-muted); line-height: 1.35; }
.promo-box { border-left: 2px solid var(--c-gold); padding-left: var(--s-3); }
.val { font-weight: 700; color: var(--c-ink); }
.val--muted { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.4; display: inline-block; }
.val-sub { display: block; font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.4; }
.cell-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-2); }
.cell-actions .btn { white-space: nowrap; padding: 0 var(--s-3); }
.c-mx .tag { white-space: normal; max-width: 100%; align-items: flex-start; border-radius: var(--r-md); }
.c-mx .tag svg.i { margin-top: 2px; }
.details-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 var(--s-3);
  border: 0; background: transparent; color: var(--c-wine-800); font: 700 var(--fs-xs)/1 var(--f-sans); cursor: pointer; border-radius: var(--r-pill);
}
.details-toggle:hover { background: var(--c-wine-50); }
.details-toggle svg.i { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.details-toggle[aria-expanded="true"] svg.i { transform: rotate(180deg); }
.details-row > td { padding: 0 var(--s-5) var(--s-5); background: #FDFBF8; border-bottom: 1px solid var(--c-line); }
.details { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-5) var(--s-7); padding: var(--s-5); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); font-size: var(--fs-sm); animation: fadeIn var(--dur) var(--ease); }
.details h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-muted); font-weight: 800; margin-bottom: var(--s-3); }
.details ul { padding-left: 1.1em; margin: 0; }
.details li::marker { color: var(--c-gold); }
.details dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); }
.details dt { color: var(--c-muted); font-weight: 600; }
.details dd { margin: 0; color: var(--c-ink); }
.details .mx-note { grid-column: 1 / -1; display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--c-milk); border: 1px dashed var(--c-sand-200); }
.details .mx-note svg.i { color: var(--c-wine-700); margin-top: 2px; }
.details .mx-note p { margin: 0; }
.details .sources { grid-column: 1 / -1; padding-top: var(--s-3); border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.6; }
.details .sources a { overflow-wrap: anywhere; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.offers-empty { padding: var(--s-7) var(--s-5); text-align: center; color: var(--c-muted); }
.table-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3) var(--s-6); margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--c-muted); }
.table-foot p { margin: 0; display: flex; gap: var(--s-2); align-items: flex-start; }
.table-foot svg.i { color: var(--c-gold); margin-top: 3px; }

/* Tabla → tarjetas en pantallas angostas */
@media (max-width: 1180px) {
  .c-mx .tag { max-width: none; }
  .offers { table-layout: auto; }
  .offers-wrap { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .offers, .offers tbody, .offers tr, .offers td { display: block; width: 100%; }
  .offers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .offer-row { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin-top: var(--s-4); display: grid !important; grid-template-columns: 1fr 1fr; padding: var(--s-5) var(--s-5) var(--s-4); }
  .offer-row.is-open { border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; background: var(--c-white); }
  .offers td, .offers td:first-child, .offers td:last-child { padding: var(--s-3) 0; border-bottom: 0; }
  .offers td { border-top: 1px solid var(--c-line); }
  .offers td.c-inst { grid-column: 1 / -1; border-top: 0; padding-top: 0; padding-bottom: var(--s-4); }
  .offers td.c-base, .offers td.c-promo, .offers td.c-cap, .offers td.c-act { grid-column: 1 / -1; }
  .offers td.c-cap { order: 1; }
  .offers td.c-act { order: 3; }
  .offers td.c-min { padding-right: var(--s-3); }
  .cell-label { display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 4px; }
  .offers td.c-base, .offers td.c-promo { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--s-3); align-items: start; }
  .offers td.c-base .cell-label, .offers td.c-promo .cell-label { margin: 6px 0 0; }
  .cell-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cell-actions .btn { flex: 1 1 200px; }
  .cell-actions .details-toggle { flex: 1 1 140px; border: 1px solid var(--c-line); }
  .details-row { margin: 0; }
  .details-row > td { padding: 0 !important; background: transparent; border: 0 !important; }
  .details { grid-template-columns: 1fr; border-radius: 0 0 var(--r-lg) var(--r-lg); border-top: 1px dashed var(--c-line); background: #FDFBF8; }
}
@media (max-width: 420px) {
  .offer-row { padding: var(--s-4); }
  .offers td.c-base, .offers td.c-promo { grid-template-columns: 1fr; gap: 2px; }
  .details { padding: var(--s-4); }
  .details dl { grid-template-columns: 1fr; gap: 0; }
  .details dd { margin-bottom: var(--s-2); }
}

/* 9. Guía (artículo) ------------------------------------------------------ */
.guide { background: var(--c-white); border-top: 1px solid var(--c-line); padding: var(--section-y) 0; }
.guide__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: var(--fs-sm); }
.toc__title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--c-muted); margin: 0 0 var(--s-3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--c-line); }
.toc li + li { margin-top: 0; }
.toc a { display: grid; grid-template-columns: 2.2em 1fr; padding: 8px 0 8px var(--s-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--c-muted); text-decoration: none; line-height: 1.4; transition: color var(--dur), border-color var(--dur); }
.toc a span { font-family: var(--f-serif); color: var(--c-gold); font-weight: 600; }
.toc a:hover { color: var(--c-wine-800); }
.toc a[aria-current="true"] { color: var(--c-wine-800); border-left-color: var(--c-wine-700); font-weight: 700; }
.toc-mobile { display: none; margin-bottom: var(--s-6); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-milk); }
.toc-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--s-4); font-weight: 700; color: var(--c-wine-800); }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary svg { transform: rotate(180deg); }
.toc-mobile summary svg { transition: transform var(--dur); }
.toc-mobile ol { margin: 0; padding: 0 var(--s-4) var(--s-4) 2.4em; }
.toc-mobile a { text-decoration: none; }
@media (max-width: 960px) { .guide__layout { grid-template-columns: 1fr; } .toc { display: none; } .toc-mobile { display: block; } }

.article { max-width: var(--measure); }
.chapter { padding-bottom: var(--s-8); margin-bottom: var(--s-8); border-bottom: 1px solid var(--c-line); position: relative; }
.chapter:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.chapter__num { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: 1.125rem; color: var(--c-gold); margin-bottom: var(--s-2); }
.chapter h2 { font-family: var(--f-serif); font-weight: 500; letter-spacing: -0.015em; margin-bottom: var(--s-5); }
.chapter h3 { margin: var(--s-6) 0 var(--s-3); }
.chapter p, .chapter li { color: var(--c-ink); }
.chapter ul li::marker { color: var(--c-gold); }

/* Notas al margen editoriales */
.margin-note { font-size: var(--fs-sm); line-height: 1.55; color: var(--c-muted); border-top: 1px solid var(--c-gold); padding-top: var(--s-3); margin: var(--s-5) 0; }
.margin-note b { display: block; color: var(--c-wine-800); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
@media (min-width: 1360px) {
  .margin-note { position: absolute; left: calc(100% + 40px); top: 64px; width: 210px; margin: 0; }
}

/* Bloques arena */
.callout { background: var(--c-sand); color: var(--c-ink); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); margin: var(--s-6) 0; position: relative; }
.callout::before { content: ""; position: absolute; left: var(--s-6); top: 0; width: 48px; height: 3px; background: var(--c-wine-700); border-radius: 0 0 3px 3px; }
.callout h3, .callout h4 { color: var(--c-wine-800); margin: 0 0 var(--s-3); font-size: var(--fs-h4); display: flex; gap: var(--s-2); align-items: center; }
.callout h3 svg.i, .callout h4 svg.i { color: var(--c-wine-700); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { padding-left: 0; list-style: none; }
.callout ul li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-2); }
.callout ul li svg.i { color: var(--c-wine-700); width: 18px; height: 18px; margin-top: 4px; }
@media (max-width: 480px) { .callout { padding: var(--s-5) var(--s-4); } .callout::before { left: var(--s-4); } }

.figure { margin: var(--s-6) 0; }
.figure__img { aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--c-sand); }
.figure__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 600ms var(--ease); }
.figure:hover .figure__img img { transform: scale(1.02); }
.figure figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--c-muted); display: flex; gap: var(--s-2); }
.figure figcaption::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--c-gold); margin-top: 0.7em; }

/* Tipos de productos: lista de definiciones editorial */
.types { margin: var(--s-5) 0 0; display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.type { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--c-line); }
.type__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-milk); border: 1px solid var(--c-line); color: var(--c-wine-700); }
.type h3 { margin: 0 0 var(--s-2); font-size: var(--fs-h4); }
.type p { margin: 0; }
.type p + p { margin-top: var(--s-2); }

/* Guía numerada para comparar */
.steps { list-style: none; padding: 0; margin: var(--s-5) 0 0; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-6); }
.steps li { counter-increment: step; margin: 0; padding: var(--s-5) 0; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); }
.steps li + li { margin-top: 0; }
.step__badge { position: relative; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--c-wine-50); color: var(--c-wine-800); display: grid; place-items: center; }
.step__badge::after { content: counter(step); position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-wine-800); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--fs-h4); margin: 0 0 6px; }
.steps p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Ejemplo de cálculo */
.calc { border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; margin: var(--s-6) 0; font-variant-numeric: tabular-nums; }
.calc__head { background: var(--c-milk); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--c-line); font-weight: 700; color: var(--c-wine-800); display: flex; gap: var(--s-2); align-items: center; }
.calc__head svg.i { color: var(--c-gold); }
.calc__body { padding: var(--s-5); font-size: var(--fs-sm); }
.calc__rows { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-4); }
.calc__rows dt { color: var(--c-muted); }
.calc__rows dd { margin: 0; text-align: right; font-weight: 700; }
.calc__rows .total { border-top: 1px solid var(--c-line); padding-top: var(--s-2); color: var(--c-wine-800); font-weight: 800; }
.calc__body p:last-child { margin-bottom: 0; color: var(--c-muted); }

/* 10. FAQ ----------------------------------------------------------------- */
.faq { padding: var(--section-y) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__intro h2 { font-family: var(--f-serif); font-weight: 500; margin: var(--s-4) 0; }
.faq__list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 36px; gap: var(--s-4); align-items: center; padding: var(--s-5) 0; font-weight: 700; font-size: var(--fs-lg); color: var(--c-ink); line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-wine-800); }
.faq-item summary .plus { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-line); display: grid; place-items: center; color: var(--c-wine-700); background: var(--c-white); transition: transform var(--dur) var(--ease), background var(--dur); }
.faq-item[open] summary .plus { transform: rotate(180deg); background: var(--c-wine-50); }
.faq-item__body { padding: 0 var(--s-8) var(--s-5) 0; animation: fadeIn var(--dur) var(--ease); }
.faq-item__body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__intro { position: static; } .faq-item__body { padding-right: 0; } }

/* 11. Cierre -------------------------------------------------------------- */
.closing { padding: 0 0 var(--section-y); }
.closing__box { background: var(--c-sand); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-6); align-items: center; position: relative; overflow: hidden; }
.closing__box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid var(--c-gold); border-radius: 50%; opacity: 0.7; }
.closing__box h2 { font-family: var(--f-serif); font-weight: 500; margin: var(--s-4) 0; }
.closing__box p { margin: 0; max-width: 58ch; }
.closing__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); position: relative; z-index: 1; }
@media (max-width: 860px) { .closing__box { grid-template-columns: 1fr; } }

/* 12. Pie de página ------------------------------------------------------- */
.site-footer { background: #2A2426; color: #E9E1DC; padding: var(--s-8) 0 var(--s-6); font-size: var(--fs-sm); }
.site-footer a { color: #F2E7DD; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--c-gold); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3.6fr); gap: var(--s-6); }
.footer__brand .logo { color: #fff; }
.footer__brand .logo em { color: var(--c-gold); }
.footer__brand .logo__mark { box-shadow: 0 0 0 3px #3B3336; }
.footer__brand p { margin-top: var(--s-4); color: #CFC4BE; max-width: 36ch; }
.footer__h { font-size: var(--fs-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; font-weight: 800; color: var(--c-gold); margin: 0 0 var(--s-4); }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li + li { margin-top: var(--s-2); }
.footer__list a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; gap: var(--s-2); }
.footer__list a:hover { text-decoration: underline; }
.footer__list a { max-width: 100%; }
.footer__list a span { min-width: 0; overflow-wrap: anywhere; }
.footer__legal address { font-style: normal; color: #CFC4BE; line-height: 1.6; }
.footer__legal strong { color: #fff; font-weight: 700; display: block; margin-bottom: var(--s-2); line-height: 1.45; }
.disclaimer { margin-top: var(--s-7); border: 1px solid #4A3F43; border-left: 3px solid var(--c-gold); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); background: #322B2E; }
.disclaimer h2 { color: #fff; font-family: var(--f-serif); font-weight: 500; font-size: var(--fs-h3); display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-3); }
.disclaimer h2 svg.i { color: var(--c-gold); }
.disclaimer p { color: #E1D7D1; margin-bottom: var(--s-3); max-width: 110ch; line-height: 1.6; }
.disclaimer p:last-child { margin-bottom: 0; }
.footer__bottom { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid #4A3F43; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); color: #BFB3AD; font-size: var(--fs-xs); line-height: 1.6; }
.footer__bottom p { margin: 0; max-width: 90ch; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .disclaimer { padding: var(--s-5) var(--s-4); } }

/* 13. Páginas legales ----------------------------------------------------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 var(--s-7); border-bottom: 1px solid var(--c-line); }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); margin: var(--s-4) 0; max-width: 20ch; }
.page-hero p { max-width: 62ch; color: var(--c-muted); margin: 0; }
.crumbs { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--s-5); }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.legal { padding: var(--s-8) 0 var(--section-y); }
.legal__layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal__body { max-width: var(--measure); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 56px); }
.legal__body h2 { font-size: var(--fs-h3); margin: var(--s-7) 0 var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body h3 { font-size: var(--fs-h4); margin: var(--s-5) 0 var(--s-2); }
.legal__body li::marker { color: var(--c-gold); }
.legal__aside { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-sm); }
.aside-card { background: var(--c-sand); border-radius: var(--r-lg); padding: var(--s-5); }
.aside-card h2 { font-size: var(--fs-h4); margin: 0 0 var(--s-3); }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li + li { margin-top: var(--s-1); }
.aside-card a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; font-weight: 600; color: var(--c-wine-800); }
.aside-card a[aria-current="page"] { color: var(--c-ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--c-gold); }
.data-list { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); margin: var(--s-4) 0; }
.data-list dt { color: var(--c-muted); font-weight: 600; }
.data-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .data-list { grid-template-columns: 1fr; gap: 0; } .data-list dd { margin-bottom: var(--s-3); } }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); margin: var(--s-5) 0; }
.contact-card { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-milk); text-decoration: none; color: var(--c-ink); transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur); }
a.contact-card:hover { border-color: var(--c-wine-700); transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--c-ink); }
.contact-card svg.i { color: var(--c-wine-700); width: 24px; height: 24px; }
.contact-card span { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.contact-card strong { font-size: var(--fs-base); overflow-wrap: break-word; color: var(--c-wine-800); }
@media (max-width: 960px) { .legal__layout { grid-template-columns: minmax(0, 1fr); } .legal__aside { position: static; } }

/* 14. Movimiento ---------------------------------------------------------- */
.to-top { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-wine-800); display: grid; place-items: center; box-shadow: var(--sh-2); text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--dur), transform var(--dur), visibility var(--dur); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--c-wine-900); border-color: var(--c-wine-700); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print {
  .site-header, .to-top, .toolbar, .cell-actions .btn { display: none !important; }
  body { background: #fff; }
}
