/* ---------- Tokens ---------- */
:root {
  --es-oscuro: 0;
  --bg: #ffffff; --panel: #f5f5f7; --panel-2: #e8e8ed; --texto: #1d1d1f; --muted: #6e6e73;
  --borde: #d2d2d7; --acento: #0071e3; --acento-txt: #fff; --sombra: 0 4px 24px rgba(0, 0, 0, .08);
  --brot: #5fae3e; --oto: #e2601f;
  --primavera: #e8607a; --verano: #d9a400; --otono: #e2601f; --invierno: #4f8fcf;
  --r: 14px; --fuente: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --es-oscuro: 1;
    --bg: #000000; --panel: #161617; --panel-2: #272729; --texto: #f5f5f7; --muted: #a1a1a6;
    --borde: #424245; --acento: #2997ff; --acento-txt: #fff; --sombra: 0 4px 24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --es-oscuro: 1;
  --bg: #000000; --panel: #161617; --panel-2: #272729; --texto: #f5f5f7; --muted: #a1a1a6;
  --borde: #424245; --acento: #2997ff; --acento-txt: #fff; --sombra: 0 4px 24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--texto); font: 15px/1.5 var(--fuente); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:where(button, a, .buscador, .marca) > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
a { color: var(--acento); }
.oculto { display: none !important; }
.muted { color: var(--muted); }
.flex { flex: 1; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.brot { background: var(--brot); } .dot.oto { background: var(--oto); }
.vacio { color: var(--muted); padding: 24px 12px; text-align: center; list-style: none; }

.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.icon-btn:hover { background: var(--panel-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--borde); background: var(--panel); }
.pill[aria-pressed="true"] { background: var(--acento); color: var(--acento-txt); border-color: var(--acento); }
.link { color: var(--acento); font-weight: 500; padding: 4px 0; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--panel-2); font-size: 13px; }
.chip.on { background: var(--acento); color: var(--acento-txt); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

/* ---------- Cabecera y layout ---------- */
.top { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 1000; }
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.marca h1 { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 28px; height: 28px; color: var(--acento); }
.acciones { display: flex; gap: 6px; align-items: center; }
.buscador { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.buscador input { flex: 1; border: 0; background: none; padding: 10px 0; outline: none; color: var(--texto); min-width: 0; }
.contador { font-size: 13px; color: var(--muted); }
.lista { list-style: none; margin: 0 -6px; padding: 0; overflow: auto; flex: 1; }
.item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-align: left; }
.item:hover { background: var(--panel-2); }
.item.on { background: color-mix(in srgb, var(--acento) 16%, transparent); }
.item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-txt strong { font-weight: 500; }
.item-txt small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #fff; font-weight: 600; }
.badge.brot { background: var(--brot); } .badge.oto { background: var(--oto); }
.admin-link { font-size: 12px; color: var(--muted); text-align: center; display: block; margin-top: 32px; }

/* ---------- Catalogo (rejilla) ---------- */
body.publico { height: auto; min-height: 100%; }
.catalogo { max-width: 1440px; margin: 0 auto; padding: 18px 20px 48px; }
body.con-cal .catalogo { padding-bottom: 200px; }
.barra { display: flex; align-items: center; gap: 14px; }
.barra .buscador { flex: 1; max-width: 560px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding: 12px 0 16px; scrollbar-width: thin; }
.chips-scroll .chip { flex: none; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tarjeta { display: flex; flex-direction: column; text-align: left; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--r); overflow: hidden; padding: 0; transition: transform .15s ease, box-shadow .15s ease, opacity .2s; }
.tarjeta:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.tarjeta-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--panel-2); }
.tarjeta-img img, .tarjeta-color { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tarjeta-img .badge { position: absolute; top: 10px; left: 10px; }
.tarjeta-txt { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.tarjeta-txt strong { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.2; }
.tarjeta-txt small { color: var(--muted); font-size: 13px; }
.tarjeta.apagada { opacity: .3; }

/* ---------- Vista plano (bajo demanda) ---------- */
.vista-plano { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; }
#sin-colocar { top: auto; bottom: 18px; }
body.con-cal #sin-colocar { display: none; }
.aviso.aviso-info { background: var(--acento); color: var(--acento-txt); }

/* ---------- Mapa ---------- */
.mapa-wrap { position: relative; min-width: 0; }
#mapa { position: absolute; inset: 0; background: var(--panel-2); }
.leaflet-container { font: inherit; }
.leaflet-tooltip { font-weight: 500; }
.sin-plano { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); z-index: 500; }
.map-btn { position: absolute; right: 12px; top: 12px; z-index: 800; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--panel); box-shadow: var(--sombra); }
.map-btn.on { background: #2b7de9; color: #fff; }
.aviso { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 800; background: #b3261e; color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: var(--sombra); }
.gps-punto { fill: #2b7de9; fill-opacity: 1; stroke: #fff; stroke-width: 3; }
.gps-precision { fill: #2b7de9; fill-opacity: .12; stroke: #2b7de9; stroke-opacity: .4; stroke-width: 1; }

/* ---------- Calendario ---------- */
.cal { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; max-width: 640px; margin: 0 auto; background: var(--panel); border-radius: var(--r); box-shadow: var(--sombra); padding: 12px 16px; }
.cal-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cal-cab strong { font-family: var(--display); font-size: 22px; }
.cal-cuenta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cal-cuenta .dot.oto { margin-left: 8px; }
#cal-slider { width: 100%; accent-color: var(--acento); margin: 10px 0 2px; }
.cal-meses, .tira-meses { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.cal-meses span, .tira-meses span { flex: 1; text-align: center; }
.cal-pie { display: flex; justify-content: space-between; margin-top: 6px; }

.tira { position: relative; height: 12px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.tira .seg { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.tira .seg.brot { background: var(--brot); } .tira .seg.oto { background: var(--oto); }
.tira .hoy { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--texto); }
.linea-hoy { display: inline-block; width: 2px; height: 12px; background: var(--texto); vertical-align: middle; }

/* ---------- Ficha (pantalla completa) ---------- */
.ficha { position: fixed; inset: 0; z-index: 1100; background: var(--bg); display: none; flex-direction: column; }
.ficha.abierta { display: flex; }
body.con-ficha { overflow: hidden; }
.ficha-cab { height: 60px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--borde); }
.ficha-pos { font-size: 13px; color: var(--muted); min-width: 60px; text-align: center; }
.ficha-cuerpo { flex: 1; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; padding: 24px max(24px, calc((100% - 1480px) / 2)) 56px; align-items: start; }
.ficha-media { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }
.ficha-info { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; max-width: 720px; }
.ficha-info > .pill { align-self: flex-start; }
.ficha h2 { font-size: clamp(32px, 4vw, 48px); }
.ficha h3 { font-size: 18px; margin-top: 10px; }
.ficha .carrusel, .ficha .sin-foto { aspect-ratio: auto; height: calc(100vh - 200px); max-height: 920px; min-height: 320px; }
.ficha .carrusel { background: #0e100d; }
.ficha .carrusel img { object-fit: contain; }
.colores-anio { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.colores-anio li { display: flex; align-items: center; gap: 6px; }
.colores-anio .dot { width: 14px; height: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.est-nom { min-width: 92px; font-weight: 600; font-size: 14px; }
.est-nom.primavera { color: var(--primavera); } .est-nom.verano { color: var(--verano); }
.est-nom.otono { color: var(--otono); } .est-nom.invierno { color: var(--invierno); }
.sub { margin: -6px 0 0; color: var(--muted); }
.desc { white-space: normal; }
.traduccion { margin: -8px 0 0; font-style: italic; color: var(--muted); }
.color-est { display: flex; align-items: center; gap: 6px; margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.color-est .dot { width: 14px; height: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.datos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 15px; }
.datos dt { color: var(--muted); }
.datos dd { margin: 0; }
.sin-foto span { background: rgba(0,0,0,.25); padding: 6px 12px; border-radius: 999px; }
.sin-foto:not([style]) span { background: none; }
.feno-txt { font-size: 13px; color: var(--muted); margin: 0; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--panel-2); padding: 4px; border-radius: 10px; }
.tab { padding: 6px 2px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.tab small { margin-left: 4px; font-size: 11px; opacity: .8; }
.tab.on { background: var(--panel); color: var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tab.on.primavera { color: var(--primavera); } .tab.on.verano { color: var(--verano); }
.tab.on.otono { color: var(--otono); } .tab.on.invierno { color: var(--invierno); }
.galeria { position: relative; }
.carrusel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 12px; scrollbar-width: none; aspect-ratio: 4 / 3; background: var(--panel-2); }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; }
.puntos { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.puntos i { width: 6px; height: 6px; border-radius: 50%; background: var(--borde); }
.puntos i.on { background: var(--acento); }
.sin-foto { aspect-ratio: 4 / 3; border-radius: 12px; display: grid; place-items: center; color: var(--muted); border: 2px dashed var(--borde); text-align: center; padding: 20px; }
.sin-foto.primavera { border-color: color-mix(in srgb, var(--primavera) 45%, transparent); }
.sin-foto.verano { border-color: color-mix(in srgb, var(--verano) 45%, transparent); }
.sin-foto.otono { border-color: color-mix(in srgb, var(--otono) 45%, transparent); }
.sin-foto.invierno { border-color: color-mix(in srgb, var(--invierno) 45%, transparent); }

/* ---------- Modal comparativa ---------- */
.modal { position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, .45); display: grid; place-items: center; padding: 16px; }
.modal-caja { background: var(--panel); border-radius: var(--r); width: min(760px, 100%); max-height: 85vh; display: flex; flex-direction: column; box-shadow: var(--sombra); }
.modal-cab { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--borde); flex-wrap: wrap; }
.modal-cab h2 { font-size: 20px; flex: 1; }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 9px; padding: 3px; }
.seg button { padding: 5px 12px; border-radius: 7px; font-size: 13px; }
.seg button.on { background: var(--panel); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.comp-leyenda { display: flex; gap: 16px; padding: 10px 16px 0; font-size: 13px; color: var(--muted); }
.comp-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.comp-lista { overflow: auto; padding: 8px 16px 16px; }
.comp-fila { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 12px; align-items: center; width: 100%; padding: 6px 0; text-align: left; }
.comp-fila span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.comp-fila:hover span { color: var(--acento); }
.comp-fila.cab { position: sticky; top: -8px; background: var(--panel); }

/* ---------- Lightbox, compartir, toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1300; background: rgba(8, 10, 7, .95); display: grid; place-items: center; }
.lightbox img { max-width: 100vw; max-height: 86vh; object-fit: contain; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .12); width: 44px; height: 44px; }
.lb-cerrar { top: 14px; right: 14px; } .lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }
.lb-pie { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }
.menu-compartir { position: fixed; z-index: 1250; top: 120px; right: 28px; background: var(--panel); border-radius: 12px; box-shadow: var(--sombra); display: flex; flex-direction: column; padding: 6px; min-width: 180px; }
.menu-compartir a, .menu-compartir button { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--texto); text-align: left; }
.menu-compartir a:hover, .menu-compartir button:hover { background: var(--panel-2); }
.toast { position: fixed; z-index: 1400; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--texto); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); }

/* ---------- Portada ---------- */
.portada-main { max-width: 640px; margin: 0 auto; padding: 48px 16px; }
.portada-main h1 { font-size: 40px; margin-bottom: 20px; }
.portada-lista { list-style: none; padding: 0; display: grid; gap: 10px; }
.portada-lista a { display: flex; flex-direction: column; padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--borde); text-decoration: none; color: var(--texto); }
.portada-lista a:hover { border-color: var(--acento); }

/* ---------- Movil / tablet ---------- */
@media (max-width: 960px) {
  .ficha-cuerpo { grid-template-columns: 1fr; gap: 18px; padding: 14px 16px calc(32px + env(safe-area-inset-bottom)); }
  .ficha-media { position: static; }
  .ficha .carrusel, .ficha .sin-foto { height: 58vh; min-height: 260px; }
}
@media (max-width: 640px) {
  .top { padding: 0 8px; }
  .pill span { display: none; }
  .pill { padding: 9px; }
  .ficha-cab .pill span { display: inline; }
  .catalogo { padding: 12px 12px 40px; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tarjeta-txt { padding: 8px 10px 10px; }
  .tarjeta-txt strong { font-size: 16px; }
  .tarjeta-txt small { font-size: 12px; }
  .ficha-pos { display: none; }
  .cal { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  .menu-compartir { top: auto; bottom: 90px; right: 16px; left: 16px; }
  .lb-prev, .lb-next { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tarjeta { transition: none; }
}

/* =====================================================================
   Tienda de arces, estilo apple.com
   ===================================================================== */
.solo-movil { display: none; }
.top { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--borde) 60%, transparent); gap: 16px; }
.marca { flex: none; }
.marca h1 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.buscador-top { flex: 1; max-width: 440px; margin: 0 auto; border-radius: 999px; background: var(--panel); }
.buscador-top input { padding: 9px 0; font-size: 15px; }
.pill { border: 0; background: var(--panel); font-size: 14px; font-weight: 500; }
.pill[aria-pressed="true"] { background: var(--texto); color: var(--bg); }
.btn-prim { display: inline-flex; align-items: center; justify-content: center; background: var(--acento); color: #fff; border-radius: 999px; padding: 11px 22px; font-size: 17px; font-weight: 500; }
.btn-prim:hover { filter: brightness(1.08); }
.link-azul { color: var(--acento); font-size: 17px; padding: 0; background: none; }
.link-azul:hover { text-decoration: underline; }
.eyebrow { color: var(--oto); font-size: 17px; font-weight: 600; margin: 0; }
.chip { background: var(--panel); }
.chip.on { background: var(--texto); color: var(--bg); }

/* Portada */
.tienda { min-height: calc(100vh - 60px); }
body.con-cal .tienda { padding-bottom: 200px; }
.hero { text-align: center; padding: 72px 20px 36px; }
.hero-pre { margin: 0 0 6px; font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--muted); }
.hero-tit { font-size: clamp(56px, 10vw, 104px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.hero-desc { max-width: 760px; margin: 18px auto 0; font-size: clamp(19px, 2.3vw, 26px); line-height: 1.35; color: var(--muted); font-weight: 500; }
.hero-cifras { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

.destacado { max-width: 1240px; margin: 24px auto 0; background: var(--panel); border-radius: 30px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
.dest-txt { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.dest-txt h3 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; }
.dest-sub { margin: 0; font-size: 21px; color: var(--muted); }
.dest-acc { display: flex; align-items: center; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.dest-img { padding: 0; display: block; min-height: 460px; position: relative; overflow: hidden; }
.dest-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dest-img:hover img { transform: scale(1.03); }

.tira-var { display: flex; justify-content: center; gap: 30px; overflow-x: auto; padding: 36px 20px 26px; scrollbar-width: none; }
.tira-var::-webkit-scrollbar { display: none; }
.tv { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; font-size: 13px; color: var(--texto); min-width: 72px; }
.tv-ico { width: 60px; height: 60px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .2s; }
.tv-todas { background: conic-gradient(#c0392b, #e07a20, #d9b020, #5a9a3a, #6b2a52, #c0392b); }
.tv:hover .tv-ico { transform: scale(1.06); }
.tv small { color: var(--muted); font-size: 12px; margin-top: -6px; }
.tv.on span:nth-child(2) { color: var(--acento); font-weight: 600; }
.tv.on .tv-ico { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--acento); }

/* Cuerpo: menu lateral + resultados */
.tienda-cuerpo { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; padding: 28px 24px 72px; border-top: 1px solid var(--borde); }
.filtros { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.filtros-cab { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; }
.filtros-cab strong { font-size: 21px; font-weight: 600; }
.filtros-cab .link { color: var(--acento); font-size: 14px; }
.menu-var h4 { font-size: 15px; font-weight: 600; padding: 10px 0 6px; }
.menu-var ul { list-style: none; margin: 0; padding: 0; }
.mv { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 15px; text-align: left; color: var(--texto); }
.mv:hover span { color: var(--acento); }
.mv.on { font-weight: 600; color: var(--acento); }
.mv small { color: var(--muted); font-weight: 400; }
.mv-sub { padding-left: 14px; font-size: 14px; }
.menu-var { padding-bottom: 12px; }
.faceta { border-top: 1px solid var(--borde); }
.faceta summary { list-style: none; cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.faceta summary::-webkit-details-marker { display: none; }
.faceta summary::after { content: '+'; margin-left: auto; font-weight: 400; font-size: 20px; color: var(--muted); line-height: 1; }
.faceta[open] summary::after { content: '−'; }
.faceta summary b { background: var(--acento); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.ops, .ops-color { list-style: none; margin: 0 0 12px; padding: 0; }
.ops label, .ops-color label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.ops input, .ops-color input { accent-color: var(--acento); width: 16px; height: 16px; margin: 0; }
.ops small, .ops-color small { margin-left: auto; color: var(--muted); }
.ops .cero, .ops-color .cero { opacity: .4; }
.muestra { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.ver-mas { font-size: 14px; margin-bottom: 12px; }

.res-barra { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.res-tit { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.res-barra .contador { font-size: 15px; }
.orden { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.orden select { padding: 8px 12px; border: 1px solid var(--borde); border-radius: 10px; background: var(--bg); color: var(--texto); font-size: 14px; }
.activos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 20px; min-height: 4px; }
.activo { background: var(--panel); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.activo:hover { background: var(--panel-2); }
.activos .link-azul { font-size: 14px; margin-left: 4px; }

/* Tarjetas de producto */
.rejilla { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.tarjeta { background: var(--panel); border: 0; border-radius: 26px; text-align: center; transition: transform .3s ease, box-shadow .3s ease; }
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.tarjeta-img { aspect-ratio: 4 / 5; background: var(--panel-2); overflow: hidden; }
.tarjeta-img img { transition: transform .6s ease; }
.tarjeta:hover .tarjeta-img img { transform: scale(1.04); }
.tarjeta-img .badge { top: 14px; left: 14px; font-size: 11px; padding: 4px 10px; }
.badge.premio { background: rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tarjeta-txt { align-items: center; gap: 6px; padding: 20px 18px 24px; }
.tarjeta-txt .t-esp { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.tarjeta-txt strong { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.tarjeta-txt .t-meta { font-size: 13px; color: var(--muted); }
.tarjeta-txt .link-azul { font-size: 15px; margin-top: 4px; }
.muestras { display: flex; gap: 6px; margin: 2px 0; }
.muestras i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.vacio { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Ficha: pagina de producto */
.ficha-cab { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.ficha-cuerpo { display: block; padding: 0 20px 96px; }
.pf-cab { text-align: center; padding: 56px 0 28px; }
.pf-cab .eyebrow { font-size: 19px; }
.pf-cab .eyebrow em { font-style: normal; }
.pf-cab h2 { font-size: clamp(48px, 8vw, 88px); font-weight: 700; letter-spacing: -0.035em; margin-top: 4px; }
.pf-lema { margin: 10px 0 0; font-size: clamp(19px, 2.4vw, 28px); color: var(--muted); font-weight: 500; }
.pf-galeria { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pf-galeria .galeria { width: 100%; }
.ficha .carrusel, .ficha .sin-foto { height: min(72vh, 780px); min-height: 300px; border-radius: 30px; }
.ficha .carrusel { background: #000; }
.pf-galeria .tabs { width: min(520px, 100%); border-radius: 999px; padding: 4px; }
.pf-galeria .tab { border-radius: 999px; padding: 8px 4px; font-size: 14px; }
.pf-galeria .color-est { margin: 0; font-size: 14px; }
.pf-sec { max-width: 900px; margin: 72px auto 0; padding-top: 44px; border-top: 1px solid var(--borde); }
.pf-sec h3 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 28px; }
.pf-desc { border-top: 0; margin-top: 48px; padding-top: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pf-desc p { margin: 0; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; font-weight: 500; letter-spacing: -0.005em; }
.pf-desc .chips { justify-content: center; }
.specs { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; margin: 0; }
.specs dt, .specs dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--borde); }
.specs dt { color: var(--muted); font-size: 15px; }
.specs dd { font-size: 17px; font-weight: 500; }
.color-anio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ca-item { background: var(--panel); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 18px; text-align: center; }
.ca-muestra { display: block; width: 100%; height: 120px; background: var(--panel-2); margin-bottom: 10px; }
.ca-item strong { font-size: 15px; }
.ca-item span:last-child { font-size: 14px; color: var(--muted); padding: 0 12px; }

/* Tablet / movil */
@media (max-width: 960px) {
  .tienda-cuerpo { grid-template-columns: 1fr; gap: 0; padding: 20px 16px 64px; }
  .filtros { position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 88%); max-height: none; z-index: 1150; background: var(--bg); padding: 16px 20px 90px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--sombra); }
  body.filtros-abiertos .filtros { transform: none; }
  body.filtros-abiertos { overflow: hidden; }
  .velo { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1140; display: none; }
  body.filtros-abiertos .velo { display: block; }
  #btn-filtros { display: inline-flex; }
  #btn-filtros b { background: var(--acento); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; }
  #btn-filtros b:empty { display: none; }
  #btn-cerrar-filtros { display: grid; }
  .filtros-pie { display: block; position: fixed; left: 0; bottom: 0; width: min(360px, 88%); padding: 14px 20px; background: var(--bg); border-top: 1px solid var(--borde); }
  .filtros-pie .btn-prim { width: 100%; }
  .destacado { grid-template-columns: 1fr; margin: 12px 16px 0; }
  .dest-txt { padding: 40px 28px 28px; text-align: center; align-items: center; }
  .dest-img { min-height: 340px; }
  .tira-var { justify-content: flex-start; gap: 20px; }
  .color-anio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ficha .carrusel, .ficha .sin-foto { height: 62vh; border-radius: 22px; }
}
@media (max-width: 640px) {
  .marca h1 { display: none; }
  .top { gap: 8px; }
  .buscador-top { max-width: none; }
  .hero { padding: 44px 16px 20px; }
  .res-tit { font-size: 24px; width: 100%; order: -1; }
  .orden { font-size: 0; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tarjeta { border-radius: 20px; }
  .tarjeta-txt { padding: 12px 10px 16px; gap: 4px; }
  .tarjeta-txt strong { font-size: 17px; }
  .tarjeta-txt .link-azul, .tarjeta-txt .t-meta { display: none; }
  .pf-cab { padding: 32px 0 20px; }
  .specs { grid-template-columns: 120px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .filtros, .tarjeta, .tarjeta-img img, .dest-img img { transition: none; }
}
@media (max-width: 640px) { #btn-filtros span { display: inline; } #btn-filtros { padding: 8px 14px; } }

/* ---------- App instalable ---------- */
#btn-instalar { background: var(--acento); color: #fff; }
#btn-instalar span { display: inline !important; }
.aviso-ios { position: fixed; z-index: 1300; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; border-radius: 18px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--sombra); font-size: 14px; }
.aviso-ios p { margin: 0; flex: 1; }
.ico-compartir { display: inline-block; color: var(--acento); font-weight: 700; }
/* En la app instalada (iPhone) respetar la zona de la camara/notch */
.app-instalada .top { padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); }
