/* =============================================================
   Nido · hoja de estilos
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Base cálida */
  --bg: #FBF7F2;
  --bg-2: #F5EEE5;
  --surface: #FFFDFA;
  --ink: #3A2E28;
  --ink-2: #6B5C53;
  --ink-3: #9A8A7F;
  --line: #EADFD3;
  --line-2: #DDD0C2;

  /* Acentos */
  --accent: #C0765A;          /* terracota suave */
  --accent-hover: #A9634A;
  --accent-ink: #FFF8F2;
  --cacao: #3F322B;
  --cacao-ink: #FBF3EA;

  /* Verde de marca (plantas, calma) */
  --leaf: #9BB88E;            /* hoja pastel (logo, mitad clara) */
  --leaf-2: #6F9463;          /* logo, mitad profunda */
  --leaf-fill: #CFE0C3;       /* relleno de hojas en ilustraciones */
  --green-ink: #4F6E49;       /* texto verde legible sobre crema */
  --green-soft: #EEF3E8;      /* fondos de sección verdes */
  --mint: #DDEEE4;

  /* Pasteles */
  --peach: #FBE2D0;
  --butter: #F8EBC3;
  --sage: #DDE7D4;
  --blush: #F6DEDA;
  --sky: #DCE8EF;
  --lavender: #E6E0F1;
  --linen: #EFE5D8;

  /* Tiers */
  --tier-S: #F2D27A;
  --tier-A: #BFD8B0;
  --tier-B: #BCD5E6;
  --tier-C: #EDC6CB;
  --tier-ink: #3A2E28;

  /* Series de gráficos */
  --c1: #C0765A;
  --c2: #6F8F6C;
  --c3: #6C8FB0;
  --c4: #9A77B5;

  --good: #5E8A5A;
  --good-bg: #E3EEDD;
  --bad: #B0625F;
  --bad-bg: #F8E2E0;

  --ilus-ink: #4A3A32;
  --ilus-fill: rgba(255, 255, 255, 0.62);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(74, 52, 38, .05), 0 2px 8px rgba(74, 52, 38, .04);
  --shadow: 0 2px 6px rgba(74, 52, 38, .05), 0 12px 32px -8px rgba(74, 52, 38, .12);
  --shadow-lg: 0 4px 10px rgba(74, 52, 38, .06), 0 28px 60px -18px rgba(74, 52, 38, .22);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* Modo atardecer (oscuro cálido) */
:root[data-theme="dusk"] {
  --bg: #211A16;
  --bg-2: #2A221D;
  --surface: #2E2520;
  --ink: #F4EADF;
  --ink-2: #CDBDAF;
  --ink-3: #9A8B7F;
  --line: #43372F;
  --line-2: #54463C;
  --accent: #E29F80;
  --accent-hover: #EDB396;
  --accent-ink: #2A1E18;
  --cacao: #F1E4D6;
  --cacao-ink: #2A211C;
  --leaf: #9DBC8F;
  --leaf-2: #779B69;
  --leaf-fill: #465640;
  --green-ink: #AFCBA2;
  --green-soft: #262C22;
  --mint: #2E3B34;
  --peach: #4B372D;
  --butter: #4A4130;
  --sage: #36402F;
  --blush: #4A3334;
  --sky: #2F3C44;
  --lavender: #3B3547;
  --linen: #40362D;
  --tier-S: #E0BD5E;
  --tier-A: #A3C394;
  --tier-B: #9DBBD0;
  --tier-C: #D6A8AE;
  --c1: #E29F80;
  --c2: #A3C394;
  --c3: #9DBBD0;
  --c4: #C3A6DA;
  --good: #A3C394;
  --good-bg: #313A2C;
  --bad: #E2A09C;
  --bad-bg: #452D2C;
  --ilus-ink: #F1E4D6;
  --ilus-fill: rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow: 0 2px 6px rgba(0, 0, 0, .2), 0 12px 32px -8px rgba(0, 0, 0, .45);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, .25), 0 28px 60px -18px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
/* grano de papel muy sutil (fondo en mosaico: se pinta una vez, no en cada scroll) */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .28 0 0 0 .02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header { z-index: 50; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.015em; font-weight: 500; }
::selection { background: var(--leaf-fill); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1[tabindex="-1"]:focus { outline: none; }
input, select { font: inherit; color: inherit; }
kbd { font-family: var(--sans); font-size: .72rem; padding: .15em .5em; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-3); background: var(--bg); }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--cacao); color: var(--cacao-ink); z-index: 9999; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
html:not(.js) .js-only { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
/* los hijos de grid no deben ensancharse por su contenido (evita desbordes en móvil) */
.hero-inner > *, .ficha-hero > *, .method > *, .guide-hero > *, .guide-layout > *, .score-grid > *,
.cmp-top > *, .imp-hero > *, .imp-item > *, .g-product > *, .tl-row > * { min-width: 0; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; flex: none; border: 1px solid rgba(0,0,0,.06); }

.bg-peach { background: var(--peach); }
.bg-butter { background: var(--butter); }
.bg-sage { background: var(--sage); }
.bg-blush { background: var(--blush); }
.bg-sky { background: var(--sky); }
.bg-lavender { background: var(--lavender); }
.bg-linen { background: var(--linen); }
.bg-soft-peach { background: color-mix(in srgb, var(--peach) 45%, var(--surface)); }
.bg-soft-butter { background: color-mix(in srgb, var(--butter) 45%, var(--surface)); }
.bg-soft-sage { background: color-mix(in srgb, var(--sage) 45%, var(--surface)); }
.bg-soft-blush { background: color-mix(in srgb, var(--blush) 45%, var(--surface)); }
.bg-soft-sky { background: color-mix(in srgb, var(--sky) 45%, var(--surface)); }
.bg-soft-lavender { background: color-mix(in srgb, var(--lavender) 45%, var(--surface)); }
.bg-soft-linen { background: color-mix(in srgb, var(--linen) 45%, var(--surface)); }

/* =============================================================
   4. Tipografía
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--green-ink);
}
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow .ic { width: 1.05em; height: 1.05em; }
.sec-title, .page-title, .hero-title, .list-title, .ficha-title, .cta-title {
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 500;
}
.sec-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-top: .35rem; }
.page-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-top: .5rem; max-width: 20ch; }
em { font-style: italic; }
.sec-title em, .page-title em, .hero-title em, .list-title em { color: var(--green-ink); font-weight: 400; }
.sec-sub, .page-sub { color: var(--ink-2); margin-top: .7rem; max-width: 62ch; font-size: 1.04rem; }
.h-sm { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .6rem; font-family: var(--sans); letter-spacing: 0; }

.prose { font-size: 1.06rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.prose p b, .prose li b { color: var(--ink); }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { padding-left: 1.2rem; color: var(--ink-2); }
.prose ul li + li { margin-top: .45rem; }
.prose-narrow { max-width: 760px; }

/* =============================================================
   5. Componentes
   ============================================================= */

/* Botones */
.btn {
  --b-bg: var(--surface); --b-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.1;
  background: var(--b-bg); color: var(--b-ink); border: 1px solid transparent; white-space: nowrap;
  transition: transform .35s var(--ease-bounce), background-color .25s, box-shadow .3s var(--ease-out), border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.03rem; }
.btn-ink { --b-bg: var(--cacao); --b-ink: var(--cacao-ink); box-shadow: var(--shadow-sm); }
.btn-ink:hover { box-shadow: var(--shadow); }
.btn-amazon { --b-bg: var(--accent); --b-ink: var(--accent-ink); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-amazon:hover { --b-bg: var(--accent-hover); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-soft { --b-bg: var(--surface); border-color: var(--line-2); }
.btn-soft:hover { border-color: var(--ink-3); }
.btn-soft[aria-pressed="true"] { --b-bg: var(--cacao); --b-ink: var(--cacao-ink); border-color: var(--cacao); }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center; color: var(--ink);
  transition: background-color .25s, transform .3s var(--ease-bounce), color .2s;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn .ic { width: 21px; height: 21px; }
.icon-btn-lg { width: 52px; height: 52px; border: 1px solid var(--line-2); background: var(--surface); }
.icon-btn[aria-pressed="true"], .card-fav[aria-pressed="true"] { color: var(--accent); }
.icon-btn[aria-pressed="true"] .ic path, .card-fav[aria-pressed="true"] .ic path { fill: currentColor; }
.count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.count[hidden] { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: border-color .2s, color .2s, background-color .2s, transform .3s var(--ease-bounce);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }
.chip .ic { width: 1em; height: 1em; color: var(--green-ink); }
.chip small { color: var(--ink-3); font-size: .78em; }
.chip.is-active small { color: inherit; opacity: .7; }
.chip.is-active { background: var(--cacao); color: var(--cacao-ink); border-color: var(--cacao); }
.chip-sm { padding: .3rem .7rem; font-size: .82rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }

.chip-btn {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line-2); background: var(--surface); transition: all .2s;
}
.chip-btn .ic { width: 15px; height: 15px; }
.chip-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.chip-btn[aria-pressed="true"] { background: var(--cacao); color: var(--cacao-ink); border-color: var(--cacao); }

.pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 6px; }
.pill-sample { background: var(--butter); color: #7A6326; }
:root[data-theme="dusk"] .pill-sample { color: #F2DFA6; }
.pill-sello { display: inline-flex; align-items: center; gap: .3rem; background: var(--green-soft); color: var(--green-ink); text-decoration: none; }
.pill-sello .ic { width: 13px; height: 13px; stroke-width: 2.2; }
a.pill-sello:hover { background: var(--mint); }
:root[data-theme="dusk"] .pill-sello { background: rgba(160, 200, 160, .18); color: #CFE6CC; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--ink); white-space: nowrap; }
.link-arrow .ic { transition: transform .3s var(--ease-out); width: 1.05em; height: 1.05em; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* Tier */
.tier-badge {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--tier-ink);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.07);
}
.tier-S, .tier-bg-S { background: var(--tier-S); }
.tier-A, .tier-bg-A { background: var(--tier-A); }
.tier-B, .tier-bg-B { background: var(--tier-B); }
.tier-C, .tier-bg-C { background: var(--tier-C); }
.tier-badge-lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.5rem; }
.tier-name { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-weight: 600; color: var(--tier-ink); }
.tier-txt-S { background: var(--tier-S); } .tier-txt-A { background: var(--tier-A); } .tier-txt-B { background: var(--tier-B); } .tier-txt-C { background: var(--tier-C); }

/* Nota */
.nota-chip {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: baseline; gap: 1px;
  padding: .35rem .6rem; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm);
  font-family: var(--serif); color: var(--ink);
}
.nota-chip b { font-size: 1.12rem; font-weight: 600; }
.nota-chip small { font-size: .72rem; color: var(--ink-3); font-family: var(--sans); }
.nota-pill { display: inline-flex; align-items: baseline; gap: 2px; padding: .25rem .6rem; border-radius: 10px; background: var(--bg-2); font-size: .8rem; color: var(--ink-3); }
.nota-pill b { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 600; }

.nota-ring { position: relative; width: 96px; height: 96px; flex: none; display: grid; place-items: center; }
.nota-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nr-track { fill: none; stroke: var(--line); stroke-width: 8; }
.nr-bar { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease-out); }
.nr-val { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; }
.nota-sm { width: 62px; height: 62px; }
.nota-sm .nr-val { font-size: 1.2rem; }

/* Precio */
.price { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.price-old { color: var(--ink-3); font-size: .85rem; margin-left: .45rem; }
.price-off { margin-left: .4rem; font-size: .74rem; font-weight: 700; color: var(--good); background: var(--good-bg); padding: .12rem .42rem; border-radius: 6px; vertical-align: 2px; }
.price-na { font-size: .9rem; font-family: var(--sans); color: var(--ink-2); }

/* Ilustraciones */
.ilus { color: var(--ilus-ink); width: 56%; height: auto; }
.ilus-f { fill: var(--ilus-fill); }
.ilus-fl { fill: var(--accent); stroke: var(--accent); }
.ilus-lf { fill: var(--leaf-fill); }
.ilus-sh { fill: currentColor; stroke: none; opacity: .09; }
.ilus-xs { width: 38px; height: 38px; }
.ilus-sm { width: 70%; }
.ilus-xl { width: 58%; }
.ilus-room { width: 64px; height: 64px; }
.ilus-hero { width: clamp(120px, 18vw, 200px); height: auto; flex: none; }

/* Tarjeta de producto */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card[hidden] { display: none; }
.card-visual { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; }
.card-visual .ilus { width: 48%; transition: transform .7s var(--ease-out); }
.card:hover .card-visual .ilus { transform: scale(1.06) rotate(-2deg); }

.card-visual .tier-badge { position: absolute; top: 12px; left: 12px; }
.card-fav {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-bounce), color .2s;
}
.card-fav:hover { transform: scale(1.1); color: var(--accent); }
.card-fav .ic { width: 19px; height: 19px; }
.card-fav.pop { animation: pop .45s var(--ease-bounce); }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.2rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.card-title { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.24rem; font-weight: 500; line-height: 1.2; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-desc { color: var(--ink-2); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.card-price { display: flex; align-items: center; flex-wrap: wrap; row-gap: .2rem; }

/* Fotos de producto: siempre dentro de su recuadro (posición absoluta = altura fiable) */
.card-visual, .hero-tile, .ficha-visual, .imp-vis, .gp-vis, .tl-ilus, .sr-vis, .cmp-prod-vis, .tray-thumbs span, .mc-vis { position: relative; }
/* La foto se muestra TAL CUAL (sin filtros ni fusiones de color), sobre una tarjeta
   blanca redondeada tipo polaroid. El pastel queda como marco alrededor. */
:is(.card-visual, .hero-tile, .ficha-visual, .imp-vis, .gp-vis, .tl-ilus, .sr-vis, .cmp-prod-vis, .tray-thumbs span, .mc-vis) > img {
  --m: 7%;
  position: absolute; top: var(--m); left: var(--m); width: calc(100% - 2 * var(--m)); height: calc(100% - 2 * var(--m));
  object-fit: contain; background: #fff; border-radius: 16px; padding: 5%;
  box-shadow: 0 1px 2px rgba(74, 52, 38, .06), 0 6px 18px -10px rgba(74, 52, 38, .25);
  transition: transform .6s var(--ease-out);
}
.card:hover .card-visual > img { transform: scale(1.02); }
.card-visual > img { --m: 6%; border-radius: 18px; }
.ficha-visual > img { --m: 6%; border-radius: 24px; padding: 6%; }
.ficha-visual:has(.g-thumbs) > img { height: calc(100% - 12% - 76px); }
.tl-ilus > img, .sr-vis > img, .mc-vis > img { --m: 8%; border-radius: 9px; padding: 3px; box-shadow: none; }
.cmp-prod-vis > img { --m: 8%; border-radius: 13px; padding: 4px; }
.tray-thumbs span > img { --m: 10%; border-radius: 50%; padding: 2px; box-shadow: none; }
.tm-chip img { width: 34px; height: 34px; flex: none; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
/* Las etiquetas de nivel y nota quedan por encima de la foto */
.card-visual .tier-badge, .card-visual .nota-chip, .hero-tile .tier-badge, .hero-tile .nota-chip,
.ficha-visual .tier-badge, .imp-ribbon, .gp-vis .tier-badge { z-index: 2; }

/* Scroller horizontal */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 300px); gap: 20px;
  overflow-x: auto; overflow-y: visible; padding: .5rem var(--gutter) 1.8rem; margin-inline: calc(var(--gutter) * -1);
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.scroller > * { scroll-snap-align: start; }

/* Sección cabecera */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(24px, 3vw, 40px) clamp(56px, 7vw, 90px); }
.section-tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-green { background: var(--green-soft); border-block: 1px solid color-mix(in srgb, var(--leaf) 30%, transparent); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }

/* Migas */
.crumbs { padding-top: 1.3rem; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .84rem; color: var(--ink-3); }
.crumbs li + li::before { content: "·"; margin-right: .4rem; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); }

.placeholder-box {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-2); color: var(--ink-2); font-size: .95rem; background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.placeholder-box .ic { color: var(--accent); margin-top: .15rem; }
.empty-note { padding: 2rem; text-align: center; color: var(--ink-3); }

/* =============================================================
   6. Secciones
   ============================================================= */

/* Barra de prototipo */
.proto-bar { background: var(--butter); color: #6E5A22; text-align: center; font-size: .78rem; font-weight: 600; padding: .4rem 1rem; letter-spacing: .02em; }
.proto-bar .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: .4rem; stroke-width: 2.2; }
:root[data-theme="dusk"] .proto-bar { color: #F2DFA6; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .4s;
}
@supports (backdrop-filter: blur(12px)) {
  .site-header { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(74, 52, 38, .35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.site-header .logo { flex: none; }
.logo-mark { width: 34px; height: 34px; flex: none; color: var(--ink); transition: transform .5s var(--ease-bounce); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.main-nav { display: flex; align-items: center; gap: .15rem; margin-left: .5rem; }
.main-nav > a, .nav-drop summary {
  display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .85rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; cursor: pointer; list-style: none;
  white-space: nowrap;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.main-nav > a:hover, .nav-drop summary:hover, .nav-drop[open] summary { background: var(--bg-2); color: var(--ink); }
.main-nav > a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav-drop { position: relative; }
.nav-drop summary .ic { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.nav-drop[open] summary .ic { transform: rotate(180deg); }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  width: 470px; padding: 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: dropIn .35s var(--ease-out);
}
.drop-panel a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; font-size: .94rem; color: var(--ink-2); }
.drop-panel a:hover { background: var(--bg-2); color: var(--ink); }
.drop-title { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: 0 .6rem .4rem; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav-cta { margin-left: .5rem; position: relative; }
.nav-cta .ic { width: 17px; height: 17px; }
.nav-cta .count { top: -6px; right: -6px; background: var(--accent); }
[data-theme-toggle] .i-sun { display: none; }
:root[data-theme="dusk"] [data-theme-toggle] .i-sun { display: block; }
:root[data-theme="dusk"] [data-theme-toggle] .i-moon { display: none; }
.menu-btn { display: none; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1; margin-top: 1rem; max-width: 12ch; letter-spacing: -.03em; }
.hero-title em { position: relative; white-space: nowrap; }
.hero-title em::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: -.08em; height: .32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14c40-9 90-12 194-6' fill='none' stroke='%23F2D27A' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: .85;
}
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-2); margin-top: 1.4rem; max-width: 52ch; }
.hero-search {
  margin-top: 2rem; width: 100%; max-width: 540px; display: flex; align-items: center; gap: .8rem; text-align: left;
  padding: .95rem 1rem .95rem 1.3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-3); box-shadow: var(--shadow); transition: box-shadow .3s, border-color .3s, transform .3s var(--ease-out);
}
.hero-search:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hero-search > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-search .ic { color: var(--accent); width: 22px; height: 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.hero-stats { list-style: none; padding: 0; display: flex; gap: clamp(20px, 3vw, 44px); margin-top: 2.4rem; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--ink-3); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
.hero-blob { position: absolute; border-radius: 50%; }
.hb-1 { inset: 8% 6% 6% 10%; background: radial-gradient(circle at 35% 35%, var(--blush), transparent 70%), radial-gradient(circle at 70% 70%, var(--sage), transparent 65%); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; animation: blob 18s ease-in-out infinite alternate; will-change: transform; }
.hb-2 { width: 28%; height: 28%; right: 2%; top: 4%; background: var(--butter); opacity: .8; }
.hero-tile {
  position: absolute; display: grid; place-items: center; border-radius: 30px; box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface); transition: transform .6s var(--ease-out), box-shadow .6s;
  animation: float 7s ease-in-out infinite;
}
.hero-tile .ilus { width: 58%; }
.hero-tile .tier-badge { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; font-size: .95rem; }
.hero-tile:hover { transform: translateY(-8px) rotate(0deg) scale(1.03) !important; animation-play-state: paused; z-index: 5; }
.ht-0 { width: 46%; aspect-ratio: 1; left: 4%; top: 6%; rotate: -5deg; }
.ht-1 { width: 40%; aspect-ratio: 1; right: 4%; top: 18%; rotate: 4deg; animation-delay: -2s; }
.ht-2 { width: 38%; aspect-ratio: 1; left: 14%; bottom: 4%; rotate: 3deg; animation-delay: -4s; }
.ht-3 { width: 34%; aspect-ratio: 1; right: 10%; bottom: 10%; rotate: -6deg; animation-delay: -1s; }

/* Franja con foto a todo el ancho (toque humano bajo el hero) */
.cozy-banner {
  position: relative; display: flex; align-items: center; min-height: clamp(460px, 48vw, 640px);
  overflow: hidden; background: var(--bg-2); isolation: isolate;
}
.cb-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2;
  transform: scale(1.06); transition: transform 1.8s var(--ease-out);
}
.cozy-banner.is-visible .cb-img, html:not(.js) .cb-img { transform: none; }
.cozy-banner::before { /* velo suave a la izquierda para que el texto respire, sin alterar la foto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(40, 30, 24, .38) 0%, rgba(40, 30, 24, .12) 45%, transparent 70%);
}
html.js .cozy-banner.reveal { opacity: 1; transform: none; }
.cb-inner { padding-block: clamp(40px, 6vw, 80px); }
.cb-card {
  max-width: 520px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-lg);
  border: 1px solid color-mix(in srgb, var(--leaf) 25%, transparent);
}
@supports (backdrop-filter: blur(12px)) {
  .cb-card { background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.cb-title { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; margin-top: .6rem; }
.cb-title em { color: var(--green-ink); font-weight: 400; }
.cb-sub { color: var(--ink-2); margin-top: .9rem; font-size: 1.02rem; }
.cb-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.cb-credit {
  position: absolute; right: 14px; bottom: 12px; font-size: .72rem; color: #fff; opacity: .85;
  background: rgba(30, 22, 18, .35); padding: .2rem .55rem; border-radius: 99px;
}
.cb-credit:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 719px) {
  .cozy-banner { min-height: 0; flex-direction: column; align-items: stretch; }
  .cb-img { position: relative; height: 300px; object-position: 70% 50%; }
  .cozy-banner::before { display: none; }
  .cb-inner { padding-block: 0 24px; margin-top: -60px; }
  .cb-credit { top: 12px; right: 12px; bottom: auto; }
}

/* Cursor de marca (solo ratón; oculto hasta el primer movimiento — gotcha A.3) */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input, textarea, select, [contenteditable="true"]) { cursor: auto !important; }
.cur-dot, .cur-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; opacity: 0; transition: opacity .3s; will-change: transform; }
.cur-dot[popover], .cur-ring[popover] { inset: auto; top: 0; left: 0; padding: 0; border: 0; overflow: visible; color: inherit; }
.cur-ring[popover] { background: transparent; }
html.cursor-ready .cur-dot, html.cursor-ready .cur-ring { opacity: 1; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); }
.cur-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.cur-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--green-ink); opacity: .5;
  transition: transform .45s var(--ease-out), background-color .3s, border-color .3s, opacity .3s;
}
.cur-label { position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px/1 var(--sans); letter-spacing: .04em; color: #fff; opacity: 0; transition: opacity .25s; }
html.cur-link .cur-ring::before { transform: scale(1.45); border-color: var(--leaf); background: color-mix(in srgb, var(--leaf) 22%, transparent); opacity: 1; }
html.cur-card .cur-ring::before { transform: scale(1.9); border-color: var(--green-ink); background: var(--green-ink); opacity: .92; }
html.cur-card .cur-label { opacity: 1; }
html.cur-card .cur-dot { opacity: 0; }
:root[data-theme="dusk"] .cur-label { color: #1d2419; }
html.cur-down .cur-ring::before { transform: scale(.8); }
html.cur-text .cur-dot, html.cur-text .cur-ring { opacity: 0; }

/* Estancias */
.rooms { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.room-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s;
}
.room-photo { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--bg-2); }
.room-img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.room-body { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: 1.5rem 1.1rem 1.1rem; }
.room-ic {
  position: absolute; top: -24px; left: 14px; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--surface), var(--shadow-sm);
}
.room-card.bg-peach .room-ic { background: var(--peach); } .room-card.bg-sage .room-ic { background: var(--sage); }
.room-card.bg-lavender .room-ic { background: var(--lavender); } .room-card.bg-sky .room-ic { background: var(--sky); }
.room-card.bg-butter .room-ic { background: var(--butter); } .room-card.bg-blush .room-ic { background: var(--blush); }
.room-ic .ilus { width: 34px; height: 34px; transition: transform .6s var(--ease-bounce); }
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.room-card:hover .room-img { transform: scale(1.06); }
.room-card:hover .room-ic .ilus { transform: rotate(-8deg) scale(1.1); }
.room-name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.35rem; font-weight: 500; }
.room-count { font-size: .84rem; color: var(--ink-2); }

/* Cabecera con foto dentro de cada estancia (reutiliza la franja .cozy-banner) */
.est-hero { min-height: clamp(420px, 42vw, 560px); }
.est-hero .cb-img { transform: none; }
.est-card { position: relative; max-width: 560px; padding-top: clamp(40px, 4vw, 52px); }
.est-ic { position: absolute; top: -26px; left: clamp(24px, 3vw, 40px); width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; box-shadow: var(--shadow); }
.est-ic .ilus { width: 40px; height: 40px; }
.est-card .list-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* Tier board */
.tier-board { display: grid; gap: 10px; }
.tl-row { display: grid; grid-template-columns: 150px 1fr; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 112px; }
.tl-label { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 1rem 1.1rem; color: var(--tier-ink); }
.tl-label b { font-family: var(--serif); font-size: 2.3rem; line-height: 1; font-weight: 700; }
.tl-label span { font-size: .82rem; font-weight: 600; margin-top: .2rem; }
.tl-items { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; align-content: center; }
.tl-empty { color: var(--ink-3); padding: .5rem; }
.tl-item {
  position: relative; width: 120px; border-radius: 16px; padding: 8px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform .35s var(--ease-bounce), box-shadow .3s; text-align: center;
}
.tl-item:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: var(--shadow); z-index: 2; }
.tl-item[hidden] { display: none; }
.tl-ilus { width: 64px; height: 64px; display: grid; place-items: center; }

.tl-name { font-size: .74rem; font-weight: 600; line-height: 1.2; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-nota { position: absolute; top: 6px; right: 6px; font-family: var(--serif); font-size: .78rem; font-weight: 700; background: var(--surface); border-radius: 7px; padding: 0 .35rem; }
.tier-board-mini .tl-row { grid-template-columns: 120px 1fr; min-height: 96px; }
.tier-board-mini .tl-item { width: 104px; }
.tier-board-mini .tl-ilus { width: 52px; height: 52px; }
.tier-legend { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.tier-legend li { display: flex; gap: .8rem; align-items: flex-start; }
.tier-legend p { font-size: .87rem; color: var(--ink-2); line-height: 1.45; }
.tier-legend b { font-size: .95rem; }

/* Segmented */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg-wrap { flex-wrap: wrap; border-radius: 22px; margin-bottom: 1.2rem; }
.seg-btn { padding: .45rem .95rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: background-color .25s, color .25s; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.sort { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-3); }
.sort select, .field select {
  appearance: none; padding: .55rem 2.2rem .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A8A7F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px;
  color: var(--ink); font-weight: 500; cursor: pointer;
}

/* Método */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.axes { list-style: none; padding: 0; margin: 1.8rem 0 2rem; display: grid; gap: 1rem; }
.axes li { display: flex; gap: .9rem; align-items: flex-start; }
.axes p { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.ax-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--green-ink); flex: none; box-shadow: var(--shadow-sm); }
.method-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.mc-head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.mc-head > div { flex: 1; }
.mc-head b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; line-height: 1.2; }
.mc-head small { color: var(--ink-3); font-size: .8rem; }
.mc-vis { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }

/* Radar */
.radar { width: 100%; max-width: 440px; margin-inline: auto; height: auto; overflow: visible; }
.rd-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.rd-axis { stroke: var(--line); stroke-width: 1; }
.rd-area { fill: color-mix(in srgb, var(--c) 26%, transparent); stroke: var(--c); stroke-width: 2.4; stroke-linejoin: round; transition: opacity .3s; }
.rd-dot { fill: var(--surface); stroke: var(--c); stroke-width: 2.4; }
.rd-label { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.rd-val { font-family: var(--serif); font-weight: 700; fill: var(--ink); font-size: 14px; }

/* Guías */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s; }
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.guide-vis { height: 170px; display: grid; place-items: center; }
.guide-vis .ilus { width: 96px; height: 96px; transition: transform .7s var(--ease-bounce); }
.guide-card:hover .guide-vis .ilus { transform: scale(1.1) rotate(-4deg); }
.guide-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.guide-meta { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ink-3); }
.guide-meta .ic { width: 15px; height: 15px; }
.guide-title { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.32rem; line-height: 1.2; font-weight: 500; }

/* Listados */
.list-hero { padding-top: 1.2rem; }
.list-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); }
.list-title { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-top: .5rem; max-width: 18ch; }
.list-intro { margin-top: .9rem; color: var(--ink-2); max-width: 58ch; font-size: 1.05rem; }
.list-count { margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.page-hero { padding-block: clamp(24px, 4vw, 48px) clamp(16px, 2vw, 24px); }

/* Ficha */
.ficha-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-block: 1.6rem 3rem; align-items: start; }
.ficha-visual { position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 1; border-radius: var(--radius-lg); display: grid; place-items: center; overflow: hidden; }

.ficha-visual .tier-badge { position: absolute; top: 20px; left: 20px; }
.g-thumbs { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 8px; justify-content: center; }
.g-thumb { width: 60px; height: 60px; border-radius: 14px; background: #fff; padding: 4px; border: 2px solid transparent; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .3s var(--ease-bounce); }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; }
.g-thumb:hover { transform: translateY(-2px); }
.g-thumb.is-active { border-color: var(--green-ink); }

.imp-ribbon { position: absolute; top: 24px; right: 20px; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 99px; background: var(--surface); font-size: .82rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.imp-ribbon .ic { color: #D4A72C; width: 16px; height: 16px; }
.imp-ribbon .ic path { fill: currentColor; }
.ficha-meta { display: flex; align-items: center; gap: .6rem; }
.ficha-title { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: .6rem; line-height: 1.05; }
.ficha-brand { color: var(--ink-3); margin-top: .6rem; font-size: .95rem; }
.ficha-brand b { color: var(--ink-2); font-weight: 600; }
.verdict { display: flex; gap: 1.2rem; align-items: center; margin-top: 1.6rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.verdict-label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.verdict-quote { font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.35; margin-top: .3rem; }
.amz-rating { display: inline-flex; align-items: center; gap: .3rem; font-size: .84rem; color: var(--ink-2); margin-top: .4rem; }
.ficha-desc { margin-top: 1.4rem; font-size: 1.08rem; color: var(--ink-2); }
.buy-box { margin-top: 1.6rem; padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.buy-price .price { font-size: 1.9rem; }
.buy-note { font-size: .8rem; color: var(--ink-3); margin-top: .2rem; }
.buy-actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.buy-actions .btn-amazon { flex: 1; min-width: 180px; }
.buy-disc { display: flex; gap: .45rem; align-items: center; font-size: .78rem; color: var(--ink-3); margin-top: .9rem; }
.buy-disc .ic { width: 15px; height: 15px; }
.ficha-rooms { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.2rem; font-size: .88rem; color: var(--ink-3); }

.ficha-tabs { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); border-block: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) { .ficha-tabs { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.ficha-tabs .container { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding-block: .5rem; }
.ficha-tabs a { flex: none; padding: .45rem .95rem; border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.ficha-tabs a:hover, .ficha-tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.ficha-body { max-width: 920px; padding-top: 1rem; }
.ficha-sec { padding-block: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.ficha-sec > h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.3rem; }
.ideal-box { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); background: var(--blush); margin-top: 1.6rem !important; }
.ideal-box .ic { color: var(--accent); margin-top: .2rem; }
.ideal-box .ic path { fill: currentColor; }
.ideal-box p { color: var(--ink) !important; }
.score-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.score-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.score-bars { list-style: none; padding: 0; display: grid; gap: .95rem; margin-bottom: 1rem; }
.sb-row { display: grid; grid-template-columns: 150px 1fr 28px; gap: .8rem; align-items: center; }
.sb-name { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; }
.sb-name .ic { color: var(--green-ink); width: 17px; height: 17px; }
.sb-track { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.sb-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--tier-S), var(--accent)); transform-origin: left; }
html.js .score-bars:not(.is-visible) .sb-fill { transform: scaleX(0); }
.score-bars.is-visible .sb-fill { transform: scaleX(1); transition: transform 1.1s var(--ease-out); }
.sb-val { font-family: var(--serif); font-size: 1.05rem; text-align: right; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .96rem; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 42%; font-weight: 500; color: var(--ink-2); }
.spec-table td { font-weight: 600; }
.spec-table tr:nth-child(even) { background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
.na { color: var(--ink-3); font-weight: 400; }
.ficha-sec .muted { margin-top: .9rem; }

.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pc-col { padding: 1.3rem 1.4rem; border-radius: var(--radius); }
.pc-pros { background: var(--good-bg); }
.pc-cons { background: var(--bad-bg); }
.pc-col h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; font-weight: 700; margin-bottom: .9rem; font-family: var(--sans); letter-spacing: 0; }
.pc-col ul { list-style: none; padding: 0; display: grid; gap: .65rem; }
.pc-col li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; }
.pc-col li .ic, .pc-col h3 .ic { width: 18px; height: 18px; margin-top: .15rem; }
.pc-pros .ic { color: var(--good); }
.pc-cons .ic { color: var(--bad); }

.cta-band { margin-block: clamp(32px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); }
.cta-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: .3rem; }
.cta-price { margin-top: .3rem; }
.cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.buy-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; gap: .8rem; justify-content: space-between;
  padding: .7rem .7rem .7rem 1.1rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .5s var(--ease-out);
}
.buy-sticky.is-visible { transform: none; }
.bs-info { min-width: 0; display: flex; flex-direction: column; }
.bs-info b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-info .price { font-size: 1.05rem; }
.bs-info .price-old, .bs-info .price-off { display: none; }

/* Imprescindibles */
.imp-hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.progress-card { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.5rem 1.2rem 1.2rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 380px; }
.pg-ring { position: relative; width: 104px; height: 104px; flex: none; display: grid; place-items: center; }
.pg-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-ring .nr-bar { stroke: var(--good); }
.pg-ring span { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.progress-card b { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.progress-card p { font-size: .9rem; color: var(--ink-2); margin-top: .2rem; }
.imp-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.imp-item {
  display: grid; grid-template-columns: 56px 150px 1fr auto; gap: clamp(14px, 2vw, 28px); align-items: center;
  padding: 16px clamp(16px, 2vw, 28px) 16px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.imp-item:hover { box-shadow: var(--shadow); }
.imp-item.is-have { background: color-mix(in srgb, var(--good-bg) 70%, var(--surface)); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.imp-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; color: var(--ink-3); text-align: center; }
.imp-vis { aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; }

.imp-need { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.imp-title { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-top: .25rem; }
.imp-title a:hover { color: var(--accent); }
.imp-why { color: var(--ink-2); font-size: .95rem; margin-top: .4rem; max-width: 62ch; }
.imp-foot { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.imp-foot .tier-badge { width: 28px; height: 28px; font-size: .85rem; border-radius: 9px; }
.imp-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.have-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 99px; border: 1.5px dashed var(--line-2);
  font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: all .3s var(--ease-out); white-space: nowrap;
}
.have-btn .ic { width: 18px; height: 18px; opacity: .45; }
.have-btn:hover { border-color: var(--good); color: var(--good); }
.have-btn[aria-pressed="true"] { background: var(--good); border: 1.5px solid var(--good); color: #fff; }
:root[data-theme="dusk"] .have-btn[aria-pressed="true"] { color: #1d2419; }
.have-btn[aria-pressed="true"] .ic { opacity: 1; }

/* Tier maker */
.tier-maker { display: grid; gap: 14px; }
.tm-row { display: grid; grid-template-columns: 120px 1fr; min-height: 100px; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.tm-row.is-over, .tm-pool.is-over { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tm-row.is-target { cursor: pointer; }
.tm-row.is-target:hover { border-color: var(--accent); }
.tm-drop { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; align-content: center; min-height: 100px; }
.tm-pool { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 14px; min-height: 110px; background: color-mix(in srgb, var(--surface) 55%, transparent); transition: box-shadow .25s, border-color .25s; }
.tm-pool-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }
.tm-pool .tm-drop { padding: 0; min-height: 70px; }
.tm-chip {
  display: flex; align-items: center; gap: .5rem; padding: 6px 12px 6px 6px; border-radius: 14px; font-size: .8rem; font-weight: 600;
  cursor: grab; user-select: none; touch-action: manipulation; border: 2px solid transparent; transition: transform .25s var(--ease-bounce), box-shadow .25s, border-color .2s;
  max-width: 220px;
}
.tm-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tm-chip.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tm-chip.is-dragging { opacity: .4; }
.tm-chip .ilus { width: 34px; height: 34px; flex: none; }
.tm-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.tm-hint { font-size: .9rem; color: var(--ink-2); }
.tm-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.tm-match { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.tm-match b { font-family: var(--serif); font-size: 1.15rem; }

/* Comparador */
.cmp-pickers { display: grid; grid-template-columns: 220px repeat(4, 1fr); gap: 12px; align-items: end; margin-bottom: 2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--ink-3); min-width: 0; }
.field select { width: 100%; border-radius: 14px; padding-block: .75rem; }
.cmp-empty { text-align: center; padding: clamp(32px, 6vw, 72px) 1rem; border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--ink-2); }
.cmp-empty .ilus { width: 110px; margin: 0 auto 1rem; }
.cmp-empty b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--ink); margin-bottom: .3rem; }
.cmp-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.8rem; align-items: center; }
.cmp-radar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; }
.cmp-legend { display: grid; gap: .6rem; }
.cmp-legend-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cmp-legend-item i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.cmp-legend-item a { font-weight: 600; flex: 1; font-size: .95rem; }
.cmp-legend-item a:hover { color: var(--accent); }
.cmp-winner { font-size: .78rem; font-weight: 700; color: var(--good); background: var(--good-bg); padding: .2rem .5rem; border-radius: 7px; }
.cmp-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .94rem; }
.cmp-table th, .cmp-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp-table thead th { vertical-align: top; }
.cmp-table tbody th { text-align: left; font-weight: 500; color: var(--ink-2); width: 190px; background: color-mix(in srgb, var(--bg-2) 50%, transparent); }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table .is-best { background: var(--good-bg); color: var(--good); font-weight: 700; }
.cmp-table .cmp-group th { background: var(--bg-2); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; text-align: left; }
.cmp-prod { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.cmp-prod-vis { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; position: relative; }
.cmp-prod-vis .ilus { width: 66%; }
.cmp-prod-vis i { position: absolute; bottom: -4px; right: -4px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--surface); }
.cmp-prod a.cmp-name { font-family: var(--serif); font-weight: 500; font-size: 1rem; line-height: 1.2; }
.cmp-remove { font-size: .78rem; color: var(--ink-3); text-decoration: underline; }
.cmp-table .nota-big { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }

/* Mi lista */
.fav-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 1.6rem; }
.fav-summary b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }

/* Buscador */
.search-dialog { margin: 10vh auto auto; width: min(640px, calc(100% - 24px)); max-height: 76vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.search-dialog::backdrop { background: rgba(40, 30, 24, .35); backdrop-filter: blur(4px); }
.search-dialog[open] { animation: dropIn .35s var(--ease-out); }
.search-field { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.search-field .ic { color: var(--accent); width: 22px; height: 22px; }
.search-field input { flex: 1; border: 0; outline: 0; background: none; font-size: 1.1rem; min-width: 0; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { max-height: calc(76vh - 70px); overflow-y: auto; padding: .6rem; }
.sr-group { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: .7rem .8rem .3rem; }
.sr-item { display: flex; align-items: center; gap: .9rem; padding: .6rem .8rem; border-radius: 14px; }
.sr-item:hover, .sr-item.is-active { background: var(--bg-2); }
.sr-vis { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.sr-vis .ilus { width: 72%; }
.sr-txt { flex: 1; min-width: 0; }
.sr-txt b { display: block; font-weight: 600; font-size: .96rem; }
.sr-txt small { color: var(--ink-3); font-size: .82rem; }
.sr-nota { font-family: var(--serif); font-weight: 600; }
.sr-empty { padding: 1.4rem; text-align: center; color: var(--ink-3); }

/* Bandeja de comparación */
.cmp-tray {
  position: fixed; left: 50%; bottom: 18px; z-index: 45; transform: translate(-50%, 0); display: flex; align-items: center; gap: .8rem;
  padding: .55rem .55rem .55rem .9rem; border-radius: 999px; background: var(--cacao); color: var(--cacao-ink); box-shadow: var(--shadow-lg);
  animation: trayIn .5s var(--ease-out);
}
.cmp-tray[hidden] { display: none; }
.tray-thumbs { display: flex; }
.tray-thumbs span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--cacao); margin-left: -8px; }
.tray-thumbs span:first-child { margin-left: 0; }
.tray-thumbs .ilus { width: 70%; }
.tray-txt { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.tray-clear { font-size: .8rem; opacity: .7; text-decoration: underline; color: inherit; }
.cmp-tray .btn { --b-bg: var(--accent); --b-ink: var(--accent-ink); }

/* Toasts */
.toasts { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: grid; gap: .5rem; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .6rem; padding: .75rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; animation: toastIn .45s var(--ease-out); max-width: 360px; }
.toast .ic { color: var(--accent); }
.toast.out { animation: toastOut .35s var(--ease-out) forwards; }

/* Guía */
.guide-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: center; padding-block: 1.6rem 2.5rem; }
.guide-lead { font-size: 1.15rem; color: var(--ink-2); margin-top: 1.2rem; max-width: 60ch; }
.guide-hero .guide-meta { margin-top: 1.2rem; }
.guide-cover { aspect-ratio: 1; border-radius: var(--radius-lg); display: grid; place-items: center; }
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 3rem; }
.guide-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9rem; }
.guide-toc ol { list-style: none; padding: 0; display: grid; gap: .1rem; counter-reset: toc; }
.guide-toc ol a { display: block; padding: .4rem .6rem; border-radius: 9px; color: var(--ink-2); line-height: 1.35; border-left: 2px solid transparent; }
.guide-toc ol a:hover, .guide-toc ol a.is-active { color: var(--ink); background: var(--bg-2); }
.toc-disc { display: flex; gap: .5rem; margin-top: 1.4rem; padding: .8rem; border-radius: 12px; background: var(--bg-2); font-size: .8rem; color: var(--ink-3); }
.toc-disc a { text-decoration: underline; }
.toc-disc .ic { width: 16px; height: 16px; }
.guide-body { max-width: 740px; }
.g-block + .g-block, .g-product + .g-block, .g-block + .g-product { margin-top: 2.2rem; }
.g-product { display: grid; grid-template-columns: 170px 1fr; gap: 1.4rem; padding: 1.1rem; border-radius: var(--radius-lg); border: 1px solid var(--line); margin-block: 1.6rem !important; }
.gp-vis { position: relative; aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; }
.gp-vis .tier-badge { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; font-size: .85rem; border-radius: 9px; }

.gp-body { display: flex; flex-direction: column; gap: .45rem; }
.gp-body > * { margin: 0 !important; }
.gp-title { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.35rem; line-height: 1.2; color: var(--ink) !important; }
.gp-title a { text-decoration: none !important; color: inherit !important; }
.gp-why { font-size: .96rem; }
.gp-foot { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.gp-price .price { font-size: 1.1rem; }
.gp-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem !important; }
.gp-actions .btn { text-decoration: none !important; }
.gp-actions .btn-amazon { color: var(--accent-ink) !important; }
.gp-actions .btn-soft { color: var(--ink) !important; }
.faq { display: grid; gap: .6rem; }
.faq-item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; list-style: none; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform .35s var(--ease-out); color: var(--accent); }
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item p { padding: 0 1.2rem 1.1rem; }

/* Ko-fi */
.kofi-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem .5rem .8rem; margin-right: .35rem; border-radius: 999px;
  background: var(--mint); color: var(--green-ink); font-size: .88rem; font-weight: 600; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--leaf) 45%, transparent);
  transition: transform .35s var(--ease-bounce), background-color .25s, box-shadow .3s;
}
.kofi-btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--mint) 70%, var(--leaf-fill)); }
.kofi-btn .ic { width: 18px; height: 18px; }
.kofi-btn:hover .ic { animation: steam 1s ease-in-out; }
.kofi-short { display: none; }
.main-nav > a.nav-kofi-mobile { display: none; }

/* Plantas decorativas del hero */
.hero-plant { position: absolute; pointer-events: none; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite alternate; }
.hero-plant .ilus { width: 100%; }
.hp-1 { width: 24%; left: -8%; bottom: -6%; z-index: 3; }
.hp-2 { width: 22%; right: -4%; top: -8%; z-index: 0; animation-delay: -3s; }

/* Blog */
.blog-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.blog-chips { margin-bottom: 1.8rem; }
.blog-feat { margin-bottom: clamp(16px, 2vw, 24px); }
.guide-card-big { flex-direction: row; }
.guide-card-big .guide-vis { height: auto; min-height: 300px; flex: 0 0 44%; }
.guide-card-big .guide-vis .ilus { width: 150px; height: 150px; }
.guide-card-big .guide-body { justify-content: center; padding: clamp(24px, 3vw, 44px); gap: .9rem; }
.guide-card-big .guide-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.guide-excerpt { color: var(--ink-2); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcat-pill { display: inline-block; padding: .15rem .55rem; border-radius: 7px; font-size: .72rem; font-weight: 700; color: var(--ink); margin-right: .3rem; }
.share-btn { margin-top: 1.2rem; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.6rem !important; padding: 1.3rem 1.4rem; border-radius: var(--radius); background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--leaf) 30%, transparent); }
.author-box .logo-mark { width: 46px; height: 46px; flex: none; color: var(--ink); }
.author-box b { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.author-box p { font-size: .94rem; margin-top: .2rem; }

/* Radio lo-fi (vinilo) */
.radio { position: fixed; right: 18px; bottom: 18px; z-index: 46; }
.vinyl {
  position: relative; display: block; width: 64px; height: 64px; border-radius: 50%; padding: 0;
  box-shadow: 0 10px 26px -8px rgba(40, 28, 20, .45), 0 0 0 4px var(--surface);
  transition: transform .4s var(--ease-bounce), box-shadow .3s;
}
.vinyl:hover { transform: scale(1.07); }
.vinyl-disc { width: 64px; height: 64px; animation: spin 3.6s linear infinite; animation-play-state: paused; }
.radio.is-playing .vinyl-disc { animation-play-state: running; }
.vd-disc { fill: #2B2420; }
.vd-groove { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1.2; }
.vd-shine { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 3; stroke-linecap: round; }
.vd-label { fill: #B9D1AC; }
.vd-hole { fill: #2B2420; }
.vinyl-state {
  position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--surface);
}
.vinyl-state .ic { width: 12px; height: 12px; }
.vinyl-state .ic:last-child { display: none; }
.radio.is-playing .vinyl-state .ic:first-child { display: none; }
.radio.is-playing .vinyl-state .ic:last-child { display: block; }
.radio.is-loading .vinyl::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--leaf); animation: spin 1s linear infinite; }
.radio-panel {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%; display: flex; align-items: center; gap: .5rem;
  padding: .55rem .7rem .55rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  white-space: nowrap; opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out);
}
.radio:hover .radio-panel, .radio:focus-within .radio-panel, .radio.is-playing .radio-panel, .radio.show-panel .radio-panel { opacity: 1; transform: none; pointer-events: auto; }
.radio-info { display: flex; flex-direction: column; line-height: 1.2; margin-right: .3rem; }
.radio-info b { font-family: var(--serif); font-size: .95rem; font-weight: 500; }
.radio-info span { font-size: .74rem; color: var(--ink-3); }
.radio-ctl { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.radio-ctl:hover { background: var(--bg-2); color: var(--ink); }
.radio-ctl .ic { width: 18px; height: 18px; }
.radio-ctl .i-mute { display: none; }
.radio.is-muted .radio-ctl .i-mute { display: block; }
.radio.is-muted .radio-ctl .i-vol { display: none; }
.radio-vol { width: 84px; accent-color: var(--green-ink); cursor: pointer; }
.radio-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; margin-left: .35rem; }
.radio-eq i { width: 2px; background: var(--leaf); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.radio-eq i:nth-child(2) { animation-delay: -.4s; } .radio-eq i:nth-child(3) { animation-delay: -.7s; }

/* Kit de marca */
.brand-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.brand-hero-art { display: grid; place-items: center; aspect-ratio: 1; max-width: 360px; width: 100%; justify-self: center; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--green-soft), transparent 70%); }
.brand-big { width: 72%; height: auto; color: var(--ink); animation: sway 8s ease-in-out infinite alternate; transform-origin: 60% 90%; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.brand-tile { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.brand-art { height: 190px; display: grid; place-items: center; padding: 1.4rem; }
.brand-art svg { max-width: 100%; max-height: 140px; width: auto; height: auto; }
.brand-light .brand-art { background: #FBF7F2; }
.brand-tint .brand-art { background: #EEF3E8; }
.brand-dark .brand-art { background: #211A16; }
.brand-tile figcaption { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--line); }
.brand-tile figcaption span { font-size: .88rem; color: var(--ink-2); }
.brand-tile .link-arrow { margin-top: .4rem; font-size: .88rem; color: var(--green-ink); }
.brand-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.brand-two > * { min-width: 0; }
.fav-row { display: flex; align-items: flex-end; gap: 1.2rem; margin-top: 1.4rem; flex-wrap: wrap; }
.fav-size { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.fav-size small { font-size: .74rem; color: var(--ink-3); }
.brand-type-a { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin-top: 1rem; }
.brand-type-a em { color: var(--green-ink); }
.brand-type-b { margin-top: 1rem; color: var(--ink-2); font-size: 1.05rem; }
.swatches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .6rem .8rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.swatch span { height: 64px; border-radius: 11px; margin-bottom: .45rem; border: 1px solid rgba(0,0,0,.06); }
.swatch b { font-size: .92rem; }
.swatch code { font-size: .8rem; color: var(--ink-2); }
.swatch small { font-size: .74rem; color: var(--ink-3); }
@media (max-width: 959px) { .brand-hero, .brand-two { grid-template-columns: 1fr; } }

/* 404 */
.nf { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding-block: 5rem; }
.nf .page-title { margin-inline: auto; }

/* Footer */
.site-footer { margin-top: clamp(40px, 6vw, 80px); padding-block: 3rem 2rem; background: var(--green-soft); border-top: 1px solid color-mix(in srgb, var(--leaf) 30%, transparent); }
.f-title-2 { margin-top: 1.4rem; }
.disclosure-box { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.disclosure-box .ic { color: var(--accent); margin-top: .15rem; }
.disclosure-box a { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; padding-block: 2.6rem 2rem; }
.footer-brand p { font-size: .9rem; color: var(--ink-2); margin-top: .8rem; max-width: 34ch; }
.f-title { font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.site-footer ul a { color: var(--ink-2); }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; font-size: .8rem; color: var(--ink-3); display: grid; gap: .3rem; }

/* =============================================================
   7. Efectos
   ============================================================= */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-5px); }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes blob { to { transform: rotate(8deg) scale(1.04); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes trayIn { from { opacity: 0; transform: translate(-50%, 24px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 40% { transform: scale(1.3); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes steam { 50% { transform: translateY(-2px) rotate(-6deg); } }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 1279px) {
  .main-nav > a, .nav-drop summary { padding-inline: .65rem; }
  .kofi-long { display: none; }
  .kofi-short { display: inline; }
  .cmp-pickers { grid-template-columns: repeat(2, 1fr); }
  .cmp-pickers .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .nav-cta span:not(.count) { display: none; }
  .nav-cta { padding: .6rem; width: 42px; height: 42px; }
}
@media (max-width: 959px) {
  :root { --header-h: 62px; }
  .menu-btn { display: inline-grid; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49; margin: 0; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem var(--gutter) 1.4rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .35s var(--ease-out), opacity .3s, visibility .3s;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a, .nav-drop summary { padding: .8rem 1rem; font-size: 1.05rem; }
  .drop-panel { position: static; translate: none; width: auto; box-shadow: none; grid-template-columns: 1fr; border: 0; padding: .4rem .4rem .8rem; background: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .rooms { grid-template-columns: repeat(3, 1fr); }
  .method { grid-template-columns: 1fr; }
  .tier-legend { grid-template-columns: repeat(2, 1fr); }
  .ficha-hero { grid-template-columns: 1fr; }
  .ficha-visual { position: relative; top: 0; max-width: 560px; width: 100%; margin-inline: auto; }
  .score-grid { grid-template-columns: 1fr; }
  .guide-hero { grid-template-columns: 1fr; }
  .guide-cover { display: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .imp-hero { grid-template-columns: 1fr; }
  .cmp-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .buy-sticky { display: flex; right: 90px; }
  .kofi-btn { display: none; }
  .main-nav > a.nav-kofi-mobile {
    display: flex; align-items: center; gap: .5rem; margin-top: .6rem; padding: .85rem 1rem; border-radius: 16px;
    background: var(--mint); color: var(--green-ink); font-weight: 600;
  }
  .nav-kofi-mobile .kofi-long { display: inline; }
  .nav-kofi-mobile .kofi-short { display: none; }
  .guide-card-big { flex-direction: column; }
  .guide-card-big .guide-vis { min-height: 200px; }
}
@media (max-width: 719px) {
  body { font-size: 16px; }
  .header-actions .icon-btn[data-theme-toggle] { display: none; }
  .nav-cta { margin-left: 0; }
  .logo { font-size: 1.4rem; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 1.5rem; }
  .hero-search kbd { display: none; }
  .tl-row, .tier-board-mini .tl-row { grid-template-columns: 1fr; }
  .tl-label { flex-direction: row; align-items: center; gap: .7rem; padding: .6rem 1rem; }
  .tl-label b { font-size: 1.6rem; }
  .tl-items { justify-content: flex-start; }
  .tl-item, .tier-board-mini .tl-item { width: calc(33.33% - 7px); }
  .tm-row { grid-template-columns: 1fr; }
  .list-hero-inner { flex-direction: column-reverse; align-items: flex-start; }
  .list-hero-inner .ilus-hero { width: 96px; }
  .pc-grid { grid-template-columns: 1fr; }
  .sb-row { grid-template-columns: 120px 1fr 26px; }
  .imp-item { grid-template-columns: 84px 1fr; padding: 14px; }
  .imp-num { display: none; }
  .imp-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .g-product { grid-template-columns: 1fr; }
  .gp-vis { max-width: 160px; }
  .cmp-pickers { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .toasts { left: 12px; right: 12px; bottom: 84px; }
  .cmp-tray { bottom: 14px; left: 12px; right: 86px; transform: none; justify-content: space-between; animation: none; }
  .radio { right: 12px; bottom: 12px; }
  .vinyl, .vinyl-disc { width: 58px; height: 58px; }
  .radio-panel { right: 0; top: auto; bottom: calc(100% + 12px); translate: none; transform: translateY(8px); }
  .hp-1 { left: -2%; }
  .tray-txt { display: none; }
  .tier-legend { grid-template-columns: 1fr; }
}
@media (max-width: 539px) {
  .rooms { grid-template-columns: 1fr 1fr; gap: 10px; }
  .room-name { font-size: 1.2rem; }
  .grid { grid-template-columns: 1fr; }
}

/* =============================================================
   9. Movimiento reducido (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-tile, .hb-1, .hero-plant { animation: none; }
  html { scroll-behavior: auto; }
}
