  :root {
    --night: #0D0A08;
    --night-2: #191410;
    --paper: #F6EEE3;
    --paper-dim: #B4A392;
    --top: #F2A65A;
    --heart: #E8622B;
    --base: #B8451A;
    --line: rgba(246,238,227,0.14);
    --photo-bg: #EFE7DC;
    --hover-fill: rgba(246,238,227,0.06);
    --track-bg: rgba(246,238,227,0.08);
    --nav-bg: rgba(13,10,8,0.88);
    --btn-bg: #E8622B;
    --ok: #5DBB7A;
    --bad: #F0656A;
    --on-accent: #1C140D;
    color-scheme: dark;
  }
  :root[data-theme="light"] {
    --night: #F7F2EA;
    --night-2: #FFFFFF;
    --paper: #1C140D;
    --paper-dim: #665646;
    --top: #8C5A10;
    --heart: #B4461A;
    --ok: #2E7A48;
    --bad: #B42318;
    --base: #8A3C12;
    --line: rgba(28,20,13,0.14);
    --photo-bg: #FFFFFF;
    --hover-fill: rgba(28,20,13,0.05);
    --track-bg: rgba(28,20,13,0.08);
    --nav-bg: rgba(247,242,234,0.88);
    color-scheme: light;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--night);
    color: var(--paper);
    font-family: 'Fraunces', serif;
    line-height: 1.5;
    overflow-x: hidden;
  }
  h1, h2, h3, .display { font-family: 'Fraunces', serif; margin: 0; }
  a { color: inherit; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 30px; }

  nav.top {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 20px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  nav.top .wrap { display: flex; justify-content: space-between; align-items: center; }
  .brand { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.4rem; letter-spacing: 0.01em; }
  .navlinks { display: flex; align-items: center; gap: 18px; font-size: 0.82rem; }
  .nav-page-links { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--night-2) 75%, transparent); }
  .nav-page-links a { padding: 7px 15px; border-radius: 999px; color: var(--paper-dim); transition: color .2s ease, background .2s ease; white-space: nowrap; }
  .nav-page-links a:hover { color: var(--paper); background: color-mix(in srgb, var(--paper) 8%, transparent); }
  .navlinks .nav-page-links a.active { color: var(--paper); background: linear-gradient(135deg, color-mix(in srgb, var(--heart) 38%, transparent), color-mix(in srgb, var(--top) 24%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--heart) 55%, transparent); }
  .navlinks a { text-decoration: none; }
  .navlinks a.active { color: var(--heart); }
  .theme-toggle {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--paper-dim);
    background: transparent; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color .2s ease, background .2s ease; flex-shrink: 0;
  }
  .theme-toggle:hover { border-color: var(--heart); background: var(--hover-fill); }
  .nav-search { display: flex; align-items: center; }
  .nav-search-input {
    width: 0; opacity: 0; padding: 0; margin-left: 0; border: 1px solid var(--line); border-radius: 999px;
    background: var(--night-2); color: var(--paper); font-family: 'Fraunces', serif;
    font-size: 0.85rem; overflow: hidden;
    transition: width .25s ease, opacity .2s ease, padding .25s ease, margin-left .25s ease;
  }
  .nav-search.open .nav-search-input { width: 190px; opacity: 1; padding: 8px 14px; margin-left: 8px; }
  .nav-search-input::placeholder { color: var(--paper-dim); }

  /* MARQUEE */
  .marquee {
    position: relative; z-index: 5;
    margin-top: 85px;
    overflow: hidden; white-space: nowrap;
    background: var(--night-2); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
    padding: 0; height: 48px; display: flex; align-items: center;
  }
  .marquee-track { display: flex; align-items: center; line-height: 1; animation: scrollMarquee var(--mq-dur, 24s) linear infinite; }
  .marquee-track span { padding-right: 44px;
    font-family: 'Fraunces', serif; font-style: italic; font-size: 1rem; color: var(--top);
  }
  @keyframes scrollMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
  @media (max-width: 860px) { .marquee { margin-top: 75px; } }

  /* HERO */
  .hero {
    position: relative;
    padding: 80px 0 90px;
    cursor: crosshair;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(620px 560px at 8% 10%, rgba(242,166,90,0.22), rgba(242,166,90,0.08) 55%, transparent 88%),
      radial-gradient(660px 580px at -4% 70%, rgba(232,98,43,0.24), rgba(232,98,43,0.08) 55%, transparent 88%);
  }
  .hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
    position: relative; z-index: 2;
  }
  .hero-headline {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    line-height: 1.18; font-weight: 500; letter-spacing: -0.005em; text-align: left;
  }
  .hero-headline em { font-style: italic; color: var(--heart); }
  .hero-sub {
    margin-top: 24px; max-width: 42ch; color: var(--paper-dim); font-size: 1.05rem;
  }
  .hero-cta { margin-top: 34px; display: flex; gap: 18px; align-items: center; }
  .btn {
    font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.9rem;
    padding: 15px 28px; border-radius: 2px; border: 1px solid var(--paper);
    background: transparent; color: var(--paper); cursor: pointer;
    transition: background .2s ease, color .2s ease;
  }
  a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
  .btn.solid { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--on-accent); }
  .btn.solid:hover { background: #F2A65A; border-color: #F2A65A; color: var(--on-accent); }
  .btn:not(.solid):hover { background: var(--hover-fill); }

  .hero-rings { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; z-index: 2; }
  .ring {
    position: absolute; border-radius: 50%; border: 1.5px solid var(--line);
  }
  .ring.r1 { width: 380px; height: 380px; border-color: rgba(242,166,90,0.35); }
  .ring.r2 { width: 280px; height: 280px; border-color: rgba(232,98,43,0.45); }
  .ring.r3 { width: 180px; height: 180px; background: var(--base); }
  .ring-pulse { animation: ringPulse 3.4s ease-in-out infinite; }
  @keyframes ringPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
  @media (prefers-reduced-motion: reduce) { .ring-pulse { animation: none; } }

  .logo-mark { position: relative; z-index: 3; }
  .liquid-glow { animation: liquidPulse 3.2s ease-in-out infinite; }
  @keyframes liquidPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
  .glare { animation: glareSweep 3.8s ease-in-out infinite; }
  @keyframes glareSweep {
    0% { transform: translateX(-30px); opacity: 0; }
    12% { opacity: 0.55; }
    42% { transform: translateX(160px); opacity: 0.55; }
    58% { opacity: 0; }
    100% { transform: translateX(160px); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .liquid-glow, .glare { animation: none; opacity: .9; }
  }

  .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; transition: opacity .2s ease; }
  .nav-logo:hover { opacity: 0.8; }
  .nav-logo svg { display: block; }
  .nav-icons { display: flex; align-items: center; gap: 14px; margin-left: 30px; }

  .trail-dot {
    position: absolute; width: 7px; height: 7px; border-radius: 50%;
    pointer-events: none; z-index: 1;
    animation: driftUp 1.4s ease-out forwards;
  }
  @keyframes driftUp {
    0% { opacity: 0.85; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-70px) scale(0.4); }
  }
  .hero-hint {
    margin-top: 46px; font-size: 0.75rem; color: var(--paper-dim); position: relative; z-index: 2;
  }

  /* PYRAMID EXPLAINER */
  .pyramid-intro { padding: 90px 0 80px; border-top: 1px solid var(--line); }
  .pyramid-intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
  .pi-kicker { display: inline-block; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--top); margin-bottom: 12px; }
  .pi-legend { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 28px; }
  .pi-leg { display: grid; grid-template-columns: 12px 1fr; column-gap: 12px; row-gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
  .pi-leg i { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); margin-top: 7px; grid-row: span 2; }
  .pi-leg b { font-weight: 500; font-size: 1rem; }
  .pi-leg span { color: var(--paper-dim); font-size: 0.9rem; line-height: 1.45; }
  .pi-leg.hl { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 10%, transparent); transform: translateX(4px); }
  .pi-example { text-align: center; font-size: 0.92rem; color: var(--paper-dim); margin-bottom: 14px; min-height: 1.5em; }
  .pi-example strong { color: var(--paper); font-weight: 500; }
  .pi-example.swap { animation: piFade .45s ease; }
  @keyframes piFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .pi-pyramid { display: flex; flex-direction: column; gap: 6px; }
  .pi-band { position: relative; height: 122px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 12px; transition: filter .3s ease; }
  .pi-band[data-tier="salida"] { clip-path: polygon(33% 0, 67% 0, 78% 100%, 22% 100%); background: linear-gradient(180deg, rgba(242,166,90,0.14), rgba(242,166,90,0.30)); }
  .pi-band[data-tier="corazon"] { clip-path: polygon(21.5% 0, 78.5% 0, 89.5% 100%, 10.5% 100%); background: linear-gradient(180deg, rgba(232,98,43,0.14), rgba(232,98,43,0.30)); }
  .pi-band[data-tier="fondo"] { clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(184,69,26,0.18), rgba(184,69,26,0.36)); }
  .pi-band.hl { filter: brightness(1.45) saturate(1.1); }
  .pi-band-label { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); }
  .pi-chips { display: flex; gap: 10px; justify-content: center; }
  .pi-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; padding: 0; cursor: pointer; color: var(--paper); font-family: 'Fraunces', serif; }
  .pi-chip.in { animation: piIn .55s cubic-bezier(.3,1.5,.5,1) both; animation-delay: var(--d); }
  @keyframes piIn { from { opacity: 0; transform: translateY(14px) scale(.6); } to { opacity: 1; transform: none; } }
  .pi-chip-img { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: flex; background: var(--night-2); box-shadow: 0 0 0 2px var(--line), 0 4px 14px rgba(0,0,0,0.3); transition: transform .2s ease, box-shadow .2s ease; }
  .pi-chip-img svg { width: 100%; height: 100%; }
  .pi-chip span:last-child { font-size: 0.76rem; }
  .pi-chip:hover .pi-chip-img { transform: scale(1.12); box-shadow: 0 0 0 2px var(--heart), 0 0 16px rgba(232,98,43,0.5); }
  .pi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .pi-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); border: none; padding: 0; cursor: pointer; transition: all .3s ease; }
  .pi-dot.active { background: var(--heart); width: 24px; }
  .pyramid-intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
  .pyramid-intro p { color: var(--paper-dim); max-width: 46ch; margin-top: 6px; }
  .pyramid-legend { display: flex; flex-direction: column; gap: 14px; }
  .leg-row { display: flex; align-items: center; gap: 14px; }
  .leg-bar { height: 9px; border-radius: 1px; flex: 1; transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
  .leg-row.top .leg-bar { background: var(--top); }
  .leg-row.heart .leg-bar { background: var(--heart); }
  .leg-row.base .leg-bar { background: var(--base); }
  .leg-row span.lbl { width: 90px; font-size: 0.85rem; color: var(--paper-dim); flex-shrink: 0; }
  .pyramid-legend.in-view .leg-bar { transform: scaleX(1); }

  /* FINDER — game */
  .finder { padding: 90px 0; border-top: 1px solid var(--line); }
  .finder-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
  .finder-head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
  .finder-head p { color: var(--paper-dim); }

  /* ---- Contenedor del quiz con escena ambiental ---- */
  @property --sceneA { syntax: '<color>'; inherits: false; initial-value: rgba(232,98,43,0.10); }
  @property --sceneB { syntax: '<color>'; inherits: false; initial-value: rgba(242,166,90,0.06); }
  .quiz-shell {
    position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; padding: 30px;
    display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 30px;
    background:
      radial-gradient(760px 460px at 8% -10%, var(--sceneA), transparent 72%),
      radial-gradient(640px 460px at 105% 110%, var(--sceneB), transparent 72%),
      var(--night-2);
    transition: --sceneA 1.2s ease, --sceneB 1.2s ease;
  }
  .quiz-shell > .game-main, .quiz-shell > .lab { position: relative; z-index: 1; }
  .scene-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
  .fx { position: absolute; top: -20px; display: block; opacity: 0; animation: fxFall linear infinite; }
  .fx.snow { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.85); }
  .fx.leaf { width: 10px; height: 6px; border-radius: 0 70% 0 70%; background: #C4622D; }
  .fx.petal { width: 8px; height: 6px; border-radius: 70% 0 70% 0; background: #F2A6C0; }
  .fx.glint { width: 4px; height: 4px; border-radius: 50%; background: #F2C14E; box-shadow: 0 0 8px #F2C14E; top: auto; bottom: -10px; animation-name: fxRise; }
  .fx.star { width: 3px; height: 3px; border-radius: 50%; background: #FFF4DA; box-shadow: 0 0 6px rgba(255,244,218,0.9); animation-name: fxTwinkle; animation-timing-function: ease-in-out; }
  :root[data-theme="light"] .fx.snow { background: #8FB3DB; }
  :root[data-theme="light"] .fx.star { background: #E8A25A; box-shadow: 0 0 6px rgba(232,162,90,0.8); }
  @keyframes fxFall { 0% { top: -20px; opacity: 0; transform: translateX(0) rotate(0); } 10% { opacity: .7; } 90% { opacity: .5; } 100% { top: 105%; opacity: 0; transform: translateX(40px) rotate(260deg); } }
  @keyframes fxRise { 0% { bottom: -10px; opacity: 0; } 15% { opacity: .8; } 100% { bottom: 105%; opacity: 0; transform: translateX(-20px); } }
  @keyframes fxTwinkle { 0%,100% { opacity: .15; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.2); } }

  .game-main { min-width: 0; display: flex; flex-direction: column; }
  .game-bar { margin-bottom: 22px; }
  .steps-nav { display: flex; justify-content: space-between; align-items: center; position: relative; margin-bottom: 18px; }
  .steps-line { position: absolute; left: 18px; right: 18px; top: 50%; height: 1px; background: var(--line); z-index: 0; }
  .step-dot {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--night-2); color: var(--paper-dim); font-family: 'Fraunces', serif;
    font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; z-index: 1; transition: all .25s ease;
  }
  .step-dot:hover { border-color: var(--paper); }
  .step-dot.done { border-color: var(--dc); background: var(--dc); color: #fff; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.45); }
  .step-dot.active { border-color: var(--heart); box-shadow: 0 0 0 4px rgba(232,98,43,0.22); color: var(--paper); }
  .step-dot.done.active { color: #fff; }
  .game-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; gap: 12px; }
  .game-step-label { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.05rem; color: var(--paper-dim); }
  .game-live { font-size: 0.82rem; color: var(--paper-dim); }

  .game-question { font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 500; line-height: 1.2; margin: 0 0 20px; }
  .game-stage { min-height: 300px; }
  .game-step[hidden] { display: none; }
  .game-step { animation: stepIn .35s ease; }
  @keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

  /* ---- Opciones ilustradas ---- */
  .tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 12px; }
  .tile {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 116px; padding: 12px 10px 9px; border: 1px solid var(--line); border-radius: 4px;
    background: var(--hover-fill); color: var(--paper); font-family: 'Fraunces', serif; font-size: 0.96rem; line-height: 1.22; text-align: center;
    cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  }
  .tile:hover:not(.active) { border-color: var(--paper); transform: translateY(-3px); }
  .tile.active { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--on-accent); box-shadow: 0 8px 22px rgba(232,98,43,0.3); }
  .tile.pop { animation: tilePop .35s ease; }
  @keyframes tilePop { 50% { transform: scale(1.06); } }
  .tile-icon { color: var(--top); display: flex; }
  .tile.active .tile-icon { color: var(--on-accent); }
  .tile-icon svg { width: 47px; height: 47px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
  .tile-icon svg .fill { fill: currentColor; stroke: none; }
  .tile-icon svg * { transform-box: fill-box; transform-origin: center; }
  .tile-drop {
    position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 0 50% 50% 50%;
    transform: rotate(45deg); background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); transition: transform .2s ease;
  }
  .tile:hover .tile-drop { transform: rotate(45deg) scale(1.3); }
  .tile.active .tile-drop { box-shadow: 0 0 0 2px #fff; }
  .game-tip { margin: 14px 0 0; font-size: 0.82rem; font-style: italic; color: var(--paper-dim); }
  .drop-hint { margin: 18px 0 0; font-size: 0.8rem; color: var(--paper-dim); }
  .drop-hint, .drop-hint[hidden] { display: none !important; }

  .tile:hover .a-spin, .tile:hover .a-rays { animation: icSpin 3s linear infinite; }
  .tile:hover .a-twinkle { animation: icTwinkle 1.1s ease-in-out infinite; }
  .tile:hover .a-steam path { animation: icSteam 1.4s ease-in infinite; }
  .tile:hover .a-steam path:nth-child(2) { animation-delay: .35s; }
  .tile:hover .a-beat { animation: icBeat .9s ease-in-out infinite; }
  .tile:hover .a-lift { animation: icLift .8s ease-in-out infinite; }
  .tile:hover .a-wiggle { animation: icWiggle .7s ease-in-out infinite; }
  .tile:hover .a-wave { animation: icWave 1.2s ease-in-out infinite; }
  .tile-icon svg .a-sway { transform-origin: 0% 100%; }
  .tile:hover .a-sway { animation: icSway 1.4s ease-in-out infinite; }
  .tile:hover .a-bloom { animation: icBloom 2.4s ease-in-out infinite; }
  .tile:hover .a-bounce > * { animation: icLift .6s ease-in-out infinite; }
  .tile:hover .a-bounce > *:nth-child(2) { animation-delay: .1s; }
  .tile:hover .a-bounce > *:nth-child(3) { animation-delay: .2s; }
  .tile:hover .a-bounce > *:nth-child(4) { animation-delay: .3s; }
  .tile:hover .a-bounce > *:nth-child(5) { animation-delay: .4s; }
  .tile:hover .a-bounce > *:nth-child(6) { animation-delay: .5s; }
  .tile:hover .a-ring { animation: icRing 1.2s ease-in-out infinite; }
  .tile:hover .a-ring.r2 { animation-delay: .2s; }
  .tile:hover .a-ring.r3 { animation-delay: .4s; }
  .tile-icon svg .a-tick { transform-origin: 50% 100%; }
  .tile:hover .a-tick { animation: icSpin 2.4s steps(12) infinite; }
  .tile:hover .a-wind { animation: icWave 1s ease-in-out infinite; }
  .tile:hover .a-flash { animation: icFlash .9s ease-in-out infinite; }
  .tile-icon svg .a-flicker { transform-origin: 50% 100%; }
  .tile:hover .a-flicker { animation: icFlicker .45s ease-in-out infinite alternate; }
  .tile:hover .a-roll { animation: icRoll 1.2s ease-in-out infinite; }
  @keyframes icSpin { to { transform: rotate(360deg); } }
  @keyframes icTwinkle { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }
  @keyframes icSteam { 0% { transform: translateY(2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-5px); opacity: 0; } }
  @keyframes icBeat { 0%,100% { transform: scale(1); } 20% { transform: scale(1.15); } 40% { transform: scale(.98); } 60% { transform: scale(1.1); } }
  @keyframes icLift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes icWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
  @keyframes icWave { 0%,100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
  @keyframes icSway { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
  @keyframes icBloom { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(36deg) scale(1.08); } }
  @keyframes icRing { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
  @keyframes icFlash { 0%,100% { opacity: 1; } 45% { opacity: .3; } 55% { opacity: 1; } 65% { opacity: .5; } }
  @keyframes icFlicker { from { transform: scaleY(1) skewX(0); } to { transform: scaleY(1.1) skewX(-4deg); } }
  @keyframes icRoll { 0%,100% { transform: rotate(0); } 50% { transform: rotate(90deg); } }

  /* ---- Presupuesto deslizable ---- */
  .budget { display: flex; flex-direction: column; gap: 12px; max-width: 580px; }
  .budget-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
  .budget-kicker { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper-dim); }
  .budget-value { font-family: 'Fraunces', serif; font-size: 2.4rem; line-height: 1.1; color: var(--paper); }
  .budget-coins { width: 124px; height: 76px; overflow: visible; flex-shrink: 0; }
  .budget-coins .coin-new { animation: coinDrop .35s cubic-bezier(.3,1.4,.5,1) both; }
  @keyframes coinDrop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
  .budget-range {
    -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; margin: 12px 0 2px; outline: none;
    background: linear-gradient(90deg, #E9C46A, #C9912E) 0 / var(--pct, 100%) 100% no-repeat, var(--track-bg);
  }
  .budget-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFE7A3, #D4AF37 60%, #A67C1E); border: 2px solid var(--night-2);
    box-shadow: 0 0 0 2px #D4AF37, 0 4px 12px rgba(0,0,0,0.4); transition: transform .15s ease;
  }
  .budget-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
  .budget-range::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--night-2);
    background: radial-gradient(circle at 35% 35%, #FFE7A3, #D4AF37 60%, #A67C1E); box-shadow: 0 0 0 2px #D4AF37;
  }
  .budget-range::-moz-range-track { background: transparent; }
  .mh-caveat { font-size: 0.88rem; line-height: 1.45; margin: 8px 0 0; color: var(--paper-dim); }
  .mh-why-title { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper-dim); margin: 6px 0 2px; }
  .no-exact { border: 1px solid var(--top, #D4AF37); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 0.95rem; line-height: 1.45; color: var(--paper); background: rgba(212,175,55,0.08); }
  .fam-touch { opacity: .75; font-weight: 400; }
  .fam-unisex { margin-left: 6px; opacity: .85; }
  .budget-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--paper-dim); }
  .budget-count { font-size: 0.9rem; color: var(--paper-dim); margin-top: 4px; }
  .budget-count strong { color: var(--top); font-weight: 600; }

  .game-actions { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 16px; }
  #gameBack.disabled { opacity: 0.35; pointer-events: none; }
  .ghost-reset { border-color: transparent; color: var(--paper-dim); margin-left: auto; }
  .ghost-reset:hover { color: var(--paper); background: transparent; }
  #gameNext.ready { animation: readyPulse 1.6s ease-in-out infinite; }
  @keyframes readyPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,98,43,0.55); } 50% { box-shadow: 0 0 0 10px rgba(232,98,43,0); } }
  .quiz-shell.revealing .game-actions, .quiz-shell.revealing .game-stage, .quiz-shell.revealing .steps-nav { pointer-events: none; opacity: .55; transition: opacity .3s ease; }

  /* ---- Tu laboratorio: frasco de capas + probetas ---- */
  .lab { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 28px; }
  .lab-title { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); }
  .lab-grid { flex: 1; display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; margin-top: 8px; }
  .lab-bottle { position: relative; z-index: 2; transform-origin: 50% 90%; }
  .lab-bottle.shake { animation: labShake .5s ease; }
  @keyframes labShake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-4deg); } 40% { transform: rotate(3.5deg); } 60% { transform: rotate(-2.5deg); } 80% { transform: rotate(1.2deg); } }
  .lab-bottle svg { width: 140px; height: auto; display: block; overflow: visible; transform: scale(1.14); transform-origin: 50% 82%; }
  .lab-caption { text-align: center; font-size: 0.75rem; color: var(--paper-dim); margin-top: 4px; }
  .lab-glass { fill: var(--hover-fill); }
  /* frasco del quiz: vidrio grueso, collar dorado y tapa con brillo */
  .lb-glass { fill: color-mix(in srgb, var(--paper) 6%, var(--night-2)); }
  .lb-inner { fill: color-mix(in srgb, var(--paper) 5%, transparent); }
  .lb-stroke { fill: none; stroke: color-mix(in srgb, var(--paper) 55%, transparent); stroke-width: 1.6; }
  .lb-facet { fill: none; stroke: color-mix(in srgb, var(--paper) 22%, transparent); stroke-width: 1; }
  .lb-neck { fill: color-mix(in srgb, var(--paper) 10%, var(--night-2)); stroke: color-mix(in srgb, var(--paper) 45%, transparent); stroke-width: 1.2; }
  .lb-shadow { fill: #000; opacity: .35; } :root[data-theme="light"] .lb-shadow { opacity: .14; }
  #labGlow { transition: fill .6s ease, opacity .6s ease; }
  .lb-sparks path { fill: #F6D58E; transform-box: fill-box; transform-origin: center; animation: lbTwinkle 2.8s ease-in-out infinite; }
  .lb-sparks path:nth-child(2) { animation-delay: .9s; } .lb-sparks path:nth-child(3) { animation-delay: 1.8s; }
  @keyframes lbTwinkle { 0%,100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }
  @media (prefers-reduced-motion: reduce) { .lb-sparks path { animation: none; opacity: .6; } }
  .lab-stroke { fill: none; stroke: var(--paper-dim); stroke-width: 1.5; }
  .lab-neck { fill: var(--night-2); stroke: var(--paper-dim); stroke-width: 1.5; }
  .lab-nozzle { fill: var(--paper-dim); }
  .lab-layer { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); transition: transform .75s cubic-bezier(.2,.8,.2,1) .18s, fill .5s ease; }
  .lab-layer.filled { transform: scaleY(1); }
  #labWave { transition: transform .85s cubic-bezier(.2,.8,.2,1) .15s, opacity .3s ease; }
  #labWavePath { animation: labWaveMove 2.2s linear infinite; transition: fill .5s ease; }
  @keyframes labWaveMove { from { transform: translateX(0); } to { transform: translateX(-40px); } }
  #labStream { transform-box: fill-box; transform-origin: center top; }
  #labCap { transition: transform .65s cubic-bezier(.3,1.45,.5,1); }
  #labCap.floating { animation: capFloat 2.6s ease-in-out infinite; }
  @keyframes capFloat { 0%,100% { transform: translateY(-42px); } 50% { transform: translateY(-49px); } }
  #labTag { transition: opacity .6s ease; }
  .tubes svg { width: 100%; height: auto; display: block; overflow: visible; transform: scale(1.12); transform-origin: 0 50%; }
  .tube-glass { fill: var(--hover-fill); }
  .tube-stroke { fill: none; stroke: var(--paper-dim); stroke-width: 1.4; }
  .tube-rim { fill: var(--paper-dim); }
  .tube-lbl { fill: var(--paper); font-size: 12.5px; font-family: 'Fraunces', serif; }
  .tube-pct { fill: var(--top); font-size: 12.5px; font-weight: 600; font-family: 'Fraunces', serif; }
  .bub { fill: rgba(255,255,255,0.55); animation: bub 2.6s ease-in infinite; }
  @keyframes bub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-150px); opacity: 0; } }

  /* RESULTS - bento */
  .results { padding: 20px 0 100px; }
  .results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .results-head h2, .results-head h1 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
  .results-head .btn { padding: 9px 18px; font-size: .88rem; }
  .bento {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
    background: var(--line);
  }
  .card {
    background: var(--night); padding: 28px; display: flex; flex-direction: column;
    gap: 16px; grid-column: span 3;
  }
  .card > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .card.revealed > * { opacity: 1; transform: translateY(0); }
  .card.wide { grid-column: span 6; flex-direction: row; align-items: center; gap: 40px; }
  .card.full { grid-column: span 6; }
  .card.wide .card-main { flex: 1; }
  .card.wide .card-pyr { width: 220px; }
  .card-top { display: flex; align-items: flex-start; gap: 14px; }
  .card-visual { flex-shrink: 0; line-height: 0; }
  .pv-photo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; max-width: 100%; background: var(--photo-bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; line-height: 0; }
  .pv-photo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
  .compare-photo { display: flex; justify-content: center; margin-bottom: 14px; }
  .card-titles { flex: 1; min-width: 0; }
  .card h3 { font-size: 1.25rem; font-weight: 500; }
  .card .brand { color: var(--paper-dim); font-size: 0.8rem; margin-top: 4px; }
  .fam-tag { font-size: 0.72rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; flex-shrink: 0; }

  .reveal-card {
    margin-top: 30px; display: flex; gap: 32px; align-items: center;
    background: var(--night-2); border: 1px solid var(--heart); border-radius: 2px; padding: 30px;
  }
  .reveal-visual { flex-shrink: 0; line-height: 0; }
  .reveal-kicker { font-size: 0.78rem; color: var(--paper-dim); letter-spacing: 0.03em; }
  .reveal-score {
    font-family: 'Fraunces', serif; font-size: 2.6rem; color: var(--heart); line-height: 1.1; margin: 4px 0 10px;
  }
  .reveal-info h3 { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 500; }
  .reveal-info .notes { margin-top: 8px; }
  .reveal-info .card-bottom { border-top: none; padding-top: 18px; margin-top: 12px; }
  .notes { color: var(--paper-dim); font-size: 0.86rem; }
  .mini-pyr { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
  .mini-pyr .bar-row { display: flex; align-items: center; gap: 8px; }
  .mini-pyr .bar-row .lbl { width: 40px; font-size: 0.68rem; color: var(--paper-dim); }
  .mini-pyr .bar-track { flex: 1; height: 6px; background: var(--track-bg); border-radius: 1px; overflow: hidden; }
  .mini-pyr .bar-fill { height: 100%; transform-origin: left; transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
  .card.revealed .mini-pyr .bar-fill { transform: scaleX(1); }
  .bar-fill.top { background: var(--top); }
  .bar-fill.heart { background: var(--heart); }
  .bar-fill.base { background: var(--base); }
  .card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
  .price-from strong { font-family: 'Fraunces', serif; font-size: 1.2rem; }
  .link-btn {
    background: none; border: none; color: var(--paper); font-size: 0.82rem;
    cursor: pointer; font-family: 'Fraunces', serif; padding: 0;
    border-bottom: 1px solid var(--paper-dim);
  }
  .link-btn:hover { border-color: var(--heart); color: var(--heart); }
  .empty-state { grid-column: span 6; text-align: center; padding: 80px 20px; color: var(--paper-dim); background: var(--night); }

  /* ADS */
  .ad-zone {
    padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--night-2); display: flex; justify-content: center; align-items: center;
    min-height: 250px;
  }
  .ad-zone.horizontal { min-height: 120px; }
  .ad-zone-label { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-size: 0.65rem;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); opacity: 0.6; }
  .ad-zone.relative { position: relative; }
  @media (max-width: 768px) {
    .ad-zone { min-height: auto; }
    .ad-zone.horizontal { min-height: auto; }
  }

  .status-row { display: flex; gap: 6px; flex-wrap: wrap; }
  .status-btn {
    height: 32px; border-radius: 999px; border: 1px solid var(--line); padding: 0 12px 0 9px; gap: 6px;
    background: transparent; color: var(--paper-dim); cursor: pointer; font-family: 'Fraunces', serif; font-size: 0.76rem;
    display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease; white-space: nowrap;
  }
  .status-btn svg { width: 15px; height: 15px; display: block; flex-shrink: 0; }
  .status-btn:hover { border-color: var(--status-color, var(--paper)); color: var(--status-color, var(--paper)); transform: translateY(-1px); }
  .status-btn.active {
    border-color: var(--status-color); background: var(--status-color); color: #fff;
  }

  .coll-list { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; max-width: 560px; }
  .coll-item {
    display: flex; align-items: center; gap: 14px; padding: 13px 18px;
    border: 1px solid var(--line); border-radius: 2px; background: var(--night-2);
    font-family: 'Fraunces', serif; font-size: 0.95rem;
  }
  .coll-icon { display: flex; flex-shrink: 0; }
  .coll-icon svg { width: 17px; height: 17px; display: block; }
  .coll-analytics {
    margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 820px;
  }
  .coll-analytics h3 {
    font-family: 'Fraunces', serif; font-style: normal; font-weight: 600;
    font-size: 0.85rem; letter-spacing: 0.03em; color: var(--paper-dim); margin-bottom: 16px;
  }
  .fam-stats { display: flex; flex-direction: column; gap: 4px; }
  .fam-stat-row {
    display: flex; justify-content: space-between; align-items: center; font-size: 0.92rem;
    font-family: 'Fraunces', serif; padding: 10px 0; border-bottom: 1px solid var(--line);
  }
  .fam-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 10px; vertical-align: middle; }
  .occ-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .occ-icon { display: flex; color: var(--paper-dim); flex-shrink: 0; }
  .occ-icon svg { width: 14px; height: 14px; display: block; }
  .occ-label { width: 60px; font-size: 0.82rem; font-family: 'Fraunces', serif; color: var(--paper-dim); flex-shrink: 0; }
  .occ-track { flex: 1; height: 8px; background: var(--track-bg); border-radius: 999px; overflow: hidden; }
  .occ-fill { height: 100%; background: linear-gradient(90deg, var(--base), var(--heart), var(--top)); border-radius: 999px; }
  .occ-count { width: 18px; text-align: right; font-size: 0.78rem; color: var(--paper-dim); }
  .cov-badge { width: 18px; text-align: center; font-size: 0.82rem; }
  .coll-gap { margin-top: 16px; font-size: 0.85rem; color: var(--paper-dim); line-height: 1.5; }
  .coll-gap a { color: var(--heart); border-bottom: 1px solid var(--heart); text-decoration: none; }
  .coll-insight {
    grid-column: 1 / -1; margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--line);
    font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.05rem; line-height: 1.5;
  }

  /* COMPARE */
  .compare-overlay {
    position: fixed; inset: 0; background: rgba(10,12,21,0.86); backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
  }
  .compare-overlay.open { display: flex; }
  .compare-panel {
    background: var(--night-2); border: 1px solid var(--line); border-radius: 2px;
    max-width: 480px; width: 100%; padding: 36px;
  }
  .info-panel { max-height: 90vh; overflow-y: auto; }
  .info-panel.has-prices { max-width: 640px; width: calc(100vw - 32px); }
  .info-grid { display: block; }
  .info-panel.has-prices .info-grid { display: block; text-align: left; }
  .info-panel.has-prices .info-prices { margin-top: 22px; }
  .info-prices h4 { font-family: 'Inter', sans-serif; font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); font-weight: 500; margin: 0 0 10px; }
  .info-status { margin-top: 14px; }
  .info-head { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: center; text-align: left; }
  .info-head .compare-photo { margin-bottom: 0; justify-content: center; }
  .info-head .compare-photo[hidden] { display: none; }
  .info-head:has(.compare-photo[hidden]) { grid-template-columns: 1fr; }
  .info-head-txt h3 { margin: 0; }
  .info-best { margin-top: 10px; }
  .info-best .ib-price { font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 600; color: var(--heart); line-height: 1.1; }
  .info-best .ib-sub { color: var(--paper-dim); font-size: 0.82rem; margin-top: 2px; }
  .info-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
  .info-head-actions .btn { padding: 9px 16px; }
  .info-dupes:empty { display: none; }
  .info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; text-align: left; }
  .info-card { border: 1px solid var(--line); background: var(--hover-fill); border-radius: 14px; padding: 14px; }
  .info-card.wide { grid-column: 1 / -1; }
  .info-tags span { display: inline-flex; align-items: center; gap: 6px; }
  .info-ic { display: inline-flex; width: 20px; height: 20px; color: var(--top); }
  .info-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
  .info-ic svg .fill { fill: currentColor; stroke: none; }
  @media (max-width: 480px) { .info-cards { grid-template-columns: 1fr; } }
  .info-card h5 { margin: 0 0 10px; font-family: 'Inter', sans-serif; font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); font-weight: 500; }
  .info-card .tier-lbl { color: var(--paper-dim); font-size: 0.78rem; margin: 10px 0 5px; }
  .info-card .tier-lbl:first-of-type { margin-top: 0; }
  .info-card .info-notes { display: flex; flex-wrap: wrap; gap: 6px; }
  .info-meter { display: flex; gap: 6px; }
  .info-meter span { flex: 1; height: 10px; border-radius: 5px; background: var(--line); }
  .info-meter span.on { background: linear-gradient(90deg, var(--top), var(--heart)); }
  .info-meter-lbl { display: flex; justify-content: space-between; margin-top: 5px; font-size: 0.72rem; color: var(--paper-dim); }
  .info-prices-wrap { margin-top: 6px; }
  @media (max-width: 560px) { .info-head { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; } .info-head .pv-photo { width: 130px !important; height: 165px !important; } .info-best .ib-price { font-size: 1.4rem; } }
  .info-sec { margin-top: 16px; text-align: left; }
  .info-sec h4 { font-family: 'Inter', sans-serif; font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); font-weight: 500; margin: 0 0 8px; }
  .info-notes { display: flex; flex-wrap: wrap; gap: 6px; }
  .info-notes .mh-note { font-size: 0.82rem; }
  .info-tier { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 0.82rem; }
  .info-tier > span { color: var(--paper-dim); }
  .info-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .info-tags span { font-size: 0.78rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
  .info-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; position: sticky; bottom: -36px; background: var(--night-2); padding: 12px 0 0; }
  .info-actions .btn { width: 100%; justify-content: center; }
  .shelf-bottle, .shelf-name, .shelf-brand { cursor: pointer; }
  .compare-panel h3 { font-size: 1.3rem; }
  .compare-panel .sub { color: var(--paper-dim); font-size: 0.82rem; margin-top: 6px; }
  .store-list { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
  .store-row { display: flex; flex-direction: column; gap: 8px; padding: 13px 14px; border: 1px solid var(--line); }
  .store-row.best { border-color: var(--top); }
  .store-row-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .store-name { font-size: 0.88rem; }
  .store-note { color: var(--paper-dim); font-size: 0.8em; }
  .store-price { font-family: 'Fraunces', serif; font-size: 1.05rem; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
  .store-row.best .store-price { color: var(--top); }
  .store-per-ml { font-family: 'Fraunces', serif; font-size: 0.68rem; color: var(--paper-dim); font-weight: 400; }
  .store-link { align-self: flex-start; font-size: 0.82rem; color: var(--top); text-decoration: none; border-bottom: 1px solid currentColor; }
  .store-link:hover { opacity: 0.75; }
  .nostock-tag { display:inline-block; font-size:0.78rem; font-weight:600; letter-spacing:.02em; padding:3px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.22); color:var(--paper-dim); background:rgba(255,255,255,.05); }
  .nostock-last { display:block; margin-top:4px; font-size:0.72rem; color:var(--paper-dim); font-weight:400; }
  .card.nostock .card-visual { opacity:.5; filter:grayscale(.7); }
  .ib-nostock { font-size:1.05rem; font-weight:700; color:var(--paper-dim); }
  .muted-last { opacity:.8; font-size:.82rem; }
  .store-empty { padding: 20px 14px; font-size: 0.9rem; color: var(--paper-dim); text-align: center; }

  .adn-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
  .adn-title { font-size: 0.78rem; letter-spacing: 0.03em; color: var(--paper-dim); margin-bottom: 12px; text-transform: uppercase; }
  .adn-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .adn-label { width: 78px; font-size: 0.8rem; color: var(--paper-dim); flex-shrink: 0; }
  .adn-track { flex: 1; height: 7px; background: var(--track-bg); border-radius: 999px; overflow: hidden; }
  .adn-fill { height: 100%; background: linear-gradient(90deg, var(--base), var(--heart), var(--top)); border-radius: 999px; }
  .adn-pct { width: 34px; text-align: right; font-size: 0.75rem; color: var(--paper-dim); }
  .why-title { margin-top: 18px; font-size: 0.78rem; letter-spacing: 0.03em; color: var(--paper-dim); text-transform: uppercase; }
  .why-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .why-item { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; }
  .why-icon { display: flex; color: var(--top); flex-shrink: 0; }
  .why-icon svg { width: 15px; height: 15px; display: block; }

  .cmp-legend { display: flex; gap: 18px; font-size: 0.75rem; color: var(--paper-dim); margin-bottom: 12px; }
  .cmp-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: middle; }
  .cmp-dot.user { background: var(--heart); }
  .cmp-dot.perfume { background: var(--top); }
  .cmp-row { margin-bottom: 10px; }
  .cmp-label { display: block; font-size: 0.78rem; color: var(--paper-dim); margin-bottom: 4px; }
  .cmp-track { height: 6px; background: var(--track-bg); border-radius: 999px; overflow: hidden; margin-bottom: 3px; }
  .cmp-fill { height: 100%; border-radius: 999px; }
  .cmp-fill.user { background: var(--heart); }
  .cmp-fill.perfume { background: var(--top); }


  /* ---- Resultado del quiz: tarjeta de match ---- */
  .match-hero {
    position: relative; margin-top: 8px; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 36px; align-items: start;
    background: radial-gradient(520px 380px at 12% 50%, rgba(232,98,43,0.16), transparent 70%), var(--night-2);
    border: 1px solid var(--heart); border-radius: 6px; padding: 24px 34px; overflow: hidden;
    animation: mhIn .7s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes mhIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
  .mh-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .mh-glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -58%); background: radial-gradient(circle, rgba(242,166,90,0.28), transparent 68%); pointer-events: none; }
  .mh-bottle { position: relative; width: 150px; height: auto; display: block; animation: mhFloat 4.5s ease-in-out infinite; }
  @keyframes mhFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  .mh-photo-main { position: relative; display: flex; justify-content: center; }
  .mh-photo-main .pv-photo { max-width: 100%; }
  .mh-caption { font-size: 0.75rem; color: var(--paper-dim); font-style: italic; }
  .mh-kicker { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--top); }
  .mh-scoreline { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 6px; }
  .mh-score { font-family: 'Fraunces', serif; font-size: clamp(3rem, 5vw, 4rem); color: var(--heart); line-height: 1; }
  .mh-score-lbl { font-size: 0.85rem; color: var(--paper-dim); }
  .mh-name { font-family: 'Fraunces', serif; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.15; }
  .mh-brand { font-size: 0.9rem; color: var(--paper-dim); margin-top: 4px; }
  .mh-notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
  .mh-note { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; background: var(--hover-fill); }
  .mh-note i { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: flex; background: var(--night); }
  .mh-note i svg { width: 100%; height: 100%; }
  .mh-notes-text { color: var(--paper-dim); font-size: 0.9rem; margin: 12px 0 0; }
  .mh-why { margin-top: 14px; }
  .mh-why .why-item { font-size: 0.92rem; }
  .match-hero .status-row { margin-top: 18px; }
  .mh-deal { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--night-2); display: flex; flex-direction: column; gap: 4px; }
  .mh-deal-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .mh-deal-lbl { font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); width: 100%; }
  .mh-deal-price { font-family: 'Fraunces', serif; font-size: 1.9rem; color: var(--top); line-height: 1.1; }
  .mh-deal-store { color: var(--paper); font-size: 0.92rem; }
  .mh-deal-save { color: #7FD6A0; font-size: 0.88rem; }
  :root[data-theme="light"] .mh-deal-save { color: #1F7A45; }
  :root[data-theme="light"] .mh-deal-price { color: var(--base); }
  .mh-deal-n { color: var(--paper-dim); font-size: 0.8rem; }
  .mh-back { background: none; border: 1px solid var(--line); color: var(--paper); font-family: inherit; font-size: 0.86rem; padding: 9px 16px; border-radius: 999px; cursor: pointer; margin-bottom: 16px; }
  .mh-back:hover { border-color: var(--heart); }
  .mh-cta .mh-buy { text-decoration: none; display: inline-flex; align-items: center; }
  .mh-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .mh-cta .price-from { margin-right: auto; }
  .mh-cta .btn { padding: 11px 20px; }
  .mh-cta .dislike-btn { margin-top: 0; }
  .mh-details { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--hover-fill); }
  .mh-details summary { list-style: none; cursor: pointer; padding: 12px 16px; font-size: 0.88rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .mh-details summary::-webkit-details-marker { display: none; }
  .mh-details summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--paper-dim); border-bottom: 1.5px solid var(--paper-dim); transform: rotate(45deg); transition: transform .25s ease; margin-top: -4px; }
  .mh-details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
  .mh-details summary:hover { color: var(--top); }
  .mh-details-body { padding: 0 16px 16px; animation: mhOpen .35s ease; }
  @keyframes mhOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .mh-details-body .adn-block { margin-top: 14px; }
  .learn-note.mh-learn { margin-top: 10px; }
  .more-title { font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 500; margin: 46px 0 18px; }
  .alt-head { display: flex; align-items: center; gap: 10px; }
  .alt-visual { line-height: 0; flex-shrink: 0; }
  .alt-block { margin-top: 26px; }
  .alt-title { font-size: 0.78rem; letter-spacing: 0.03em; color: var(--paper-dim); text-transform: uppercase; margin-bottom: 14px; }
  .alt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .alt-card {
    border: 1px solid var(--line); border-radius: 2px; padding: 18px;
    background: var(--night-2); display: flex; flex-direction: column; gap: 6px;
  }
  .alt-label { font-size: 0.68rem; color: var(--heart); text-transform: uppercase; letter-spacing: 0.03em; }
  .alt-card[data-hero] { cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
  .alt-card[data-hero]:hover, .alt-card[data-hero]:focus-visible { transform: translateY(-2px); border-color: var(--top, #D4AF37); outline: none; }
  .alt-card h4 { font-family: 'Fraunces', serif; font-size: 0.98rem; font-weight: 500; margin: 2px 0; }
  .alt-score { font-family: 'Fraunces', serif; color: var(--top); font-size: 1.15rem; }
  .dup-note { margin-top: 16px; font-size: 0.8rem; color: var(--paper-dim); }
  .coll-profile { grid-column: 1 / -1; margin-top: 10px; }
  /* ---- Mi colección: estantes ---- */
  .coll-total { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: stretch; margin: 6px 0 14px; padding: 20px 24px; border: 1px solid color-mix(in srgb, var(--heart) 45%, var(--line)); border-radius: 12px; background: linear-gradient(100deg, color-mix(in srgb, var(--heart) 14%, transparent), transparent 70%), var(--night-2); }
  .coll-total small { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 4px; }
  .coll-total strong { display: block; font-family: 'Fraunces', serif; font-weight: 500; line-height: 1.05; color: var(--paper); }
  .coll-total span { display: block; font-size: 0.84rem; color: var(--paper-dim); margin-top: 6px; }
  .ct-main strong { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--top); } .ct-side strong { font-size: 1.6rem; }
  .ct-side { padding-left: 32px; border-left: 1px solid var(--line); }
  .shelf-price { font-size: 0.8rem; color: var(--paper-dim); margin-top: 2px; }
  .firma { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid color-mix(in srgb, var(--heart) 45%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--heart) 14%, var(--night-2)), var(--night-2)); border-radius: 18px; padding: 14px 18px; margin: 0 0 18px; }
  .firma-sh { text-decoration: none; color: inherit; transition: transform .25s, border-color .25s; } .firma-sh:hover { transform: translateY(-3px); border-color: var(--heart); }
  .firma-ph { flex: 0 0 auto; display: block; line-height: 0; } .firma-ph .pv-photo { border-radius: 12px; }
  .firma-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 140px; }
  .firma-txt small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--heart); font-weight: 700; }
  .firma-txt strong { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.2rem; overflow-wrap: anywhere; }
  .firma-txt span { font-size: .82rem; color: var(--paper-dim); }
  .firma-sel select { font: inherit; font-size: .9rem; color: var(--paper); background: var(--night); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; max-width: 280px; }
  .firma-clear { font: inherit; font-size: .8rem; color: var(--paper-dim); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
  .firma-clear:hover { color: var(--heart); border-color: var(--heart); }
  .ganas { margin-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
  .ganas-l { font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--paper-dim); }
  .ganas-s { display: inline-flex; gap: 1px; }
  .ganas-b { position: relative; border: 0; background: transparent; padding: 2px; cursor: pointer; line-height: 0; color: var(--paper-dim); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), color .15s; }
  .ganas-b svg { fill: transparent; stroke: currentColor; stroke-width: 1.6; transition: fill .15s; }
  .ganas-b::after { content: ''; position: absolute; inset: -6px -1px; }
  .ganas-b.on { color: var(--heart); } .ganas-b.on svg { fill: currentColor; }
  .ganas-b:hover { transform: scale(1.25); } .ganas-b:focus-visible { outline: 2px solid var(--heart); outline-offset: 1px; border-radius: 6px; }
  @media (prefers-reduced-motion: reduce) { .ganas-b { transition: none; } .ganas-b:hover { transform: none; } }
  @media (max-width: 640px) { .coll-total { padding: 16px 18px; } .ct-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; width: 100%; } }
  .coll-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 34px; }
  .cs { background: var(--night-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
  .cs strong { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 500; line-height: 1.1; color: var(--paper); }
  .cs strong small { font-size: 0.95rem; color: var(--paper-dim); font-weight: 400; }
  .cs span { font-size: 0.86rem; color: var(--paper-dim); }
  .shelves { display: flex; flex-direction: column; gap: 34px; }
  .shelf-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
  .shelf-head h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; }
  .shelf-ic { display: flex; } .shelf-ic svg { width: 20px; height: 20px; }
  .shelf-n { font-size: 0.8rem; background: var(--hover-fill); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--paper-dim); }
  .shelf-sub { font-size: 0.88rem; color: var(--paper-dim); margin-left: 4px; }
  .shelf { position: relative; }
  .shelf-items { display: flex; gap: 26px; align-items: flex-end; overflow-x: auto; padding: 22px 14px 0; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: 14px; margin: 0 auto; }
  .shelf-items::-webkit-scrollbar { display: none; }
  @media (hover: hover) and (pointer: fine) { .shelf.has-nav .shelf-items { cursor: grab; } }
  .shelf-items.panning { cursor: grabbing !important; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
  .shelf-items.panning * { cursor: grabbing !important; }
  .shelf-items > .shelf-item { scroll-snap-align: start; }
  /* si no caben todos, la fila mide justo un número entero de frascos (ninguno queda cortado) y se avanza con las flechas */
  .shelf.has-nav .shelf-items { width: var(--shelf-w); max-width: 100%; }
  .shelf-arrow { position: absolute; top: calc(50% - 38px); width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--night-2); color: var(--paper); display: none; place-items: center; cursor: pointer; z-index: 3; transition: border-color .2s ease, background .2s ease, opacity .2s ease; }
  .shelf.has-nav .shelf-arrow { display: grid; }
  .shelf-arrow:hover, .shelf-arrow:focus-visible { border-color: var(--heart); background: color-mix(in srgb, var(--heart) 16%, var(--night-2)); }
  .shelf-arrow.off { opacity: 0; pointer-events: none; }
  .shelf-arrow.prev { left: 0; } .shelf-arrow.next { right: 0; }
  .shelf-arrow svg { width: 18px; height: 18px; }
  .shelf-board { height: 12px; border-radius: 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--base) 55%, var(--night-2)), color-mix(in srgb, var(--base) 30%, var(--night))); box-shadow: 0 10px 22px rgba(0,0,0,0.35); }
  .shelf-item { flex: 0 0 auto; width: 118px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding-bottom: 10px; animation: shelfIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
  @keyframes shelfIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .shelf-item.leaving { animation: shelfOut .26s ease forwards; }
  @keyframes shelfOut { to { opacity: 0; transform: translateY(10px) scale(.9); } }
  .shelf-bottle { line-height: 0; margin-bottom: 8px; transition: transform .3s cubic-bezier(.3,1.4,.5,1), filter .3s ease; }
  .shelf-item:hover .shelf-bottle { transform: translateY(-8px); filter: drop-shadow(0 8px 14px rgba(232,98,43,0.35)); }
  .shelf-name { font-size: 0.92rem; line-height: 1.2; }
  .shelf-brand { font-size: 0.8rem; color: var(--paper-dim); }
  .shelf-actions { display: flex; gap: 6px; margin-top: 6px; opacity: .45; transition: opacity .2s ease; }
  .shelf-item:hover .shelf-actions, .shelf-item:focus-within .shelf-actions { opacity: 1; }
  @media (hover: none) { .shelf-actions { opacity: 1; } }
  .shelf-act { font-family: 'Fraunces', serif; font-size: 0.76rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--night-2); color: var(--paper); cursor: pointer; }
  .shelf-act:hover { border-color: var(--heart); color: var(--heart); }
  .shelf-remove:hover { border-color: #E5484D; color: #E5484D; }
  .coll-sub { font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 500; margin: 56px 0 6px; padding-top: 36px; border-top: 1px solid var(--line); }
  .coll-analytics { margin-top: 28px; }
  .coll-insight { margin: 0; border-top: none; padding-top: 0; color: var(--paper-dim); }
  .cov { display: flex; width: 20px; flex-shrink: 0; }
  .cov svg { width: 18px; height: 18px; }
  .cov-ok { color: #6FBF73; } .cov-warn { color: #E9C46A; } .cov-miss { color: #E5484D; }
  .coll-empty { text-align: center; padding: 50px 20px 60px; border: 1px dashed var(--line); border-radius: 8px; color: var(--paper-dim); }
  .coll-empty-art { width: 240px; max-width: 80%; height: auto; color: var(--paper-dim); margin-bottom: 18px; }
  .coll-empty h3 { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 500; color: var(--paper); margin-bottom: 8px; }
  .coll-empty p { max-width: 46ch; margin: 0 auto 22px; }
  .coll-empty b { color: var(--paper); font-weight: 500; }
  .coll-empty-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .coll-account { max-width: 520px; margin: 26px auto 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--paper) 3%, transparent); }
  .coll-account p { margin: 0 0 14px; max-width: none; font-size: .94rem; line-height: 1.5; }
  .coll-tip { max-width: 46ch; margin: 24px auto 0; font-size: .9rem; line-height: 1.5; }
  .coll-tip a { color: var(--top); }
  .hoy { display: grid; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--night-2); }
  .hoy-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .hoy-t { flex: 1 1 100%; font-size: .98rem; }
  @media (min-width: 620px) { .hoy-t { flex: 1 1 auto; } }
  .hoy-row .btn { padding: 8px 14px; font-size: .85rem; }
  .hoy-row select { flex: 1 1 130px; min-height: 38px; font-family: inherit; font-size: 16px; color: var(--paper); background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
  .hoy-msg { margin: 0; color: var(--paper-dim); font-size: .9rem; } .hoy-otros { margin: 0; color: var(--paper-dim); font-size: .85rem; }
  .hoy-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--night)); }
  .hoy-pick > div { display: grid; gap: 2px; min-width: 0; } .hoy-pick strong { font-size: 1.05rem; } .hoy-pick span, .hoy-pick small { color: var(--paper-dim); font-size: .85rem; }
  .hoy-manual { display: flex; gap: 8px; flex-wrap: wrap; }
  .coll-note { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: .9rem; color: var(--paper-dim); }
  .coll-note button { flex: none; }
  .card-rate { font-size: .82rem; color: var(--paper-dim); white-space: nowrap; }
  .card-rate b { color: var(--top); font-weight: 400; }
  .card-rate small { font-size: .74rem; opacity: .8; }
  .card-rate-slot:empty { display: none; }
  .head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .sh-view a.shelf-item { color: inherit; text-decoration: none; }
  .sh-view .shelf-bottle { cursor: pointer; }
  .sh-price { font-size: .8rem; color: var(--paper-dim); }
  .sh-load { color: var(--paper-dim); padding: 30px 0; text-align: center; }
  .sh-cta { margin: 34px auto 0; max-width: 560px; text-align: center; padding: 22px; border: 1px dashed var(--line); border-radius: 16px; color: var(--paper-dim); }
  .sh-cta h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem; color: var(--paper); margin: 0 0 6px; }
  .sh-cta p { margin: 0 0 16px; }


  .account-btn span { font-family: 'Fraunces', serif; font-size: 0.85rem; font-weight: 600; }
  .account-overlay {
    position: fixed; inset: 0; background: rgba(10,12,21,0.86); backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
  }
  .account-overlay.open { display: flex; }
  .account-panel { max-width: 420px; }
  .account-list { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
  .account-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px;
  }
  .account-row.active { border-color: var(--heart); }
  .account-row-name { font-size: 0.92rem; }
  .account-row-actions { display: flex; gap: 8px; align-items: center; }
  .account-use-btn, .account-del-btn {
    background: none; border: none; font-family: 'Fraunces', serif; font-size: 0.78rem;
    cursor: pointer; color: var(--paper-dim); padding: 0; border-bottom: 1px solid transparent;
  }
  .account-use-btn:hover { color: var(--top); border-color: var(--top); }
  .account-del-btn:hover { color: var(--heart); border-color: var(--heart); }
  .account-new { margin-top: 20px; display: flex; gap: 10px; }
  .account-input {
    flex: 1; border: 1px solid var(--line); border-radius: 2px; background: var(--night);
    color: var(--paper); font-family: 'Fraunces', serif; font-size: 0.88rem; padding: 10px 12px;
  }
  .learn-note { margin-top: 16px; font-size: 0.78rem; color: var(--paper-dim); }
  .dislike-btn {
    background: none; border: none; color: var(--paper-dim); font-size: 0.76rem;
    cursor: pointer; font-family: 'Fraunces', serif; padding: 0; margin-top: 8px;
    border-bottom: 1px solid var(--paper-dim); align-self: flex-start;
  }
  .dislike-btn:hover { color: var(--heart); border-color: var(--heart); }
  .compare-note { margin-top: 18px; font-size: 0.75rem; color: var(--paper-dim); }
  .close-btn {
    margin-top: 24px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 2px;
    background: transparent; color: var(--paper); font-family: 'Fraunces', serif; cursor: pointer;
  }
  .close-btn:hover { border-color: var(--paper); }

  /* SECONDARY */
  .secondary { padding: 20px 0 110px; border-top: 1px solid var(--line); }
  .sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .sec-card { padding: 36px 30px; border-right: 1px solid var(--line); }
  .sec-card:last-child { border-right: none; }
  .sec-num { font-family: 'Fraunces', serif; font-style: italic; color: var(--paper-dim); font-size: 1.6rem; }
  .sec-card h3 { font-size: 1.1rem; margin: 14px 0 10px; font-weight: 500; }
  .sec-card p { color: var(--paper-dim); font-size: 0.88rem; }

  footer { border-top: 1px solid var(--line); padding: 40px 0; }
  footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--paper-dim); font-size: 0.8rem; }
  .hist { margin-top: 14px; font-size: .88rem; color: var(--paper-dim); }
  .hist:empty { display: none; }
  .hist svg { width: 100%; max-width: 340px; height: auto; display: block; margin: 4px 0; }
  .hist .hist-t { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
  .hist .drop { color: #5BBF7A; font-weight: 600; }
  .hist .rise { color: var(--heart); font-weight: 600; }
  .btn.share-btn { background: transparent; border: 1px solid var(--line); color: var(--paper); }
  .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
  .foot-links a { color: var(--paper-dim); text-decoration: underline; text-underline-offset: 3px; }
  .foot-links a:hover, .foot-links a:focus-visible { color: var(--paper); }

  @media (max-width: 860px) {
    .pyramid-intro .wrap { grid-template-columns: 1fr; gap: 36px; }
    .pi-band { height: 108px; }
    .pi-chip-img { width: 42px; height: 42px; }
    .finder-head { grid-template-columns: 1fr; }
    .quiz-shell { grid-template-columns: 1fr; padding: 20px 16px; gap: 18px; }
    .lab { order: -1; border-left: none; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
    .lab-grid { grid-template-columns: 92px 1fr; }
    .lab-bottle svg { width: 92px; }
    .tubes svg { margin-bottom: 14px; transform: none; }
    .lab-bottle svg { transform: scale(1.1); }
    .tube-lbl { font-size: 13.5px; }
    .tube-pct { font-size: 15px; }
    .game-stage { min-height: 0; }
    .tile-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
    .tile { min-height: 100px; padding: 9px 8px 8px; gap: 6px; font-size: 0.9rem; }
    .tile-icon svg { width: 41px; height: 41px; }
    .budget-value { font-size: 1.9rem; }
    .budget-coins { width: 96px; }
    .game-actions { flex-wrap: wrap; }
    .ghost-reset { margin-left: 0; order: 3; width: 100%; text-align: center; }
    .card, .card.wide { grid-column: span 6; flex-direction: column; }
    .sec-grid { grid-template-columns: 1fr; }
    .sec-card { border-right: none; border-bottom: 1px solid var(--line); }
    .nav-page-links { display: none; }
    .nav-search.open .nav-search-input { width: 140px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-rings { height: 260px; order: -1; }
    .reveal-card { flex-direction: column; text-align: center; }
    .match-hero { grid-template-columns: 1fr; gap: 12px; padding: 16px 16px 20px; margin-top: 4px; }
    .mh-bottle { width: 110px; }
    .mh-glow { width: 170px; height: 170px; }
    .mh-cta .price-from { width: 100%; }
    .coll-analytics { grid-template-columns: 1fr; }
    .coll-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shelf-item { width: 176px !important; } .shelf-bottle .pv-photo { width: 150px !important; height: 188px !important; }
    .alt-grid { grid-template-columns: 1fr; }
  }


  /* ================= BUSCAR POR NOTAS ================= */
  @property --haze { syntax: '<color>'; inherits: false; initial-value: rgba(232,98,43,0.10); }
  @property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }


  /* ---- Tarjetas de perfume: 3 por fila, foto grande, sin barras ---- */
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .card, .bento .card.wide, .bento .card.full { grid-column: span 1; flex-direction: column; align-items: stretch; gap: 12px; padding: 24px 22px; text-align: center; }
  .bento .card-visual { display: flex; justify-content: center; align-items: center; min-height: 250px; }
  .bento .card { cursor: pointer; }
  .bento .card:hover { background: var(--night-2); }
  .bento .card-titles { flex: none; }
  .bento .card h3 { font-size: 1.2rem; line-height: 1.25; }
  .bento .card-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
  .bento .fam-tag { white-space: normal; }
  .bento .notes { font-size: 0.86rem; }
  .bento .status-row, .bento .card .status-row { justify-content: center; flex-wrap: wrap; }
  .bento .card-bottom { flex-direction: column; gap: 8px; }
  .bento .empty-state { grid-column: 1 / -1; }
  @media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .bento .card { padding: 18px 12px; gap: 10px; } .bento .card h3 { font-size: 1rem; } .bento .card-visual { min-height: 170px; } .bento .card-visual .pv-photo { width: 140px !important; height: 168px !important; } .bento .notes { font-size: 0.78rem; } .bento .status-btn { padding: 6px 9px; font-size: 0.72rem; } .bento .fam-tag { font-size: 0.66rem; padding: 3px 7px; } }
  /* ---- Catálogo con filtros ---- */
  .cat-bar { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
  .cat-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .cat-field label { font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }
  .cat-field input, .cat-field select { width: 100%; font-family: 'Fraunces', serif; font-size: 0.9rem; color: var(--paper); background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; min-height: 42px; }
  .cat-field input:focus, .cat-field select:focus { border-color: var(--heart); }
  .cat-field select option { background: var(--night-2); color: var(--paper); }
  .cat-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 18px; color: var(--paper-dim); font-size: 0.9rem; }
  .cat-meta strong { color: var(--paper); }
  .cat-clear { background: none; border: none; color: var(--top); font-family: inherit; font-size: 0.86rem; cursor: pointer; text-decoration: underline; padding: 8px 0; }
  .cat-more-wrap.loading::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--top); animation: catSpin .8s linear infinite; }
  @keyframes catSpin { to { transform: rotate(360deg); } }
  .cat-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; color: var(--paper-dim); font-size: 0.84rem; }
  @media (max-width: 980px) { .cat-bar { grid-template-columns: repeat(3, 1fr); } .cat-field.q { grid-column: 1 / -1; } }
  @media (max-width: 560px) { .cat-bar { grid-template-columns: repeat(2, 1fr); } .cat-field:last-child { grid-column: 1 / -1; } }
  @media (max-width: 620px) {
    .mode-btn { font-size: 0.8rem; padding: 9px 6px; line-height: 1.15; }
    .mode-btn .mode-new { display: none; }
    .results-head { flex-wrap: nowrap; gap: 10px; align-items: center; margin-bottom: 8px; }
    .results-head h2, .results-head h1 { font-size: 1.25rem; }
    .results-head .btn { white-space: nowrap; padding: 7px 12px; font-size: .8rem; }
    .mh-cta .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
  }
  .mode-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--night-2); margin-bottom: 30px; }
  .mode-btn { font-family: 'Fraunces', serif; font-size: 0.9rem; color: var(--paper-dim); background: transparent; border: none; border-radius: 999px; padding: 9px 18px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all .25s ease; }
  .mode-btn:hover { color: var(--paper); }
  .mode-btn.active { background: var(--btn-bg); color: var(--on-accent); }
  .mode-new { font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #F2A65A; color: #1C140D; font-weight: 600; }
  .finder-alt { margin: 18px 0 0; font-size: 0.92rem; color: var(--paper-dim); }
  .finder-alt a { color: var(--heart); border-bottom: 1px solid var(--heart); text-decoration: none; }

  .nb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 14px; }
  .nb-head h2, .nb-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; }
  .nb-head h2 em, .nb-head h1 em { color: var(--heart); }
  .nb-head p { color: var(--paper-dim); max-width: 50ch; margin: 0; }
  .nb-presets { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 24px; }
  .nb-presets > span { font-size: 0.85rem; color: var(--paper-dim); font-style: italic; margin-right: 4px; }
  .nb-preset { font-family: 'Fraunces', serif; font-size: 0.85rem; color: var(--paper); background: var(--hover-fill); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all .2s ease; }
  .nb-preset:hover { border-color: var(--heart); transform: translateY(-2px); }
  .nb-mini-stack { display: flex; }
  .nb-mini-stack i { width: 22px; height: 22px; border-radius: 50%; background: var(--night-2); border: 1.5px solid var(--line); margin-left: -7px; display: flex; overflow: hidden; }
  .nb-mini-stack i:first-child { margin-left: 0; }
  .nb-mini-stack svg { width: 100%; height: 100%; }

  .nb-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: 22px; align-items: start; }
  .nb-panel { background: var(--night-2); border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
  .nb-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
  .nb-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
  .nb-tab { font-family: 'Fraunces', serif; font-size: 0.82rem; color: var(--paper-dim); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all .2s ease; }
  .nb-tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); }
  .nb-tab:hover { color: var(--paper); border-color: var(--paper-dim); }
  .nb-tab.active { color: var(--paper); border-color: var(--fc); background: color-mix(in srgb, var(--fc) 16%, transparent); }
  .nb-search { flex: 0 1 200px; font-family: 'Fraunces', serif; font-size: 0.85rem; color: var(--paper); background: var(--night); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; outline: none; }
  .nb-search:focus { border-color: var(--heart); }
  .nb-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .nb-note { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 10px; background: var(--hover-fill); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; user-select: none; transition: border-color .2s ease, transform .2s ease, background .2s ease, opacity .25s ease; animation: nbNoteIn .4s ease both; animation-delay: calc(var(--i) * 22ms); }
  @keyframes nbNoteIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
  .nb-note:hover { border-color: var(--paper-dim); transform: translateY(-3px); }
  .nb-note-img { width: 64px; height: 64px; border-radius: 50%; display: flex; overflow: hidden; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--nc) 35%, var(--night-2)), var(--night-2) 78%); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s cubic-bezier(.3,1.4,.5,1), box-shadow .3s ease; }
  .nb-note-img svg { width: 100%; height: 100%; }
  .nb-note:hover .nb-note-img { transform: scale(1.08) rotate(-6deg); }
  .nb-note-name { font-size: 0.86rem; text-align: center; line-height: 1.2; }
  .nb-note-tier { font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tc); }
  :root[data-theme="light"] .nb-note-tier, :root[data-theme="light"] .nb-rlbl { color: color-mix(in srgb, var(--tc) 55%, #000); }
  .nb-note-ex { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: transparent; color: var(--paper-dim); opacity: 0; transition: opacity .2s ease, color .2s ease, background .2s ease; display: flex; align-items: center; justify-content: center; }
  .nb-note-ex svg { width: 15px; height: 15px; }
  .nb-note:hover .nb-note-ex, .nb-note.excluded .nb-note-ex { opacity: 1; }
  @media (hover: none) { .nb-note-ex { opacity: .7; } }
  .nb-note-ex:hover { color: #E5484D; background: rgba(229,72,77,0.12); }
  .nb-note-badge { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--btn-bg); color: var(--on-accent); font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
  .nb-note.selected { border-color: var(--heart); background: color-mix(in srgb, var(--heart) 12%, transparent); }
  .nb-note.selected .nb-note-img { box-shadow: 0 0 0 2px var(--heart), 0 0 18px color-mix(in srgb, var(--nc) 70%, transparent); }
  .nb-note.selected .nb-note-badge { transform: scale(1); }
  .nb-note.excluded { opacity: .5; }
  .nb-note.excluded .nb-note-img { filter: grayscale(1); }
  .nb-note.excluded .nb-note-name { text-decoration: line-through; }
  .nb-note.excluded .nb-note-ex { color: #E5484D; }
  .nb-empty-notes { grid-column: 1 / -1; color: var(--paper-dim); font-style: italic; padding: 30px 0; text-align: center; }

  .nb-pyr-panel { position: sticky; top: 96px; overflow: hidden; background: radial-gradient(420px 320px at 50% 70%, var(--haze), transparent 75%), var(--night-2); transition: --haze 1s ease; }
  .nb-pyr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
  .nb-pyr-title { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); }
  .nb-pyr-count { font-size: 0.82rem; color: var(--paper-dim); }
  .nb-pyr-count strong { color: var(--top); }
  .nb-pyramid { position: relative; display: flex; flex-direction: column; gap: 6px; }
  .nb-pyramid.shake { animation: nbShake .45s ease; }
  @keyframes nbShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
  .nb-band { position: relative; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 12px; transition: background .5s ease; }
  .nb-band[data-tier="salida"] { clip-path: polygon(33% 0, 67% 0, 78% 100%, 22% 100%); background: linear-gradient(180deg, rgba(242,166,90,0.10), rgba(242,166,90,0.20)); }
  .nb-band[data-tier="corazon"] { clip-path: polygon(21.5% 0, 78.5% 0, 89.5% 100%, 10.5% 100%); background: linear-gradient(180deg, rgba(232,98,43,0.10), rgba(232,98,43,0.20)); }
  .nb-band[data-tier="fondo"] { clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(184,69,26,0.12), rgba(184,69,26,0.24)); }
  .nb-band.lit[data-tier="salida"] { background: linear-gradient(180deg, rgba(242,166,90,0.22), rgba(242,166,90,0.40)); }
  .nb-band.lit[data-tier="corazon"] { background: linear-gradient(180deg, rgba(232,98,43,0.22), rgba(232,98,43,0.40)); }
  .nb-band.lit[data-tier="fondo"] { background: linear-gradient(180deg, rgba(184,69,26,0.26), rgba(184,69,26,0.46)); }
  .nb-band.pulse { animation: nbBandPulse .6s ease; }
  @keyframes nbBandPulse { 40% { filter: brightness(1.8); } }
  .nb-band-label { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); }
  .nb-band-empty { font-size: 0.72rem; color: var(--paper-dim); opacity: .6; font-style: italic; margin-bottom: 10px; }
  .nb-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 72%; }
  .nb-band[data-tier="fondo"] .nb-chips { max-width: 82%; }
  .nb-pchip { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; background: none; border: none; padding: 0; color: var(--paper); font-family: 'Fraunces', serif; }
  .nb-pchip-img { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: flex; background: var(--night-2); box-shadow: 0 0 0 2px var(--line), 0 4px 14px rgba(0,0,0,0.3); transition: transform .2s ease; }
  .nb-pchip-img svg { width: 100%; height: 100%; }
  .nb-pc { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: grab; }
  .nb-pc.dragging { opacity: .45; }
  .nb-pc.moved .nb-pchip-img { box-shadow: 0 0 0 2px var(--heart), 0 4px 14px rgba(0,0,0,0.4); }
  .nb-pmv { display: flex; gap: 3px; min-height: 18px; }
  .nb-pmv button { width: 22px; height: 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--night-2); color: var(--paper-dim); font-size: 0.58rem; line-height: 1; cursor: pointer; padding: 0; }
  .nb-pmv button:hover, .nb-pmv button:focus-visible { color: var(--paper); border-color: var(--heart); }
  .nb-band.drop { outline: 2px dashed var(--heart); outline-offset: -3px; }
  .nb-pchip span:last-child { font-size: 0.66rem; line-height: 1.1; max-width: 62px; text-align: center; }
  .nb-pchip:hover .nb-pchip-img { transform: scale(1.1); box-shadow: 0 0 0 2px #E5484D; }
  .nb-pchip.incoming { opacity: 0; }
  .nb-pchip.landed .nb-pchip-img { animation: nbLand .45s cubic-bezier(.3,1.6,.5,1); }
  @keyframes nbLand { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
  .nb-pchip.leaving { animation: nbLeave .25s ease forwards; }
  @keyframes nbLeave { to { transform: scale(.3); opacity: 0; } }
  .nb-aroma { position: absolute; bottom: 0; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; animation: nbAromaRise linear infinite; opacity: 0; }
  @keyframes nbAromaRise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .75; } 100% { transform: translateY(-340px) scale(1.4); opacity: 0; } }
  .nb-excl { margin-top: 14px; min-height: 30px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--paper-dim); }
  .nb-xchip { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid rgba(229,72,77,0.45); background: rgba(229,72,77,0.08); color: var(--paper); font-family: 'Fraunces', serif; font-size: 0.78rem; cursor: pointer; }
  .nb-xchip i { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: flex; filter: grayscale(1); position: relative; }
  .nb-xchip i svg { width: 100%; height: 100%; }
  .nb-xchip i::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #E5484D; transform: rotate(45deg); }
  .nb-pyr-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
  .nb-pyr-hint { font-size: 0.78rem; color: var(--paper-dim); }
  .nb-clear { font-family: 'Fraunces', serif; font-size: 0.82rem; color: var(--paper-dim); background: none; border: none; border-bottom: 1px solid var(--paper-dim); cursor: pointer; padding: 0; }
  .nb-clear:hover { color: var(--heart); border-color: var(--heart); }
  .nb-flyer { position: fixed; z-index: 1000; border-radius: 50%; overflow: hidden; pointer-events: none; background: var(--night-2); box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 24px var(--fc); }
  .nb-flyer svg { width: 100%; height: 100%; display: block; }
  .nb-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; background: var(--night-2); border: 1px solid var(--heart); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 0.88rem; transition: all .3s ease; z-index: 1100; pointer-events: none; }
  .nb-toast.show { opacity: 1; transform: translate(-50%, 0); }

  .nb-results { margin-top: 34px; }
  .nb-res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
  .nb-res-head h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 500; margin: 0; }
  .nb-res-sub { font-size: 0.85rem; color: var(--paper-dim); }
  .nb-rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .nb-rempty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--paper-dim); border: 1px dashed var(--line); border-radius: 6px; }
  .nb-rempty strong { color: var(--paper); font-weight: 500; }
  .nb-rcard { position: relative; background: var(--night-2); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 14px; isolation: isolate; }
  .nb-rcard.perfect { border-color: transparent; }
  .nb-rcard.perfect::before { content: ''; position: absolute; inset: -1px; border-radius: 7px; padding: 1.5px; z-index: -1; background: conic-gradient(from var(--ang, 0deg), #F2A65A, #E8622B, #D9678A, #F2C14E, #F2A65A); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: nbSpinBorder 4s linear infinite; }
  @keyframes nbSpinBorder { to { --ang: 360deg; } }
  .nb-perfect-badge { position: absolute; top: -10px; right: 14px; background: linear-gradient(90deg, #E8622B, #F2A65A); color: #1C140D; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
  .nb-rtop { display: flex; gap: 12px; align-items: center; }
  .nb-rbottle { flex-shrink: 0; line-height: 0; }
  .nb-rname { font-size: 1.08rem; font-weight: 500; line-height: 1.2; }
  .nb-rbrand { font-size: 0.8rem; color: var(--paper-dim); }
  .nb-rmatch { margin-left: auto; text-align: right; flex-shrink: 0; }
  .nb-rdots { display: flex; gap: 4px; justify-content: flex-end; }
  .nb-rdots i { width: 9px; height: 9px; border-radius: 50%; background: var(--track-bg); box-shadow: inset 0 0 0 1px var(--line); }
  .nb-rdots i.on { background: var(--heart); box-shadow: 0 0 8px rgba(232,98,43,0.7); }
  .nb-rmatch-txt { font-size: 0.76rem; color: var(--top); margin-top: 4px; white-space: nowrap; }
  .nb-rpyr { display: flex; flex-direction: column; gap: 7px; }
  .nb-rrow { display: flex; align-items: center; gap: 10px; }
  .nb-rlbl { width: 56px; font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tc); flex-shrink: 0; }
  .nb-rnotes { display: flex; gap: 5px; flex-wrap: wrap; }
  .nb-rnone { color: var(--paper-dim); font-size: 0.8rem; }
  .nb-rn { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: flex; background: var(--night); opacity: .42; }
  .nb-rn svg { width: 100%; height: 100%; }
  .nb-rn.hit { opacity: 1; box-shadow: 0 0 0 2px var(--heart), 0 0 12px rgba(232,98,43,0.55); }
  .nb-rhits { font-size: 0.78rem; color: var(--paper-dim); }
  .nb-rhits b { color: var(--paper); font-weight: 500; }
  .nb-rfoot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; font-size: 0.85rem; color: var(--paper-dim); }
  .nb-rfoot strong { color: var(--paper); font-size: 1.05rem; font-weight: 500; }
  .nb-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
  .nb-notes-more-wrap { display: flex; justify-content: center; margin-top: 14px; }

  @media (max-width: 980px) {
    .nb-layout { grid-template-columns: 1fr; }
    .nb-pyr-panel { position: relative; top: 0; order: -1; }
    .nb-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 620px) {
    .mode-switch { display: flex; }
    .mode-btn { flex: 1; justify-content: center; padding: 9px 10px; font-size: 0.84rem; }
    .nb-rgrid { grid-template-columns: 1fr; }
    .nb-notes { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
    .nb-note-img { width: 56px; height: 56px; }
    .nb-band { height: 100px; }
    .nb-pchip-img { width: 38px; height: 38px; }
    .nb-search { flex: 1 1 100%; }
    .nb-panel { padding: 18px 14px; }
  }

  /* CUSTOM CURSOR */
  @media (pointer: fine) {
    body, a, button, input[type=range], .tile, .nb-note, .pi-leg, .step-dot, .navlink, .link-btn, .status-btn, .close-btn, .account-use-btn, .account-del-btn { cursor: none; }
  }
  .custom-cursor {
    position: fixed; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%;
    border: 1.5px solid var(--heart); pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); opacity: 0;
    transition: width .18s ease, height .18s ease, background-color .18s ease, border-color .18s ease, opacity .2s ease;
  }
  .custom-cursor::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px;
    border-radius: 50%; background: var(--heart); transform: translate(-50%, -50%);
  }
  .custom-cursor.visible { opacity: 1; }
  .custom-cursor.hover { width: 40px; height: 40px; background: rgba(232,98,43,0.12); }
  .custom-cursor.pressed { width: 16px; height: 16px; background: rgba(232,98,43,0.22); }
  @media (pointer: coarse) { .custom-cursor { display: none; } }


  /* ---- Legibilidad: tamaños mínimos de textos secundarios ---- */
  .notes, .reveal-info .notes { font-size: 0.92rem; }
  .card .brand { font-size: 0.86rem; }
  .fam-tag { font-size: 0.78rem; }
  .mini-pyr .bar-row .lbl { font-size: 0.74rem; width: 50px; }
  .why-item { font-size: 0.92rem; }
  .adn-title, .why-title, .alt-title { font-size: 0.8rem; }
  .adn-label { font-size: 0.86rem; width: 84px; }
  .adn-pct { font-size: 0.8rem; width: 38px; }
  .cmp-label { font-size: 0.84rem; }
  .cmp-legend { font-size: 0.82rem; }
  .alt-label { font-size: 0.74rem; }
  .learn-note, .dup-note { font-size: 0.86rem; }
  .game-live { font-size: 0.88rem; }
  .drop-hint { font-size: 0.86rem; }
  .lab-caption, .lab-title { font-size: 0.8rem; }
  .budget-scale { font-size: 0.8rem; }
  .store-per-ml { font-size: 0.74rem; }
  .compare-note { font-size: 0.8rem; }
  .occ-label { font-size: 0.88rem; width: 66px; }
  .occ-count { font-size: 0.84rem; }
  .coll-gap { font-size: 0.9rem; }
  .sec-card p { font-size: 0.94rem; }
  footer .wrap { font-size: 0.85rem; }
  .status-btn { font-size: 0.8rem; }
  .mh-caption { font-size: 0.82rem; }
  .nb-note-tier, .nb-band-label, .nb-rlbl { font-size: 0.72rem; }
  .nb-pchip span:last-child { font-size: 0.72rem; }
  .nb-rhits { font-size: 0.84rem; }
  .nb-rmatch-txt { font-size: 0.8rem; }
  .nb-pyr-hint, .nb-excl { font-size: 0.84rem; }
  .dislike-btn { font-size: 0.82rem; }



  /* ---- Tamaños mínimos (12px) para etiquetas ---- */
  .mode-new { font-size: 0.75rem; padding: 2px 8px; }
  .nb-perfect-badge { font-size: 0.75rem; }
  .nb-note-tier, .nb-band-label, .nb-rlbl, .nb-pchip span:last-child, .pi-band-label { font-size: 0.75rem; }
  .alt-label { font-size: 0.76rem; }
  .mini-pyr .bar-row .lbl { font-size: 0.77rem; }
  .nb-band-empty { font-size: 0.78rem; }

  /* ---- Combinaciones sugeridas en una fila ---- */
  .nb-presets > span { flex-basis: 100%; margin: 0 0 2px; }
  @media (max-width: 860px) {
    .nb-presets { flex-wrap: nowrap; overflow-x: auto; margin-left: -30px; margin-right: -30px; padding: 4px 30px 8px; scrollbar-width: none; }
    .nb-presets::-webkit-scrollbar { display: none; }
    .nb-presets > span { display: none; }
    .nb-preset { flex-shrink: 0; }
  }

  /* ---- Avisos de precio en la colección ---- */
  .pw-banner { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--ok) 60%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--ok) 9%, transparent); }
  .pw-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: .9rem; }
  .pw-banner b { display: block; font-weight: 600; } .pw-banner small { display: block; color: var(--paper-dim); margin-top: 2px; }
  .pw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .pw-chip { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--paper); font: inherit; font-size: .85rem; padding: 5px 12px; cursor: pointer; } .pw-chip i { font-style: normal; color: var(--ok); font-weight: 700; margin-left: 4px; }
  .pw-chip:hover { border-color: var(--ok); }
  .pw-now { font-size: .8rem; color: var(--paper-dim); } .pw-now b { color: var(--ok); font-weight: 600; }
  .shelf-bottle { position: relative; }
  .shelf-bottle .drop-badge { top: 4px; left: -6px; font-size: .68rem; padding: 3px 8px; }
  nav.top .navlink.has-drop::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: 6px; vertical-align: middle; animation: dropsPulse 1.8s infinite; }
  .bottom-nav a.has-drop { position: relative; } .bottom-nav a.has-drop::after { content: ""; position: absolute; top: 6px; right: calc(50% - 20px); width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid var(--night); animation: none; margin: 0; }

  /* ---- Cuenta de Parfumons ---- */
  .cuenta-box { margin: 4px 0 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--top) 6%, transparent); }
  .cuenta-box > b { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 500; }
  .cuenta-box p { margin: 6px 0 12px; color: var(--paper-dim); font-size: .9rem; line-height: 1.45; }
  .cb-btns { display: flex; gap: 10px; flex-wrap: wrap; }
  .cb-who { display: flex; align-items: center; gap: 12px; }
  .cb-av { width: 42px; height: 42px; border-radius: 50%; background: var(--heart); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
  .cb-who b { display: block; } .cb-who small { color: var(--paper-dim); word-break: break-all; }

  /* ---- Buscador del inicio ---- */
  .hero { overflow: hidden; overflow: clip visible; }
  .hero-search { position: relative; z-index: 30; margin-top: 26px; max-width: 520px; display: flex; align-items: center; cursor: auto;
    background: color-mix(in srgb, var(--night-2) 82%, transparent); border: 1px solid var(--line); border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,.22); transition: border-color .2s ease, box-shadow .2s ease; backdrop-filter: blur(8px); }
  .hero-search:focus-within { border-color: var(--top); box-shadow: 0 0 0 4px color-mix(in srgb, var(--top) 22%, transparent), 0 12px 34px rgba(0,0,0,.28); }
  .hero-search .hs-ico { position: absolute; left: 18px; color: var(--paper-dim); pointer-events: none; }
  .hero-search input { flex: 1; min-width: 0; height: 54px; padding: 0 8px 0 50px; border: 0; background: transparent; color: var(--paper);
    font: inherit; font-size: 1rem; outline: none; cursor: text; -webkit-appearance: none; appearance: none; }
  .hero-search input::-webkit-search-cancel-button { display: none; }
  .hero-search input::placeholder { color: var(--paper-dim); opacity: 1; }
  .hs-go { flex: none; width: 42px; height: 42px; margin-right: 6px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    background: var(--heart); color: #fff; transition: transform .2s ease, filter .2s ease; }
  .hs-go:hover { transform: translateX(2px); filter: brightness(1.08); }
  .hs-sug { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 6px; border-radius: 18px; border: 1px solid var(--line);
    background: var(--night-2); box-shadow: 0 22px 50px rgba(0,0,0,.45); max-height: min(430px, 60vh); overflow-y: auto; animation: hsIn .18s ease both; }
  @keyframes hsIn { from { opacity: 0; transform: translateY(-6px); } }
  .hs-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; text-decoration: none; color: var(--paper); }
  .hs-item[aria-selected="true"], .hs-item:hover { background: color-mix(in srgb, var(--top) 14%, transparent); }
  .hs-thumb { flex: none; width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.92); }
  .hs-thumb .pv-photo img { width: 100%; height: 100%; object-fit: contain; }
  .hs-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .hs-txt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hs-txt b mark { background: none; color: var(--top); }
  .hs-txt small { color: var(--paper-dim); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hs-price { flex: none; font-size: .86rem; color: var(--top); font-variant-numeric: tabular-nums; }
  .hs-price.no { color: var(--paper-dim); font-size: .76rem; }
  .hs-all { display: block; width: 100%; margin-top: 4px; padding: 11px 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px;
    background: none; color: var(--top); font: inherit; font-size: .9rem; text-align: center; cursor: pointer; }
  .hs-all[aria-selected="true"], .hs-all:hover { background: color-mix(in srgb, var(--top) 10%, transparent); }
  .hs-empty { padding: 14px 12px; color: var(--paper-dim); font-size: .92rem; }
  .hs-fix { padding: 6px 10px 2px; color: var(--paper-dim); font-size: .8rem; }
  .hs-fix i { color: var(--paper); }
  .hero-search + .hero-cta { margin-top: 18px; }
  @media (max-width: 860px) {
    .hero-search { margin-top: 18px; max-width: none; }
    .hero-search input { height: 50px; font-size: 16px; padding-left: 46px; }
    .hero-search .hs-ico { left: 16px; }
    .hs-go { width: 38px; height: 38px; }
    .hero-search + .hero-cta { margin-top: 14px; }
  }

  /* ---- Botones del inicio sin cortarse en celular ---- */
  .hero-cta { flex-wrap: wrap; }
  .hero-cta .btn { white-space: nowrap; }
  @media (max-width: 480px) {
    .hero-cta { gap: 10px; }
    .hero-cta .btn { flex: 1 1 auto; padding: 15px 18px; }
  }

  /* ---- Accesibilidad y navegación (revisión v35) ---- */
  .status-btn.active { color: var(--on-accent); }
  .status-btn.active[data-status="guardado"] { color: #fff; }
  :root[data-theme="light"] .status-btn.active[data-status="tiene"], :root[data-theme="light"] .status-btn.active[data-status="guardado"] { color: #fff; }
  .alt-card .link-btn { align-self: flex-start; }
  .mh-verdict { display: inline-block; margin: 0 0 6px; font-size: 0.82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--vc); color: var(--vc); }
  .alt-verdict { font-size: 0.8rem; color: var(--paper-dim); margin-left: 6px; font-family: 'Fraunces', serif; }
  .bento { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }

  /* Zonas táctiles de al menos 44px sin mover el diseño */
  .pi-dot { width: 32px; height: 32px; background: none; display: inline-flex; align-items: center; justify-content: center; }
  .pi-dot::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: all .3s ease; }
  .pi-dot.active { width: 40px; background: none; }
  .pi-dot.active::before { width: 24px; background: var(--heart); }
  .pi-dots { gap: 0; }
  @media (pointer: coarse) {
    .link-btn, .dislike-btn, .nb-clear, .shelf-act, .status-btn, .account-use-btn, .account-del-btn { position: relative; }
    .link-btn::after, .dislike-btn::after, .nb-clear::after, .account-use-btn::after, .account-del-btn::after { content: ''; position: absolute; inset: -14px -6px; }
    .shelf-act::after { content: ''; position: absolute; inset: -11px -1px; }
    .status-btn::after { content: ''; position: absolute; inset: -6px -2px; }
    .nb-note-ex { width: 32px; height: 32px; top: 2px; left: 2px; }
    .shelf-actions { gap: 8px; }
  }

  /* Texto según tipo de pantalla */
  .touch-only { display: none; }
  @media (hover: none) { .hover-only { display: none; } .touch-only { display: inline; } }

  /* Buscador cerrado fuera del orden del teclado */
  .nav-search-input { visibility: hidden; }
  .nav-search.open .nav-search-input { visibility: visible; }

  /* Ventanas */
  .compare-panel:focus { outline: none; }

  /* Navegación inferior en celular */
  /* ---- Dupes ---- */
  @keyframes dpUp { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes dpFloat { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
  @keyframes dpGlow { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,20px) scale(1.15); } 100% { transform: translate(0,0) scale(1); } }
  @keyframes dpShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
  @keyframes dpFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes dpPop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
  .dp-hero { position: relative; max-width: 820px; margin: 0 0 30px; padding: 6px 0 8px; }
  .dp-glow { position: absolute; z-index: -1; left: -90px; top: -70px; width: 420px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--heart) 42%, transparent), transparent); filter: blur(30px); animation: dpGlow 9s ease-in-out infinite; pointer-events: none; }
  .dp-kicker { display: inline-block; font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-accent); background: linear-gradient(110deg, var(--top), var(--heart), var(--top)); background-size: 200% 100%; animation: dpShine 4s linear infinite; padding: 5px 12px; border-radius: 999px; font-weight: 700; margin-bottom: 14px; }
  .dp-wip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 14px; border: 1px dashed var(--line); border-radius: 999px; font-size: 0.84rem; color: var(--paper-dim); }
  .dp-hero h1, .dp-hero h2 { font-size: clamp(2.3rem, 6.2vw, 4rem); line-height: 1.04; margin: 0 0 14px; }
  .dp-hero h1 em, .dp-hero h2 em { font-style: italic; background: linear-gradient(110deg, var(--top), var(--heart) 55%, var(--top)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: dpShine 5s linear infinite; }
  .dp-lead { color: var(--paper-dim); line-height: 1.6; margin: 0 0 22px; font-size: 1.02rem; max-width: 640px; }
  .dp-search { display: flex; align-items: center; gap: 12px; background: var(--night-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 22px; transition: border-color .25s, box-shadow .25s; max-width: 640px; color: var(--heart); }
  .dp-search:focus-within { border-color: var(--heart); box-shadow: 0 0 0 5px color-mix(in srgb, var(--heart) 20%, transparent), 0 10px 40px color-mix(in srgb, var(--heart) 25%, transparent); }
  .dp-search input { flex: 1; min-width: 0; font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--paper); background: transparent; border: 0; outline: 0; padding: 13px 0; }
  .dp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .dp-chip { font: inherit; font-size: 0.82rem; color: var(--paper); background: var(--hover-fill); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; animation: dpUp .5s both; }
  .dp-chip:hover { border-color: var(--heart); background: color-mix(in srgb, var(--heart) 14%, transparent); transform: translateY(-2px); }
  .dp-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
  .dp-stat { flex: 1 1 130px; max-width: 200px; border: 1px solid var(--line); background: var(--hover-fill); border-radius: 16px; padding: 12px 16px; animation: dpUp .6s both; }
  .dp-stat b { display: block; font-family: 'Fraunces', serif; font-size: 1.7rem; line-height: 1.1; color: var(--heart); font-variant-numeric: tabular-nums; }
  .dp-stat span { font-size: 0.74rem; color: var(--paper-dim); letter-spacing: .04em; }
  #dupesSection.detail .dp-hero { display: none; }
  #dupesSection.detail { padding-top: 24px; }
  .dp-filters { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
  .dp-fl { font: inherit; font-size: 0.84rem; color: var(--paper-dim); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: all .2s; }
  .dp-fl:hover { color: var(--paper); border-color: var(--paper-dim); }
  .dp-fl.on { color: var(--on-accent); background: var(--heart); border-color: var(--heart); font-weight: 600; }
  :root[data-theme="light"] .dp-fl.on, :root[data-theme="light"] .dp-vsmark, :root[data-theme="light"] .dp-kicker, :root[data-theme="light"] .dp-tag { color: #fff; }
  .dp-hero-wide { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: center; }
  .dp-hero-wide .dp-glow { left: -90px; top: -40px; }
  .dp-art { position: relative; height: 270px; width: 320px; margin: 0 auto; }
  .dp-art:empty { display: none; }
  .dp-art::before { content: ''; position: absolute; inset: -4% -8%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--heart) 38%, transparent); animation: dpOrbit 40s linear infinite; pointer-events: none; }
  .dp-art::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--heart); box-shadow: 0 0 14px var(--heart); top: 6%; right: 8%; animation: dpPulse 2.4s ease-in-out infinite; }
  @keyframes dpPulse { 50% { transform: scale(1.7); opacity: .5; } }
  .dp-fl-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
  .dp-fl-lbl { align-self: center; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); margin-right: 2px; }
    @keyframes dpOrbit { to { transform:rotate(360deg); } }
  @keyframes dpFill { from { width:0; } }

  .dp-art .dp-ac { position: absolute; width: 150px; height: 178px; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 95% at 50% 32%, #fff 0%, #EFE7DC 78%); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--heart) 80%, #000); animation: dpFloat 6s ease-in-out infinite; }
  .dp-art .dp-ac img { width: 86%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
  .dp-art .dp-ac:nth-child(1) { left: 0; top: 0; rotate: -9deg; animation-delay: -2s; }
  .dp-art .dp-ac:nth-child(2) { left: 72px; top: 34px; z-index: 3; width: 172px; height: 206px; }
  .dp-art .dp-ac:nth-child(3) { right: 0; top: 64px; rotate: 8deg; animation-delay: -4s; }
  .dp-section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
  .dp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .dp-tile { position: relative; overflow: hidden; text-align: left; font: inherit; color: var(--paper); background: var(--night-2); border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: transform .25s, border-color .25s, box-shadow .25s; }
  .dp-tile:not(.in) { opacity: 0; }
  .dp-tile.in { animation: dpUp .6s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: var(--d, 0ms); }
  .dp-tile .dp-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
  .dp-tile:hover .dp-photo::after { transform: translateX(120%); }
  .dp-tile .cmp { display: flex; align-items: baseline; gap: 8px; padding: 8px 4px 0; margin-top: auto; flex-wrap: wrap; }
  .dp-tile .cmp s { font-size: .8rem; color: var(--paper-dim); text-decoration-color: color-mix(in srgb, var(--paper-dim) 70%, transparent); }
  .dp-tile .cmp .ar { color: var(--heart); font-weight: 700; transition: transform .3s; }
  .dp-tile:hover .cmp .ar { transform: translateX(4px); }
  .dp-tile .cmp strong { font-size: 1.12rem; color: var(--ok); font-variant-numeric: tabular-nums; }
  .dp-tile .bar { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--paper) 10%, transparent); margin: 8px 4px 0; overflow: hidden; }
  .dp-tile .bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 55%, var(--top))); }
  .dp-tile.in .bar i { animation: dpFill 1.1s .25s cubic-bezier(.2, .8, .2, 1) backwards; }
  .dp-tile .meta { font-size: .76rem; color: var(--paper-dim); padding: 6px 4px 0; }
  .dp-tile:hover { transform: translateY(-6px); border-color: var(--heart); box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--heart) 70%, transparent); }
  .dp-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; background: radial-gradient(120% 95% at 50% 32%, #fff 0%, #EFE7DC 78%); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 10px; }
  .dp-photo .pv-photo { width: 100% !important; height: 100% !important; border: 0; border-radius: 0; background: transparent; max-width: none; }
  .dp-photo .pv-photo img { padding: 6%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
  .dp-tile:hover .dp-photo img { transform: scale(1.07); }
  .dp-photo svg { max-width: 40%; height: auto; }
  .dp-tile .b { font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); padding: 0 4px; }
  .dp-tile .n { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem; line-height: 1.2; overflow-wrap: anywhere; padding: 0 4px; }
  .dp-tile .save { position: absolute; left: 22px; top: 22px; z-index: 2; font-size: 0.74rem; font-weight: 800; color: #0D0A08; background: var(--ok); border-radius: 999px; padding: 4px 10px; }
  .dp-empty { color: var(--paper-dim); padding: 30px 0; line-height: 1.7; text-align: center; border: 1px dashed var(--line); border-radius: 18px; animation: dpUp .5s both; }
  .dp-back { margin-bottom: 18px; padding: 10px 18px; border-radius: 999px; }
  .dp-vs { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 16px; align-items: stretch; margin-bottom: 30px; }
  .dp-orig { position: relative; overflow: hidden; display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); background: var(--night-2); border-radius: 22px; padding: 22px; animation: dpUp .6s both; }
  .dp-orig::before { content: ''; position: absolute; left: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--heart) 30%, transparent), transparent); animation: dpGlow 8s ease-in-out infinite; }
  .dp-orig .dp-vis { position: relative; flex: 0 0 auto; width: 110px; display: flex; justify-content: center; animation: dpFloat 5s ease-in-out infinite; }
  .dp-orig .dp-vis .pv-photo { border-radius: 14px; }
  .dp-orig .tt { position: relative; min-width: 0; }
  .dp-orig .kick { font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--heart); font-weight: 700; }
  .dp-orig h2 { margin: 2px 0 6px; font-size: clamp(1.25rem, 2.6vw, 1.7rem); overflow-wrap: anywhere; }
  .dp-orig .nt { color: var(--paper-dim); font-size: 0.86rem; line-height: 1.5; margin: 0 0 8px; }
  .dp-orig .pr { font-size: 0.95rem; }
  .dp-orig .pr small { color: var(--paper-dim); }
  .dp-orig .btn { margin-top: 10px; padding: 8px 16px; font-size: 0.82rem; border-radius: 999px; }
  .dp-vsmark { align-self: center; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-style: italic; font-weight: 700; color: var(--on-accent); background: linear-gradient(135deg, var(--top), var(--heart)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--heart) 20%, transparent); animation: dpPop .7s .3s both; }
  .dp-big { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--on-accent); background: linear-gradient(135deg, var(--top), var(--heart) 70%, var(--base)); animation: dpUp .6s .12s both; }
  .dp-big::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); background-size: 250% 100%; animation: dpShine 3.5s linear infinite; pointer-events: none; }
  .dp-big small { font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .85; }
  .dp-big b { font-family: 'Fraunces', serif; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
  .dp-big span { font-size: 0.88rem; font-weight: 500; }
  .dp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
  .dp-h { font-size: 1.15rem; margin: 0; }
  .dp-sort { display: flex; gap: 6px; flex-wrap: wrap; }
  .dp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
  .dp-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--night-2); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; animation: dpUp .55s both; transition: transform .25s, border-color .25s, box-shadow .25s; }
  .dp-card:hover { transform: translateY(-5px); border-color: var(--heart); box-shadow: 0 16px 40px color-mix(in srgb, var(--heart) 18%, transparent); }
  .dp-card .rank { position: absolute; right: 14px; top: 6px; font-family: 'Fraunces', serif; font-style: italic; font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--hover-fill); -webkit-text-stroke: 1px var(--line); }
  .dp-card.best { border-color: color-mix(in srgb, var(--heart) 60%, var(--line)); }
  .dp-tag { position: absolute; left: 0; top: 14px; font-size: 0.66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--on-accent); background: linear-gradient(110deg, var(--top), var(--heart)); padding: 4px 12px 4px 14px; border-radius: 0 999px 999px 0; }
  .dp-card .top { display: flex; gap: 14px; align-items: center; position: relative; padding-top: 12px; }
  .dp-card.best .top, .dp-card .tag-sp .top { padding-top: 22px; }
  .dp-card .dp-vis { flex: 0 0 88px; display: flex; justify-content: center; transition: transform .3s; }
  .dp-card:hover .dp-vis { transform: scale(1.1) rotate(-3deg); }
  .dp-card .dp-vis .pv-photo { border-radius: 12px; }
  .dp-card .nm { min-width: 0; }
  .dp-card .nm b { font-family: 'Fraunces', serif; font-size: 1.04rem; display: block; overflow-wrap: anywhere; line-height: 1.25; }
  .dp-card .nm span { font-size: 0.78rem; color: var(--paper-dim); }
  .dp-lv { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; color: var(--heart); }
  .dp-lv i { display: inline-flex; gap: 4px; } .dp-lv i s { width: 22px; height: 6px; border-radius: 3px; background: var(--track-bg); overflow: hidden; display: block; position: relative; }
  .dp-lv i s.on::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--top), var(--heart)); transform-origin: left; animation: dpFill .8s .35s both; }
  .dp-cmp { display: flex; flex-direction: column; gap: 6px; }
  .dp-cmp .tr { height: 10px; border-radius: 6px; background: var(--track-bg); overflow: hidden; }
  .dp-cmp .fl { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 55%, var(--top))); transform-origin: left; animation: dpFill 1s .4s both; }
  .dp-cmp .lb { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .dp-price { font-size: 0.82rem; color: var(--paper-dim); } .dp-price strong { font-size: 1.35rem; color: var(--paper); font-family: 'Fraunces', serif; }
  .dp-save { font-size: 0.8rem; font-weight: 800; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 3px 11px; animation: dpPop .6s .5s both; }
  .dp-yes { font-size: 0.76rem; color: var(--ok); }
  .dp-note { font-size: 0.85rem; color: var(--paper-dim); line-height: 1.5; margin: 0; }
  .dp-card .btn { padding: 10px 16px; font-size: 0.84rem; align-self: flex-start; border-radius: 999px; }
  .dp-disc { font-size: 0.78rem; color: var(--paper-dim); line-height: 1.55; margin-top: 34px; max-width: 760px; }
  @media (max-width: 760px) { .dp-vs { grid-template-columns: 1fr; } .dp-vsmark { justify-self: center; width: 44px; height: 44px; } }
  @media (max-width: 520px) { .dp-orig { flex-direction: column; text-align: center; } .dp-list { grid-template-columns: 1fr; } .dp-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .dp-tile { padding: 10px 10px 14px; } .dp-tile .n { font-size: 1rem; } .dp-tile .save { left: 18px; top: 18px; } }
  @media (max-width: 1000px) { .dp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 520px) { .dp-fl-sep { display: none; } .dp-fl-lbl { flex-basis: 100%; margin: 4px 0 -2px; } .dp-tile .cmp { flex-wrap: nowrap; gap: 5px; } .dp-tile .cmp s { font-size: .7rem; } .dp-tile .cmp strong { font-size: .98rem; } .dp-tile .meta { font-size: .7rem; } }
  @media (max-width: 520px) { .dp-hero-wide .dp-stats { flex-wrap: nowrap; gap: 8px; } .dp-hero-wide .dp-stat { flex: 1 1 0; min-width: 0; padding: 10px 10px; } .dp-hero-wide .dp-stat b { font-size: 1.35rem; } .dp-hero-wide .dp-stat span { font-size: .68rem; } }
  @media (max-width: 860px) { .dp-hero-wide { grid-template-columns: 1fr; } .dp-art { display: none; } }
  @media (max-width: 700px) { .dp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (prefers-reduced-motion: reduce) { .dp-art::before, .dp-art::after .dp-tile:not(.in) { opacity: 1; } .dp-hero *, .dp-tile, .dp-card, .dp-orig, .dp-orig *, .dp-big, .dp-big::after, .dp-vsmark, .dp-chip, .dp-stat, .dp-glow, .dp-kicker, .dp-lv i s::after, .dp-cmp .fl, .dp-save { animation: none !important; } }
  .dp-link { font: inherit; font-size: 0.82rem; color: var(--paper); background: var(--hover-fill); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; margin: 0 6px 6px 0; }
  .dp-link:hover { border-color: var(--heart); }
  @media (max-width: 520px) { .dp-orig { flex-direction: column; text-align: center; } .dp-list { grid-template-columns: 1fr; } }
  .bottom-nav { display: none; }
  @media (max-width: 860px) {
    .bottom-nav {
      display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
      background: var(--nav-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
      padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; min-height: 52px; justify-content: center;
      text-decoration: none; color: var(--paper-dim); font-size: 0.78rem; border-radius: 10px; transition: color .2s ease, background .2s ease; position: relative; }
    .bottom-nav a svg { width: 22px; height: 22px; }
    .bottom-nav a.active { color: var(--heart); background: var(--hover-fill); }
    .bn-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--btn-bg); color: var(--on-accent); font-size: 0.7rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
    .bn-count:empty { display: none; }
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .nb-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  }

  :focus-visible { outline: 2px solid var(--heart); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) {
    .fx { display: none; }
    .nb-note, .nb-aroma, .nb-rcard.perfect::before { animation: none !important; }
    #labWavePath, #labCap.floating, .bub, #gameNext.ready { animation: none; }
    html { scroll-behavior: auto; }
    .card > * { transition: none; opacity: 1; transform: none; }
    .match-hero, .mh-bottle { animation: none !important; }
    .leg-bar, .bar-fill { transition: none; transform: scaleX(1); }
  }

  /* ---- Inicio: frasco interactivo ---- */
  .hero-bottle { position: relative; z-index: 3; cursor: pointer; line-height: 0; border-radius: 30px; transform: perspective(700px) rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .3s ease; outline-offset: 8px; }
  .hero-bottle:hover { filter: drop-shadow(0 10px 28px rgba(232,98,43,0.35)); }
  .hero-bottle .hb-cap { transition: transform .12s ease; transform-box: view-box; }
  .hero-bottle.press .hb-cap { transform: translateY(5px); }
  .hero-bottle.squash { animation: hbSquash .45s cubic-bezier(.3,1.6,.5,1); }
  @keyframes hbSquash { 0% { scale: 1; } 30% { scale: 1.04 .95; } 65% { scale: .98 1.03; } 100% { scale: 1; } }
  .liquid-wob { transform-box: view-box; transform-origin: 70px 178px; }
  .liquid-wob.slosh { animation: slosh 1.3s ease-out; }
  @keyframes slosh { 0% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 35% { transform: rotate(7deg); } 55% { transform: rotate(-4deg); } 75% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
  .hero-mist { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }
  .hero-mist i { position: absolute; border-radius: 50%; filter: blur(1px); }
  .hero-bottle-hint { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); font-size: 0.74rem; font-style: italic; color: var(--paper-dim); z-index: 3; white-space: nowrap; transition: opacity .4s ease; pointer-events: none; }
  .hero-bottle-hint.gone { opacity: 0; }
  .ring.r2.ripple { animation: ringRipple .7s ease-out; }
  @keyframes ringRipple { 0% { transform: scale(1); } 40% { transform: scale(1.1); border-color: rgba(242,166,90,0.8); } 100% { transform: scale(1); } }

  /* ---- Inicio: notas flotantes ---- */
  .hero-notes { position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; margin: -190px 0 0 -190px; z-index: 4; pointer-events: none; }
  /* las notas orbitan el frasco muy despacio: la capa gira y cada nota gira al revés, así siguen derechas (el movimiento con el mouse no se altera) */
  .hero-notes.orbit { animation: heroOrbit 140s linear infinite; }
  .hero-notes.orbit .hero-note { animation: heroNoteBack 140s linear infinite; }
  .hero-notes.orbit:hover, .hero-notes.orbit:hover .hero-note { animation-play-state: paused; }
  @keyframes heroOrbit { to { rotate: 360deg; } }
  @keyframes heroNoteBack { to { rotate: -360deg; } }
  .hero-note { position: absolute; left: var(--x); top: var(--y); width: 54px; height: 54px; margin: -27px 0 0 -27px; padding: 0; border: none; background: none; cursor: pointer; pointer-events: auto; transform: translate(calc(var(--mx, 0) * var(--depth) * 1px), calc(var(--my, 0) * var(--depth) * 1px)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .hero-note-in { display: block; width: 100%; height: 100%; animation: hnIn .6s cubic-bezier(.3,1.5,.5,1) both, hnBob var(--dur) ease-in-out infinite; animation-delay: var(--d), calc(var(--d) + .6s); }
  /* la entrada usa «scale» (propiedad propia) y no «transform»: si las dos animaciones tocan la misma propiedad, el vaivén deja de resolverlo la tarjeta gráfica y pasa al procesador */
  @keyframes hnIn { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
  @keyframes hnBob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(4deg); } }
  .hero-note-img { display: flex; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--nc) 38%, var(--night-2)), var(--night-2) 80%); box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px rgba(0,0,0,0.25); transition: transform .3s cubic-bezier(.3,1.5,.5,1), box-shadow .3s ease; }
  .hero-note-img svg { width: 100%; height: 100%; }
  .hero-note:hover .hero-note-img, .hero-note:focus-visible .hero-note-img { transform: scale(1.18) rotate(-8deg); box-shadow: inset 0 0 0 1.5px var(--heart), 0 0 22px color-mix(in srgb, var(--nc) 65%, transparent); }
  .hero-note-lbl { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, -4px); font-size: 0.74rem; white-space: nowrap; padding: 2px 9px; border-radius: 999px; background: var(--night-2); border: 1px solid var(--line); color: var(--paper); opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
  .hero-note:hover .hero-note-lbl, .hero-note:focus-visible .hero-note-lbl { opacity: 1; transform: translate(-50%, 0); }
  .hero-notes-cap { position: absolute; top: 0; right: 0; font-size: 0.74rem; font-style: italic; color: var(--paper-dim); z-index: 3; pointer-events: none; }

  /* ---- Bajaron de precio (datos: perfumes-core.js → p.bajo, calculado por scripts/build-seo.js) ---- */
  .drops { padding: 80px 0 10px; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
  .drops-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; flex-wrap: wrap; }
  .drops-kick { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ok); font-weight: 600; }
  .drops-kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: dropsPulse 1.8s infinite; }
  @keyframes dropsPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
  .drops-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; margin: 8px 0 0; }
  .drops-head h2 em { font-style: italic; color: var(--ok); }
  .drops-head p { color: var(--paper-dim); margin: 6px 0 0; max-width: 56ch; }
  .drops-all { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; color: var(--top); font: inherit; font-size: .92rem; cursor: pointer; }
  .drops-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .drop-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 10px; background: color-mix(in srgb, var(--paper) 3%, transparent); cursor: pointer; text-align: left; color: inherit; font: inherit; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; animation: dropIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
  @keyframes dropIn { from { opacity: 0; transform: translateY(14px); } }
  .drop-card:hover, .drop-card:focus-visible { transform: translateY(-4px); border-color: var(--ok); outline: none; }
  .drop-ph { position: relative; height: 170px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 95% at 50% 32%, #fff 0%, var(--photo-bg) 78%); overflow: hidden; }
  .drop-ph .pv-photo { border: 0; background: transparent; }
  .drop-badge { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 4px 10px; border-radius: 999px; background: #2E7A48; color: #fff; font-size: .78rem; font-weight: 700; line-height: 1.2; box-shadow: 0 8px 18px -6px rgba(46,122,72,.8); pointer-events: none; }
  .drop-when { position: absolute; bottom: 8px; right: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: rgba(13,10,8,.72); color: #F6EEE3; font-size: .68rem; }
  .drop-card h3 { font-size: 1rem; font-weight: 500; margin: 10px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .drop-card .dc-brand { color: var(--paper-dim); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dc-price { display: flex; align-items: baseline; gap: 4px 8px; margin-top: 8px; flex-wrap: wrap; }
  .dc-price b { font-size: 1.2rem; color: var(--ok); font-weight: 600; font-variant-numeric: tabular-nums; }
  .dc-price s { color: var(--paper-dim); font-size: .86rem; }
  .dc-save { font-size: .78rem; color: var(--paper-dim); }
  .dc-spark { width: 100%; height: 30px; color: var(--ok); margin-top: 6px; display: block; }
  .card-visual { position: relative; }
  .card-visual .drop-badge { top: 10px; left: 10px; }
  .ml-badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--night-2); color: var(--paper); border: 1px solid var(--heart); font-size: .74rem; font-weight: 700; line-height: 1.2; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
  @media (max-width: 1100px) { .drops-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 860px) {
    .drops { padding-top: 56px; }
    .drops-grid:not(.all) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 14px; scrollbar-width: none; }
    .drops-grid:not(.all)::-webkit-scrollbar { display: none; }
    .drops-grid:not(.all) .drop-card { flex: 0 0 168px; min-width: 0; width: 168px; scroll-snap-align: start; }
    .drops-grid.all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .drop-ph { height: 140px; }
    .dc-price b { font-size: 1.05rem; }
  }
  @media (prefers-reduced-motion: reduce) { .drop-card { animation: none; } .drops-kick i { animation: none; } }

  /* ---- Mi colección: arrastrar ---- */
  .shelf-hint { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--paper-dim); margin: -14px 0 22px; }
  .shelf-hint svg { width: 16px; height: 16px; flex-shrink: 0; }
  .shelf-hint .h-touch { display: none; }
  @media (hover: none) { .shelf-hint .h-mouse { display: none; } .shelf-hint .h-touch { display: inline; } }
  .shelf-group { border-radius: 10px; padding: 10px 12px 0; margin: -10px -12px 0; transition: background .2s ease, box-shadow .2s ease; }
  .shelf-group.drop-over { background: color-mix(in srgb, var(--heart) 9%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--heart) 60%, transparent); }
  .shelf-group.drop-over .shelf-board { background: linear-gradient(180deg, var(--heart), var(--base)); }
  .shelf-empty { flex: 1; min-height: 118px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed var(--line); border-radius: 8px; margin-bottom: 10px; font-size: 0.86rem; font-style: italic; color: var(--paper-dim); padding: 0 16px; transition: border-color .2s ease, color .2s ease; }
  .shelf-group.drop-over .shelf-empty { border-color: var(--heart); color: var(--heart); }
  .no-enter .shelf-item:not(.landed) { animation: none; }
  .shelf-item { width: 232px; }
  .shelf-actions { flex-wrap: wrap; justify-content: center; row-gap: 5px; }
  .shelf-item { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .shelf-bottle { cursor: grab; touch-action: pan-x pan-y; }
  .shelf-item.drag-src { opacity: .28; filter: grayscale(.6); }
  .shelf-item.landed { animation: shelfLand .6s cubic-bezier(.3,1.6,.5,1) both; }
  @keyframes shelfLand { 0% { opacity: 0; transform: translateY(-40px) scale(.9); } 60% { opacity: 1; transform: translateY(4px) scale(1.03); } 100% { transform: none; } }
  .shelf-item.landed .shelf-bottle { filter: drop-shadow(0 0 14px rgba(242,166,90,0.55)); }
  .shelf-ghost { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; line-height: 0; filter: drop-shadow(0 16px 22px rgba(0,0,0,0.45)); transition: transform .08s linear; }
  .shelf-ghost.back { transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease; opacity: 0; }
  body.shelf-dragging, body.shelf-dragging * { cursor: grabbing !important; }
  .shelf-menu { position: fixed; transform: translate(-50%, calc(-100% - 8px)); z-index: 120; background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 28px rgba(0,0,0,0.35); padding: 6px; display: flex; flex-direction: column; min-width: 160px; animation: menuIn .18s ease; }
  @keyframes menuIn { from { opacity: 0; transform: translate(-50%, calc(-100% - 2px)); } to { opacity: 1; transform: translate(-50%, calc(-100% - 8px)); } }
  .shelf-menu[hidden] { display: none; }
  .shelf-menu-t { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper-dim); padding: 4px 8px 6px; text-align: left; }
  .shelf-menu button { display: flex; align-items: center; gap: 8px; text-align: left; font-family: 'Fraunces', serif; font-size: 0.85rem; padding: 7px 8px; border: none; border-radius: 5px; background: transparent; color: var(--paper); cursor: pointer; }
  .shelf-menu button:hover, .shelf-menu button:focus-visible { background: var(--hover-fill); }
  .shelf-menu button span { display: flex; } .shelf-menu button svg { width: 15px; height: 15px; }

  @media (max-width: 860px) {
    .hero-note { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
    .hero-note-lbl, .hero-notes-cap { display: none; }
    .hero-bottle-hint { bottom: -44px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-note-in { animation: none; }
    .hero-notes.orbit, .hero-notes.orbit .hero-note { animation: none; }
    .hero-bottle, .hero-note { transition: none; transform: none; }
    .shelf-item.landed, .liquid-wob.slosh, .hero-bottle.squash { animation: none; }
  }

  /* ================= Mejoras visuales (v36): fotos, resultado, comparador, inicio, móvil y transiciones ================= */
  /* 1 · Fotos: marco uniforme, fondos de tienda más limpios y carga suave */
  .pv-photo { position: relative; border-radius: 10px; background: radial-gradient(120% 95% at 50% 32%, #FFFFFF 0%, var(--photo-bg) 78%); border-color: color-mix(in srgb, var(--paper) 10%, transparent); }
  .pv-photo img { padding: 7%; filter: brightness(1.04) contrast(1.02); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
  .pv-photo.is-loading img { opacity: 0; }
  .pv-photo.is-loading::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.65) 50%, transparent 65%); transform: translateX(-100%); animation: pvShimmer 1.4s ease-in-out infinite; }
  /* el brillo se mueve con «transform» (lo resuelve la tarjeta gráfica); con background-position se repintaba cada cuadro en las ~30 tarjetas a la vez */
  @keyframes pvShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
  .bento .card:hover .pv-photo img, .alt-card:hover .pv-photo img, .mh-photo-main:hover .pv-photo img { transform: scale(1.05); }

  /* 3 · Resultado del quiz: medidor circular y alternativas */
  .mh-scoreline { align-items: center; gap: 16px; margin: 10px 0 12px; }
  .mh-ring { position: relative; width: 124px; height: 124px; flex-shrink: 0; display: grid; place-items: center; }
  .mh-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
  .mh-ring circle { fill: none; stroke-width: 7; }
  .mh-ring-bg { stroke: var(--track-bg); }
  .mh-ring-fg { stroke: var(--vc); stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--vc) 45%, transparent)); animation: mhRing 1.1s cubic-bezier(.2,.8,.2,1) .15s both; }
  @keyframes mhRing { from { stroke-dashoffset: 100; } }
  .mh-ring .mh-score { position: relative; font-size: 2.15rem; color: var(--paper); font-variant-numeric: tabular-nums; }
  .mh-score-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .mh-score-side .mh-score-lbl { font-size: 0.95rem; }
  .mh-score-side .mh-verdict { margin: 0; }
  .match-hero .mh-info > * { animation: mhUp .55s cubic-bezier(.2,.8,.2,1) both; }
  .match-hero .mh-info > :nth-child(2) { animation-delay: .06s; } .match-hero .mh-info > :nth-child(3) { animation-delay: .12s; }
  .match-hero .mh-info > :nth-child(4) { animation-delay: .18s; } .match-hero .mh-info > :nth-child(5) { animation-delay: .24s; }
  .match-hero .mh-info > :nth-child(6) { animation-delay: .3s; } .match-hero .mh-info > :nth-child(7) { animation-delay: .36s; }
  .match-hero .mh-info > :nth-child(n+8) { animation-delay: .42s; }
  @keyframes mhUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .alt-card { border-radius: 10px; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s ease, box-shadow .25s ease; }
  .alt-card[data-hero]:hover, .alt-card[data-hero]:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.28); }
  .alt-bar { height: 4px; border-radius: 999px; background: var(--track-bg); overflow: hidden; margin: -2px 0 2px; }
  .alt-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--heart), var(--top)); transform-origin: left; animation: barGrow .9s cubic-bezier(.2,.8,.2,1) .3s both; }
  @keyframes barGrow { from { transform: scaleX(0); } }
  @media (max-width: 860px) {
    .mh-photo-main .pv-photo { width: 150px !important; height: 176px !important; }
    .mh-caption { display: none; }
    .mh-ring { width: 84px; height: 84px; }
    .mh-ring .mh-score { font-size: 1.45rem; }
    .mh-photo-main .pv-photo { width: 132px !important; height: 154px !important; }
    .match-hero .mh-name { font-size: 1.4rem; }
    .match-hero .mh-kicker { margin-bottom: 4px; }
  }

  /* 4 · Comparador de precios: ranking con diferencia frente al más barato */
  .store-list { display: flex; flex-direction: column; gap: 8px; }
  .store-summary { font-size: 0.86rem; color: var(--paper-dim); margin-bottom: 4px; }
  .store-summary strong { color: var(--paper); font-weight: 600; }
  .store-summary .ss-save { color: var(--ok); }
  .store-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "rank main side" ". main go"; column-gap: 12px; row-gap: 8px; align-items: center;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--hover-fill);
    animation: srIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 55ms); transition: border-color .2s ease, background .2s ease; }
  @keyframes srIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .store-row:hover { border-color: color-mix(in srgb, var(--paper) 28%, transparent); }
  .store-row.best { border-color: color-mix(in srgb, var(--ok) 65%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--night-2)); }
  .sr-rank { grid-area: rank; align-self: start; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; color: var(--paper-dim); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
  .store-row.best .sr-rank { background: var(--ok); border-color: var(--ok); color: var(--on-accent); font-weight: 600; }
  :root[data-theme="light"] .store-row.best .sr-rank { color: #fff; }
  .sr-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .sr-main .store-name { font-size: 0.95rem; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .sr-badge { display: inline-block; font-size: 0.68rem; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 60%, transparent); }
  .sr-main .store-per-ml { font-size: 0.76rem; }
  .sr-side { grid-area: side; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
  .sr-side .store-price { font-size: 1.2rem; display: block; color: var(--paper); font-variant-numeric: tabular-nums; }
  .store-row.best .sr-side .store-price { color: var(--ok); font-weight: 600; }
  .sr-diff { font-size: 0.76rem; white-space: nowrap; }
  .sr-diff.up { color: var(--paper-dim); } .sr-diff.up span { opacity: .75; }
  .sr-diff.low { color: var(--ok); }
  .store-row .store-link { grid-area: go; justify-self: end; align-self: end; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; color: var(--paper); white-space: nowrap; transition: background .2s ease, border-color .2s ease, color .2s ease; }
  .store-row .store-link:hover { opacity: 1; border-color: var(--heart); background: color-mix(in srgb, var(--heart) 14%, transparent); }
  .store-row.best .store-link { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--on-accent); font-weight: 600; }
  .store-row.best .store-link:hover { background: #F2A65A; border-color: #F2A65A; }
  @media (max-width: 560px) {
    .store-row { grid-template-columns: 26px auto minmax(0, 1fr); grid-template-areas: "rank main main" "rank side go"; padding: 13px 14px; }
    .sr-side { align-items: flex-start; text-align: left; }
  }
  .compare-panel { border-radius: 14px; }
  .compare-overlay.open .compare-panel { animation: panelIn .35s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

  /* 6 · Inicio: halo vivo tras el frasco y cifras del catálogo */
  .hero-aura { position: absolute; width: 330px; height: 330px; border-radius: 50%; z-index: 1; pointer-events: none; filter: blur(38px); opacity: .55;
    background: conic-gradient(from 0deg, rgba(242,166,90,0.55), rgba(232,98,43,0.15), rgba(217,103,138,0.4), rgba(180,201,74,0.25), rgba(242,166,90,0.55));
    animation: auraSpin 18s linear infinite; }
  :root[data-theme="light"] .hero-aura { opacity: .35; }
  @keyframes auraSpin { to { transform: rotate(360deg); } }
  .hero-stats { list-style: none; margin: 30px 0 0; padding: 18px 0 0; display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); max-width: 460px; }
  .hero-stats { min-height: 66px; } @media (max-width: 768px) { .hero-stats { min-height: 56px; } }
  .hero-stats li { display: flex; flex-direction: column; gap: 2px; animation: mhUp .6s cubic-bezier(.2,.8,.2,1) both; }
  .hero-stats li:nth-child(2) { animation-delay: .1s; } .hero-stats li:nth-child(3) { animation-delay: .2s; }
  .hero-stats strong { font-size: 1.45rem; font-weight: 500; color: var(--top); line-height: 1.1; font-variant-numeric: tabular-nums; }
  .hero-stats span { font-size: 0.8rem; color: var(--paper-dim); }
  @media (max-width: 860px) {
    .hero { padding: 18px 0 44px; }
    .hero-rings { height: 250px; }
    .hero-rings > .ring, .hero-rings > .hero-notes, .hero-rings > .hero-mist, .hero-rings > .hero-aura { scale: .76; }
    .hero-rings > .hero-bottle { scale: .9; }
    .hero-aura { width: 280px; height: 280px; }
    .hero-bottle-hint { bottom: -40px; }
    .hero-headline { font-size: clamp(1.65rem, 6.8vw, 2.05rem); line-height: 1.15; }
    .hero-sub { margin-top: 14px; font-size: 1rem; }
    .hero-cta { margin-top: 22px; }
    .hero-stats { gap: 20px; margin-top: 22px; padding-top: 14px; justify-content: space-between; max-width: none; }
    .hero-stats strong { font-size: 1.2rem; }
    .hero-stats span { font-size: 0.74rem; }
  }

  /* 7 · Navegación móvil: indicador activo y slider cómodo con el pulgar */
  @media (max-width: 860px) {
    .bottom-nav a { transition: color .2s ease, background .2s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; }
    .bottom-nav a:active { transform: scale(.93); }
    .bottom-nav a::before { content: ""; position: absolute; top: -7px; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--heart); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
    .bottom-nav a.active::before { transform: scaleX(1); }
    .bottom-nav a svg { transition: transform .3s cubic-bezier(.3,1.5,.5,1), stroke-width .2s ease; }
    .bottom-nav a.active svg { transform: translateY(-2px); stroke-width: 2.2; }
    .bottom-nav a.active { background: color-mix(in srgb, var(--heart) 12%, transparent); font-weight: 600; }
  }
  @media (pointer: coarse) {
    .budget-range { height: 10px; margin: 16px 0 6px; }
    .budget-range::-webkit-slider-thumb { width: 32px; height: 32px; }
    .budget-range::-moz-range-thumb { width: 28px; height: 28px; }
  }

  /* 8 · Transiciones: tarjetas escalonadas, elevación al pasar el cursor y fundido entre pestañas */
  .card > * { transition-delay: var(--d, 0s); }
  .bento .card { position: relative; transition: background .25s ease, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
  @media (hover: hover) {
    .bento .card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 36px rgba(0,0,0,0.32); z-index: 1; }
    :root[data-theme="light"] .bento .card:hover { box-shadow: 0 0 0 1px var(--line), 0 18px 36px rgba(28,20,13,0.12); }
  }
  .view-in { animation: viewIn .4s ease both; }
  @keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

  @media (prefers-reduced-motion: reduce) {
    .pv-photo.is-loading::after, .mh-ring-fg, .match-hero .mh-info > *, .alt-bar i, .store-row, .compare-overlay.open .compare-panel, .hero-aura, .hero-stats li, .view-in { animation: none !important; }
    .pv-photo img, .bento .card, .alt-card, .bottom-nav a, .bottom-nav a svg, .bottom-nav a::before { transition: none !important; }
    .bento .card:hover, .alt-card[data-hero]:hover { transform: none; }
    .card > * { transition-delay: 0s; }
  }

  /* ================= Correcciones y mejoras (v37) ================= */
  /* 1 · Catálogo en celulares chicos: las columnas nunca se salen de la pantalla */
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .bento .card { min-width: 0; }
  /* las líneas entre tarjetas las dibuja cada tarjeta: así una última fila incompleta no deja un bloque gris */
  .bento { background: transparent; }
  .bento .card { box-shadow: 0 0 0 1px var(--line); }
  .bento .card h3 { overflow-wrap: anywhere; }
  @media (max-width: 560px) { .bento .fam-tag, .bento .fam-tag .fam-touch { white-space: normal; } .bento .fam-tag { max-width: 100%; min-width: 0; flex-shrink: 1; text-align: center; line-height: 1.3; } }

  /* El brillo animado de los títulos (Catálogo, Dupes) se salía por la derecha y ensanchaba la página en celular.
     'clip' recorta sin crear un contenedor de scroll, así el panel fijo de "Buscar por notas" sigue funcionando. */
  section.results { overflow-x: clip; }

  /* 4 · Notas del inicio: zona táctil más grande que el círculo visible */
  @media (max-width: 860px) { .hero-note::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; } }

  /* 7 · Filtros del catálogo: chips de filtros activos y, en celular, panel plegable */
  .cat-filter-toggle { display: none; }
  .cs-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s ease; display: flex; align-items: flex-end; }
  .cs-overlay[hidden] { display: none; }
  .cs-overlay.on { opacity: 1; }
  .cs-sheet { width: 100%; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: var(--night-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
  .cs-overlay.on .cs-sheet { transform: none; }
  .cs-grab { width: 42px; height: 4px; border-radius: 4px; background: var(--line); margin: 10px auto 2px; flex: none; }
  .cs-head { display: flex; align-items: center; gap: 10px; padding: 8px 18px 12px; flex: none; }
  .cs-head h2 { margin: 0; flex: 1; font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; color: var(--paper); }
  .cs-reset, .cs-x { font-family: inherit; background: none; border: 0; color: var(--heart); cursor: pointer; font-size: .9rem; padding: 6px 4px; }
  .cs-x { color: var(--paper-dim); font-size: 1.7rem; line-height: 1; padding: 0 6px; }
  .cs-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 16px; display: grid; gap: 18px; }
  .cs-group { border: 0; padding: 0; margin: 0; min-width: 0; }
  .cs-group legend, .cs-group label { padding: 0; margin: 0 0 8px; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--paper-dim); display: block; }
  .cs-group select { width: 100%; font-family: 'Fraunces', serif; font-size: 16px; color: var(--paper); background: var(--night); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 46px; }
  .cs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .cs-chip { font-family: inherit; font-size: .88rem; color: var(--paper); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; min-height: 40px; cursor: pointer; }
  .cs-chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--on-accent); border-color: transparent; font-weight: 600; }
  .cs-foot { flex: none; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--night-2); }
  .cs-go { width: 100%; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--on-accent); background: var(--btn-bg); border: 0; border-radius: 14px; padding: 14px; min-height: 50px; cursor: pointer; }
  body.cs-lock { overflow: hidden; }
  @media (min-width: 861px) { .cs-overlay { display: none !important; } body.cs-lock { overflow: auto; } }
  @media (prefers-reduced-motion: reduce) { .cs-overlay, .cs-sheet { transition: none; } }
  .cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
  .cat-chips:empty { display: none; }
  .cat-clear { white-space: nowrap; }
  .cat-chip { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 0.82rem; color: var(--paper); background: var(--hover-fill); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px 6px 14px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
  .cat-chip span { font-size: 1rem; line-height: 1; color: var(--paper-dim); }
  .cat-chip:hover { border-color: var(--heart); }
  .cat-chip:hover span { color: var(--heart); }
  @media (max-width: 860px) {
    .cat-hero { margin-bottom: 18px; }
    .cat-hero .dp-lead { display: none; }
    .cat-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
    .cat-bar .cat-field.q { flex: 1 1 calc(100% - 140px); min-width: 0; }
    .cat-filter-toggle { flex: 0 0 auto; }
    .cat-bar .cat-field:not(.q) { flex: 1 1 calc(50% - 5px); }
    .cat-bar .cat-field:last-child { flex-basis: 100%; }
    .cat-bar .cat-field:not(.q) { display: none; }   /* los filtros viven en el panel (.cs-sheet) */
    .cat-field input, .cat-field select { font-size: 16px; }   /* en iPhone, menos de 16px hace zoom al tocar el campo */
    .cat-filter-toggle { display: inline-flex; align-items: center; gap: 7px; align-self: stretch; margin-top: 21px; padding: 0 14px; font-family: inherit; font-size: 0.9rem; color: var(--paper); background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
    .cat-bar.open .cat-filter-toggle { border-color: var(--heart); color: var(--heart); }
    .cat-filter-n:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--btn-bg); color: var(--on-accent); font-size: 0.74rem; font-weight: 600; display: inline-grid; place-items: center; }
    .cat-bar.open .cat-field:not(.q) { animation: mhUp .3s ease both; }
  }
  @media (prefers-reduced-motion: reduce) { .cat-bar.open .cat-field:not(.q) { animation: none; } }

  /* ================= v38: historial de precio, carga y modo app ================= */
  /* 2 · Historial del mejor precio */
  .hist { padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--hover-fill); }
  .hist .hist-t { margin-bottom: 10px; }
  .hist-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 6px; }
  .hist-stat { display: flex; flex-direction: column; gap: 1px; }
  .hist-stat span { font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-dim); }
  .hist-stat b { font-size: 1.08rem; font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; }
  .hist-stat small { font-size: 0.72rem; color: var(--paper-dim); }
  .hist-stat.is-min b, .hist-stat.is-low b { color: var(--ok); }
  .hist svg { max-width: none; margin: 6px 0 2px; overflow: visible; }
  .hist-minline { stroke: var(--ok); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
  .hist-dot-min { fill: var(--ok); stroke: var(--night-2); stroke-width: 2; }
  .hist-dot-now { fill: var(--heart); stroke: var(--night-2); stroke-width: 2; }
  .hist-line { stroke-dasharray: 1000; stroke-dashoffset: 0; animation: histDraw 1.1s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes histDraw { from { stroke-dashoffset: 1000; } }
  .hist-axis { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--paper-dim); }
  .hist-msg { margin: 8px 0 0; font-size: 0.86rem; line-height: 1.45; }
  .hist .drop { color: var(--ok); }

  /* 4 · Esqueleto de carga mientras llegan los datos */
  .sk { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--track-bg) 30%, color-mix(in srgb, var(--paper) 12%, transparent) 50%, var(--track-bg) 70%) 0 0 / 300% 100%; animation: skShine 1.4s ease-in-out infinite; }
  @keyframes skShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
  .sk-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 18px; background: var(--night); min-width: 0; }
  .bento > .sk-card { box-shadow: 0 0 0 1px var(--line); }
  .sk-img { width: 78%; aspect-ratio: 5 / 6; border-radius: 10px; }
  .sk-line { width: 70%; height: 14px; }
  .sk-line.short { width: 40%; }
  .sk-tile { min-height: 120px; border-radius: 14px; }
  @media (max-width: 860px) { .sk-tile { min-height: 100px; } }
  @media (prefers-reduced-motion: reduce) { .sk, .hist-line { animation: none; } }
  /* Mi colección en el celular: varios frascos a la vez (3 por fila) en vez de uno solo con flechas */
  .shelf-item .t-corto { display: none; }
  @media (max-width: 640px) {
    .shelf-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; align-items: start; overflow: visible; width: auto !important; max-width: none; padding: 18px 4px 0; scroll-snap-type: none; }
    .shelf-arrow, .shelf.has-nav .shelf-arrow { display: none !important; }
    .shelf-item { width: auto !important; min-width: 0; gap: 2px; padding-bottom: 4px; }
    .shelf-bottle { width: 100%; margin-bottom: 6px; }
    .shelf-bottle .pv-photo { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; }
    .shelf-bottle svg { max-width: 60%; height: auto; }
    .shelf-name { font-size: .78rem; line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
    .shelf-brand { font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
    .shelf-price { font-size: .72rem; margin-top: 0; }
    .pw-now { font-size: .7rem; }
    .ganas { margin-top: 3px; } .ganas-l { display: none; }
    .ganas-b { padding: 1px; } .ganas-b svg { width: 14px; height: 14px; }
    .shelf-actions { gap: 4px; margin-top: 4px; width: 100%; justify-content: center; opacity: 1; }
    .shelf-act { font-size: .64rem; padding: 3px 6px; }
    .shelf-act.js-compare { flex: 1 1 100%; }
    .shelf-item .t-largo { display: none; } .shelf-item .t-corto { display: inline; }
    .shelf-empty { grid-column: 1 / -1; }
    .shelf-bottle .drop-badge { left: -2px; font-size: .6rem; padding: 2px 6px; }
  }

  /* ---- Rendimiento: lo que no se ve no se anima, y en el celular se sacan los efectos que más CPU gastan ----
     Medido en un celular simulado: las animaciones decorativas se llevaban ~80 % del trabajo del navegador, incluso con la página quieta. */
  .anim-off, .anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
  /* en el celular, el brillo que recorre los títulos con degradado (se repinta cada cuadro) da 2 pasadas y descansa; el resto de las animaciones sigue igual */
  @media (max-width: 860px), (hover: none) { .dp-kicker, .dp-hero h1 em, .dp-hero h2 em { animation-iteration-count: 2; } }
