/* =========================================================
   TopChollos — estilos de la tienda
   Fondo claro, detalles negros y un acento naranja para
   botones y ofertas. Cambia los colores en :root.
   ========================================================= */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #4a4a48;
  --ink-3: #8a8985;
  --line: #e6e4dd;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #fff1ea;
  --ok: #157a4a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 8px 24px -12px rgba(17,17,17,.12);
  --shadow-lg: 0 2px 4px rgba(17,17,17,.05), 0 24px 48px -20px rgba(17,17,17,.25);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.015em; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.container { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.hp { display: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1rem; }
.btn-xl { padding: 1.05rem 1.6rem; font-size: 1.05rem; letter-spacing: .04em; width: 100%; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-accent, .btn-amazon { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -8px var(--accent); }
.btn-accent:hover, .btn-amazon:hover { background: #ec4a10; transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn.is-disabled { background: #ecebe6; color: var(--ink-3); box-shadow: none; cursor: not-allowed; }
.btn-icon { background: none; border: 0; padding: .5rem; cursor: pointer; border-radius: 10px; }
.btn-icon:hover { background: rgba(0,0,0,.05); }

/* ---------- Barras superiores ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: .5rem 1rem; }
.topbar a { color: #fff; }
.topbar-soft { background: #ecebe6; color: var(--ink-2); }
.topbar-soft a { color: var(--ink); }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(247,246,242,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.scrolled .header { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 600; font-size: 1.45rem; text-decoration: none; letter-spacing: -.02em; }
.btn-cats { display: inline-flex; align-items: center; gap: .45rem; background: var(--surface); border: 1px solid var(--line); padding: .6rem .95rem; border-radius: 999px; font-weight: 600; cursor: pointer; }
.btn-cats[aria-expanded="true"] { border-color: var(--ink); }
.search { position: relative; flex: 1; display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .35rem .3rem 1rem; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.06); }
.search svg { color: var(--ink-3); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; padding: .35rem 0; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: .4rem; z-index: 60; }
.sg-item { display: flex; gap: .75rem; align-items: center; padding: .45rem .5rem; border-radius: 10px; text-decoration: none; }
.sg-item:hover, .sg-item.is-active, .sg-all.is-active { background: var(--bg); }
.sg-item b { display: block; font-weight: 600; font-size: .92rem; }
.sg-item small { color: var(--ink-3); }
.sg-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; }
.sg-thumb .illus svg { width: 55%; }
.sg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sg-all { display: block; padding: .6rem .5rem; font-weight: 600; font-size: .9rem; border-top: 1px solid var(--line); margin-top: .3rem; text-decoration: none; border-radius: 10px; }
.sg-empty { margin: .6rem; color: var(--ink-3); }
.nav { display: flex; gap: .25rem; }
.nav a { text-decoration: none; padding: .5rem .8rem; border-radius: 999px; font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a.is-active { color: var(--ink); background: rgba(0,0,0,.05); }
.btn-menu { display: none; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; padding: 1rem max(1.25rem, calc((100% - 1240px) / 2)); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s var(--ease); }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega-item { display: flex; gap: .75rem; align-items: center; padding: .6rem; border-radius: 12px; text-decoration: none; }
.mega-item:hover { background: var(--bg); }
.mega-item .illus { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.mega-item .illus svg { width: 58%; }
.mega-item b { display: block; font-size: .92rem; }
.mega-item small { color: var(--ink-3); font-size: .8rem; display: block; line-height: 1.3; }
.mobile-menu { display: none; }

/* ---------- Ilustraciones de categoría (se usan si no hay foto) ---------- */
.illus { width: 100%; height: 100%; display: grid; place-items: center; color: hsl(var(--h) 45% 28%);
  background: radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 80% 96%), transparent 60%), linear-gradient(160deg, hsl(var(--h) 60% 92%), hsl(calc(var(--h) + 30) 55% 86%)); }
.illus svg { width: 42%; height: auto; filter: drop-shadow(0 10px 14px hsl(var(--h) 40% 40% / .18)); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--ink-2); font-weight: 500; }
.hero p { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1.4rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0; margin: 0; color: var(--ink-3); font-size: .92rem; }
.hero-trust b { color: var(--ink); }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 14px; }
.hero-tile { position: relative; border-radius: 22px; display: grid; place-items: center; text-decoration: none; color: hsl(var(--h) 45% 25%); overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 85% 97%), transparent 60%), linear-gradient(160deg, hsl(var(--h) 65% 91%), hsl(calc(var(--h) + 30) 55% 84%));
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.hero-tile svg { width: 46%; transition: transform .5s var(--ease); }
.hero-tile span { position: absolute; left: 14px; bottom: 12px; font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.75); backdrop-filter: blur(6px); padding: .2rem .6rem; border-radius: 999px; color: var(--ink); }
.hero-tile:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.hero-tile:hover svg { transform: scale(1.08) rotate(-4deg); }
.hero-tile.t0 { grid-row: span 2; }
.hero-tile.t4 { grid-column: span 2; }
.hero-tile.t0 { animation: float 7s ease-in-out infinite; }
.hero-tile.t3 { animation: float 8s ease-in-out -2s infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- Chips ---------- */
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem 0 1rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .5rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .92rem; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Secciones ---------- */
.section { padding: clamp(2rem, 4vw, 3.2rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head p { margin: 0; color: var(--ink-3); }
.section-head h2 { margin: 0 0 .2rem; }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.offers-band { background: var(--ink); color: #fff; padding: clamp(2.2rem, 4vw, 3.4rem) 0; margin: 1rem 0; }
.on-dark p { color: #a9a8a3; }
.offers-band .card { color: var(--ink); }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.03); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { display: block; aspect-ratio: 1; overflow: hidden; background: #f1f0ec; }
.card-media img, .card-media .illus { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.card-media img { padding: 10%; background: #fff; }
.card:hover .card-media img, .card:hover .card-media .illus svg { transform: scale(1.05); }
.card-media .illus svg { transition: transform .5s var(--ease); }
.card-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .55rem; border-radius: 999px; }
.badge-sale { background: var(--accent); color: #fff; }
.badge-new { background: var(--ink); color: #fff; }
.badge-demo { background: #fff; color: var(--ink-2); border: 1px dashed var(--ink-3); }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-cat { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); text-decoration: none; font-weight: 600; }
.card-cat:hover { color: var(--accent); }
.card-title { font-size: 1.02rem; font-weight: 600; margin: 0; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-desc { margin: 0; color: var(--ink-2); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.card-foot .btn { padding: .55rem .9rem; font-size: .86rem; }
.price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.price-now { font-weight: 700; font-size: 1.15rem; }
.price-old { color: var(--ink-3); font-size: .9rem; }
.price-na { font-size: .85rem; color: var(--ink-3); }
.price-big .price-now { font-size: 2rem; }
.price-big .price-na { font-size: 1rem; }
.price-note { flex-basis: 100%; color: var(--ink-3); font-size: .8rem; }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-card { display: flex; align-items: center; gap: 1rem; padding: .8rem; background: var(--surface); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card .illus { width: 72px; height: 72px; border-radius: 14px; flex: none; }
.cat-card h3 { font-size: 1rem; margin: 0 0 .15rem; }
.cat-card p { margin: 0; color: var(--ink-3); font-size: .88rem; }
.cat-card-offer { background: var(--accent-soft); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-item { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.how-item span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: .8rem; }
.how-item h3 { font-size: 1.1rem; }
.how-item p { margin: 0; color: var(--ink-2); }

/* ---------- Listado / filtros ---------- */
.crumbs { font-size: .86rem; color: var(--ink-3); padding: 1.2rem 0 .6rem; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero { padding-bottom: .5rem; }
.page-hero-row { display: flex; gap: 1.2rem; align-items: center; margin: .4rem 0 1rem; }
.page-hero-row .illus { width: 84px; height: 84px; border-radius: 20px; flex: none; }
.page-hero-row h1 { margin: 0 0 .2rem; }
.page-hero-row p { margin: 0; color: var(--ink-2); max-width: 46rem; }
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding-bottom: 4rem; align-items: start; }
.filters { position: sticky; top: 90px; background: var(--surface); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.f-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 1rem; }
.f-label input, .f-label select, .f-row input { display: block; width: 100%; margin-top: .35rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.f-group { border: 0; padding: 0; margin: 0 0 1rem; }
.f-group legend { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.f-group small { color: var(--ink-3); font-size: .78rem; }
.f-row { display: flex; align-items: center; gap: .4rem; }
.f-row input { margin-top: 0; }
.check { display: flex; gap: .55rem; align-items: center; font-size: .92rem; padding: .25rem 0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 17px; height: 17px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.results-count { margin: 0; color: var(--ink-2); }
.results-tools { display: flex; gap: .5rem; align-items: center; }
.sort { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-2); }
.sort select { padding: .55rem 2rem .55rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.empty { background: var(--surface); border-radius: var(--radius); padding: 3rem; text-align: center; color: var(--ink-2); box-shadow: var(--shadow); }
.only-mobile { display: none; }

/* ---------- Ficha de producto ---------- */
.notice { background: var(--accent-soft); border: 1px solid #ffd5c2; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .92rem; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: .5rem 0 2rem; }
.gallery-main { position: relative; aspect-ratio: 1; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
#main-img, #main-img img, #main-img .illus { width: 100%; height: 100%; }
#main-img img { object-fit: contain; padding: 6%; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: scale(.98); } }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { width: 76px; height: 76px; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 4px; cursor: pointer; flex: none; box-shadow: var(--shadow); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--ink); }
.product-info { display: flex; flex-direction: column; gap: .7rem; }
.product-info h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0; }
.brand { margin: 0; color: var(--ink-2); }
.lead { font-size: 1.1rem; color: var(--ink-2); margin: 0; }
.product-info .price { padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclosure { font-size: .82rem; color: var(--ink-3); margin: 0; }
.features { background: var(--surface); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); margin-top: .4rem; }
.features h2 { font-size: 1.05rem; }
.features ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.features li { padding-left: 1.6rem; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.product-desc { max-width: 52rem; padding: 1rem 0 1rem; }
.product-desc p { color: var(--ink-2); }
.sticky-buy { display: none; }

/* ---------- Páginas de texto ---------- */
.prose-wrap { max-width: 820px; padding-bottom: 4rem; }
.prose { background: var(--surface); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; box-shadow: var(--shadow); }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose .lead { color: var(--ink); font-size: 1.15rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: .6rem .4rem; text-align: left; vertical-align: top; }
.contact-form { display: grid; gap: .9rem; margin: 1.5rem 0; }
.contact-form label:not(.check) { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { padding: .7rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); width: 100%; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; }
.notfound { text-align: center; padding: 6rem 0; }
.notfound h1 { font-size: 5rem; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #cfcdc7; margin-top: 3rem; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a { text-decoration: none; color: #cfcdc7; }
.footer a:hover { color: #fff; }
.logo-light { color: #fff; }
.footer p { font-size: .92rem; }
.footer-disclosure { border-left: 3px solid var(--accent); padding-left: .8rem; color: #fff; }
.footer-bottom { border-top: 1px solid #2c2c2b; margin-top: 2.5rem; padding: 1.2rem 0 1.6rem; font-size: .82rem; color: #8f8d87; }

/* ---------- Cookies, carga, animaciones ---------- */
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 760px; margin-inline: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; z-index: 80; border: 1px solid var(--line); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .88rem; color: var(--ink-2); flex: 1; }
.cookie-bar div { display: flex; gap: .5rem; flex: none; }
.loading { display: grid; place-items: center; min-height: 60vh; }
.loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .mega { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-inner, .product { grid-template-columns: 1fr; }
  .hero-art { grid-auto-rows: 110px; }
  .listing { grid-template-columns: 1fr; }
  .only-mobile { display: inline-flex; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(360px, 90vw); z-index: 90; border-radius: 0; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); top: 0; }
  .filters-open .filters { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.25); }
  .how { grid-template-columns: 1fr; }
  .sticky-buy { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(247,246,242,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 30; }
  .product + * { padding-bottom: 5rem; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: .7rem 0; gap: .6rem; }
  .logo { margin-right: auto; }
  .btn-cats { display: none; }
  .btn-menu { display: inline-flex; order: 2; }
  .search { order: 3; flex-basis: 100%; }
  .search .btn { display: none; }
  .mobile-menu { display: block; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); background: var(--surface); }
  .menu-open .mobile-menu { max-height: 80vh; overflow-y: auto; border-bottom: 1px solid var(--line); }
  .mobile-menu a { display: block; padding: .75rem 1.25rem; text-decoration: none; border-top: 1px solid var(--line); }
  .mm-title { margin: 0; padding: 1rem 1.25rem .4rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
  .mega { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: .75rem .8rem .9rem; }
  .card-desc { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .btn { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .topbar-soft { display: none; }
}

/* Contenido pre-renderizado para buscadores (se sustituye al cargar la app) */
.prerender { padding: 2rem 0 4rem; }
.prerender ul { padding-left: 1.2rem; }
@media (max-width: 720px) {
  .results-tools { width: 100%; }
  .sort { flex: 1; min-width: 0; }
  .sort select { flex: 1; min-width: 0; width: 100%; }
  .page-hero-row .illus { width: 60px; height: 60px; border-radius: 16px; }
  .page-hero-row p { font-size: .95rem; }
}
