/* ==========================================================================
   Power One — estilos de la tienda
   ========================================================================== */

@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F5F5F4;
  --surface: #FFFFFF;
  --surface-2: #F2F2F1;
  --border: #E5E5E3;
  --border-strong: #CFCFCC;
  --text: #141414;
  --text-2: #3F3F42;
  --muted: #626267;
  --ink: #141414;
  --primary-bg: #141414;
  --primary-fg: #FFFFFF;
  --primary-hover: #2B2B2B;
  --accent: #F8BC30;
  --accent-ink: #8A5A00;
  --accent-soft: #FFF4DC;
  --info-soft: #E4ECF7;
  --info-ink: #2A4A7A;
  --wa: #1B7F45;
  --wa-hover: #156B3A;
  --sale: #B3261E;
  --sale-text: #B3261E;
  --ok: #1B7F45;
  --hero-bg: #141414;
  --hero-text: #FFFFFF;
  --hero-muted: #BDBDBD;
  --hero-line: #3D3D3D;
  --footer-bg: #141414;
  --footer-text: #BDBDBD;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .06);
  --shadow-md: 0 10px 30px rgba(20, 20, 20, .10);
  --radius: 14px;
  --radius-sm: 10px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --container: 1240px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0C0C0C;
  --surface: #151515;
  --surface-2: #1D1D1D;
  --border: #2A2A2A;
  --border-strong: #3B3B3B;
  --text: #EDEDED;
  --text-2: #CFCFCF;
  --muted: #A3A3A3;
  --primary-bg: #F8BC30;
  --primary-fg: #141414;
  --primary-hover: #FAC955;
  --accent-ink: #FACC5A;
  --accent-soft: #2A2112;
  --info-soft: #16233A;
  --info-ink: #9DBBE6;
  --sale-text: #FF8A80;
  --ok: #5BD28E;
  --hero-bg: #151515;
  --hero-muted: #B5B5B5;
  --hero-line: #3B3B3B;
  --footer-bg: #080808;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

.theme-anim, .theme-anim * { transition: background-color .3s ease, border-color .3s ease, color .3s ease !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary-bg); color: var(--primary-fg); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.icon { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #141414; }
.btn-accent:hover { background: #FAC955; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-wa { background: var(--wa); color: #FFFFFF; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 22px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--border-strong); }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }

/* ---------- Encabezado ---------- */
.topbar { background: var(--ink); color: #E0E0E0; font-size: 13px; }
:root[data-theme="dark"] .topbar { background: #050505; }
.topbar .container { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #E0E0E0; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-links { display: flex; gap: 16px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.header-main { display: flex; align-items: center; gap: 16px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; min-width: 0; }
.logo-img { height: 42px; width: auto; max-width: 100%; }
.logo-img--dark { display: none; }
:root[data-theme="dark"] .logo--dual .logo-img--light { display: none; }
:root[data-theme="dark"] .logo--dual .logo-img--dark { display: block; }
.logo-mark img { width: 26px; height: auto; }
.footer-logo { height: 40px; width: auto; max-width: 100%; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
:root[data-theme="dark"] .logo-mark { background: #262626; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.logo-text span { color: #D98A00; }
:root[data-theme="dark"] .logo-text span { color: var(--accent); }
.search { flex: 1 1 360px; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid var(--border-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-2); font-size: 15px; }
.search input:focus { outline: none; border-color: var(--text); background: var(--surface); }
.search button { height: 46px; padding: 0 18px; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--primary-bg); color: var(--primary-fg); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.search button:hover { background: var(--primary-hover); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle { display: none; }

.catnav { border-top: 1px solid var(--border); }
.catnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
.catnav-list > li { position: relative; display: flex; align-items: center; }
.catnav-list > li > a { display: block; padding: 13px 0; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--text); }
.catnav-list > li > a:hover, .catnav-list > li > a[aria-current="page"] { color: var(--accent-ink); }
.catnav-offers { color: var(--sale-text) !important; }
.sub-toggle { display: none; }
.submenu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -12px; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 50; }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--text-2); }
.submenu a:hover { background: var(--surface-2); color: var(--text); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Secciones ---------- */
main { display: block; min-height: 50vh; }
.section { padding-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(22px, 3vw, 28px); }
.section-head p { color: var(--muted); margin-top: 4px; }
.link-more { font-weight: 700; text-decoration: none; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.link-more:hover { text-decoration: underline; }

/* ---------- Banner principal ---------- */
.hero { padding-top: 24px; }
.slider { position: relative; border-radius: 20px; overflow: hidden; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: clamp(28px, 5vw, 56px); min-height: 360px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; background: var(--hero-bg); color: var(--hero-text); }
.slide.is-active { opacity: 1; visibility: visible; }
.slide--accent { background: var(--accent); color: #141414; }
.slide--light { background: var(--info-soft); color: var(--text); }
:root[data-theme="dark"] .slide--dark { border: 1px solid var(--border); }
.slide-text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.slide-kicker { align-self: flex-start; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; padding: 6px 10px; border-radius: 6px; background: var(--accent); color: #141414; }
.slide--accent .slide-kicker { background: #141414; color: var(--accent); }
.slide h1, .slide h2 { font-size: clamp(30px, 4.6vw, 48px); }
.slide-sub { font-size: clamp(16px, 1.6vw, 18px); color: var(--hero-muted); max-width: 520px; }
.slide--accent .slide-sub { color: #3A2A00; }
.slide--light .slide-sub { color: var(--text-2); }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.slide--accent .btn-accent { background: #141414; color: #FFFFFF; }
.slide--light .btn-accent { background: var(--primary-bg); color: var(--primary-fg); }
.slide-media { flex: 1 1 280px; display: flex; justify-content: center; }
.slide-media img { border-radius: 16px; max-height: 300px; width: auto; object-fit: contain; }
.slide-deco { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; border-radius: 18px; position: relative; background: rgba(255, 255, 255, .06); border: 1px solid var(--hero-line); overflow: hidden; }
.slide-deco svg { position: absolute; inset: 0; margin: auto; width: 46%; height: 46%; }
.slide--accent .slide-deco, .slide--light .slide-deco { background: rgba(20, 20, 20, .06); border-color: rgba(20, 20, 20, .15); }
.slider-controls { position: absolute; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(20, 20, 20, .55); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.slider-btn:hover { background: rgba(20, 20, 20, .8); }
.slider-dots { display: flex; gap: 6px; }
.slider-dot { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.slider-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 1px rgba(20, 20, 20, .3); transition: width .2s, background .2s; }
.slider-dot[aria-current="true"]::before { width: 22px; border-radius: 6px; background: #FFFFFF; }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cat-icon svg { width: 26px; height: 26px; }
.cat-tile strong { display: block; font-size: 15px; line-height: 1.3; }
.cat-tile span.cat-count { font-size: 13px; color: var(--muted); }

/* ---------- Tarjetas de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.catalog .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 1; }
.badge { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; line-height: 1.2; }
.badge-sale { background: var(--sale); color: #FFFFFF; }
.badge-new { background: var(--ink); color: #FFFFFF; }
:root[data-theme="dark"] .badge-new { background: var(--accent); color: #141414; }
.badge-out { background: var(--surface); color: var(--text-2); border: 1px solid var(--border-strong); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.card-h { margin: 0; font: inherit; letter-spacing: 0; }
.card-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; text-decoration: none; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-title:hover { color: var(--accent-ink); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.price--sale { color: var(--sale-text); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-ask { font-weight: 700; color: var(--text-2); }
.stock { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--available { color: var(--ok); }
.stock--low { color: var(--accent-ink); }
.stock--on_request { color: var(--info-ink); }
.stock--out { color: var(--muted); }
.card .btn-wa { position: relative; z-index: 1; margin-top: 8px; min-height: 42px; font-size: 14px; white-space: normal; text-align: center; line-height: 1.2; padding: 6px 10px; }

/* ---------- Ventajas y contacto ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.perk strong { display: block; margin-bottom: 2px; }
.perk p { font-size: 14px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--accent-ink); margin-top: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.wa-list { display: flex; flex-direction: column; gap: 10px; }
.map-frame { width: 100%; min-height: 320px; height: 100%; border: 0; border-radius: 18px; background: var(--surface-2); }

/* ---------- Catálogo ---------- */
.page-head { padding-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 34px); }
.page-head p { color: var(--muted); }
.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--text); }
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; position: sticky; top: 140px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 160px); overflow: auto; }
.filters-head { display: none; }
.filter-group { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-group legend, .filter-title { font-weight: 800; font-size: 14px; padding: 0; margin-bottom: 4px; }
.filter-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filter-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--text-2); }
.filter-cats a:hover { background: var(--surface-2); }
.filter-cats a[aria-current="page"] { background: var(--ink); color: #FFFFFF; font-weight: 700; }
:root[data-theme="dark"] .filter-cats a[aria-current="page"] { background: var(--accent); color: #141414; }
.filter-cats .sub a { padding-left: 24px; font-size: 13.5px; }
.filter-cats small { color: inherit; opacity: .7; }
.input, .select { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; }
.input:focus, .select:focus { outline: none; border-color: var(--text); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; min-height: 36px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
:root[data-theme="dark"] .check input { accent-color: var(--accent); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.results-bar .count { color: var(--muted); font-size: 14px; }
.results-bar form { display: flex; align-items: center; gap: 8px; }
.results-bar label { font-size: 14px; color: var(--muted); }
.results-bar .select { width: auto; height: 40px; }
.filters-open { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--text); }
.chip svg { width: 14px; height: 14px; }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2 { font-size: 22px; }
.empty p { color: var(--muted); max-width: 440px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 700; font-size: 14px; }
.pagination a:hover { border-color: var(--text); }
.pagination [aria-current="page"] { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }

/* ---------- Detalle de producto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding-top: 20px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 150px; }
.gallery-main { aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.thumb { aspect-ratio: 1 / 1; padding: 0; border-radius: 12px; border: 2px solid var(--border); overflow: hidden; background: var(--surface); cursor: pointer; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--text); }
.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-info .card-meta a { text-decoration: none; }
.product-info h1 { font-size: clamp(26px, 3.4vw, 36px); }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.product-price .price { font-size: clamp(28px, 3.6vw, 36px); }
.product-price .price-old { font-size: 17px; }
.save-tag { font-size: 13px; font-weight: 800; color: #FFFFFF; background: var(--sale); padding: 4px 8px; border-radius: 6px; }
.promo-until { font-size: 13px; color: var(--muted); width: 100%; }
.lead { font-size: 17px; color: var(--text-2); }
.buy-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.buy-box details { font-size: 14px; color: var(--muted); }
.buy-box summary { cursor: pointer; font-weight: 600; }
.wa-preview { margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); white-space: pre-line; font-size: 13.5px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.prose { color: var(--text-2); display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.prose-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.prose-wrap h2 { font-size: 22px; margin-bottom: 14px; }

/* ---------- Pie y WhatsApp flotante ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 72px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.site-footer h2 { font-family: var(--font-body); font-size: 15px; letter-spacing: 0; color: #FFFFFF; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-brand .logo-text { color: #FFFFFF; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p { margin-top: 10px; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; padding-bottom: 24px; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { border-color: #FFFFFF; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(20, 20, 20, .3); transition: transform .2s, background-color .15s; }
.wa-float:hover { background: var(--wa-hover); transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Páginas de error ---------- */
.error-page { max-width: 560px; margin: 12vh auto; padding: 0 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.error-code { font-family: var(--font-display); font-size: 64px; font-weight: 700; color: var(--accent-ink); line-height: 1; }
.error-page p { color: var(--muted); }
.debug { text-align: left; white-space: pre-wrap; font-size: 12px; background: var(--surface); padding: 12px; border-radius: 8px; max-width: 100%; overflow: auto; }

/* ---------- Animaciones sutiles ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .filters-open { display: inline-flex; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); max-height: none; height: 100%; border-radius: 0 18px 18px 0; z-index: 80; transform: translateX(-105%); transition: transform .25s ease; top: 0; box-shadow: var(--shadow-md); }
  .filters.is-open { transform: none; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; }
  .filters-head h2 { font-size: 20px; }
  .backdrop { position: fixed; inset: 0; background: rgba(5, 5, 5, .5); z-index: 70; }
  .product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery { position: static; }
}

@media (max-width: 860px) {
  .header-main { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .logo { flex: 1; }
  .search { order: 5; flex-basis: 100%; }
  .hide-sm { display: none !important; }
  .catnav { display: none; border-top: 1px solid var(--border); max-height: calc(100vh - 130px); overflow-y: auto; }
  .site-header.nav-open .catnav { display: block; }
  .catnav-list { flex-direction: column; gap: 0; padding: 6px 0 12px; }
  .catnav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .catnav-list > li > a { flex: 1; padding: 14px 0; font-size: 15px; }
  .sub-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; color: var(--text); }
  .sub-toggle svg { transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 10px; min-width: 0; width: 100%; display: none; background: transparent; }
  .has-sub.is-open .submenu { display: block; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-links { display: none; }
  .slide { min-height: 0; }
  .slide-media { display: none; }
  .slider-controls { position: static; justify-content: center; padding: 12px; background: var(--hero-bg); }
  .section { padding-top: 36px; }
}

@media (max-width: 520px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .cat-icon { width: 42px; height: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 11px 12px; gap: 4px; }
  .card-title { font-size: 14px; }
  .price { font-size: 16px; }
  .card .btn-wa { font-size: 13px; padding: 0 8px; min-height: 40px; }
  .card .btn-wa .wa-label-long { display: none; }
  .perks, .contact-card { padding: 18px; }
  .logo-text { font-size: 19px; }
  .logo-img { height: 32px; }
  .header-actions .btn { display: none; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

@media (min-width: 521px) {
  .wa-label-short { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .wa-float, .topbar, .buy-box .btn { display: none !important; }
}
