/* ==========================================================
   Estilos generales — basado en el diseño de Photoshop
   ========================================================== */
:root {
  --bg: #ffffff;
  --soft: #ededed;       /* fondo de tarjetas */
  --hero: #ececec;       /* fondo del hero */
  --ink: #111111;
  --muted: #9a9a9a;
  --line: #d9d9d9;
  --accent: #2f5ea8;     /* azul de los detalles */
  --ok: #1f7a4d;
  --radius: 0;
  --wrap: 1080px;
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.slash { color: var(--accent); margin-right: 6px; font-weight: 400; }
.small { font-size: 11px; letter-spacing: .04em; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.header.solid { position: relative; border-bottom: 1px solid #f0f0f0; }
.header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.header .left, .header .right { display: flex; align-items: center; gap: 28px; font-size: 11px; }
.header .right { justify-content: flex-end; }
.burger { width: 22px; height: 14px; position: relative; }
.burger span { position: absolute; left: 0; height: 1.5px; background: var(--ink); }
.burger span:nth-child(1) { top: 0; width: 22px; }
.burger span:nth-child(2) { top: 6px; width: 16px; }
.burger span:nth-child(3) { top: 12px; width: 10px; }
.logo { font-size: 17px; letter-spacing: .42em; font-weight: 500; text-transform: uppercase; padding-left: .42em; }
.logo:has(img) { padding: 0; letter-spacing: 0; display: flex; align-items: center; }
.logo img { height: 54px; width: auto; transition: transform .25s; }
.logo:hover img { transform: scale(1.04); }
.nav-link { text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; font-weight: 500; }
.nav-link:hover { color: var(--accent); }
.cart-count { color: var(--accent); }

/* ---------- Buscador ---------- */
.header { position: relative; }
.search-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: -8px; }
.search-btn:hover, .header.buscando .search-btn { color: var(--accent); }
.searchbar { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border-bottom: 1px solid #eee; box-shadow: 0 14px 30px rgba(0,0,0,.08); animation: fdrop .18s ease; }
.search-form { display: flex; align-items: center; gap: 12px; height: 64px; }
.search-ico { color: var(--muted); flex: none; }
.search-form input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 17px; background: transparent; color: var(--ink); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-close { font-size: 28px; line-height: 1; padding: 4px 6px; color: var(--muted); }
.search-results:empty { display: none; }
.search-results { padding-bottom: 14px; max-height: min(70vh, 560px); overflow-y: auto; }
.sr-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid #f2f2f2; }
.sr-item:hover { background: #fafafa; }
.sr-item img { width: 48px; height: 60px; object-fit: cover; background: var(--soft); }
.sr-txt { display: grid; gap: 2px; font-size: 13px; min-width: 0; }
.sr-txt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-txt small { color: var(--muted); font-size: 11px; }
.sr-price { font-size: 13px; text-align: right; }
.sr-price .precio-desc { flex-direction: column; }
.sr-all { display: block; padding: 12px 0 2px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--accent); border-top: 1px solid #f2f2f2; }
.sr-empty { padding: 14px 0; font-size: 13px; color: #555; border-top: 1px solid #f2f2f2; }
.fchip-q { background: #e9f0fb; }

/* ---------- Menú lateral ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .3s; }
.drawer .panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: #fff; padding: 28px 36px; transform: translateX(-100%); transition: transform .35s ease; }
.drawer.open { pointer-events: auto; }
.drawer.open .shade { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer .close { font-size: 26px; line-height: 1; margin-bottom: 48px; }
.drawer nav a { display: block; font-size: 26px; font-weight: 400; padding: 8px 0; }
.drawer nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(ellipse at 65% 70%, #f7f7f7 0%, var(--hero) 60%, #e3e3e3 100%); min-height: 560px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; min-height: 560px; display: grid; grid-template-columns: 1fr 1.6fr; align-items: center; gap: 24px; padding-top: 76px; padding-bottom: 80px; }
.hero-copy { max-width: 260px; }
.hero-copy h1 { font-size: 22px; font-weight: 500; margin-bottom: 18px; }
.hero-copy p { font-size: 13px; line-height: 1.75; color: #333; margin-bottom: 28px; }
.hero-img { display: flex; justify-content: center; align-items: center; height: 380px; }
.hero-img img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(0,0,0,.12)); transition: opacity .4s; }
.hero-foot { position: absolute; left: 24px; right: 24px; bottom: 56px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 500; }
.counter { display: flex; align-items: center; gap: 18px; font-size: 11px; font-weight: 600; }
.counter .track { width: 56px; height: 1px; background: #999; position: relative; }
.counter .track i { position: absolute; left: 0; top: 0; height: 1px; background: var(--ink); transition: width .4s; }
.arrow { color: var(--accent); font-size: 18px; padding: 4px; margin-left: 12px; }

.btn-outline { display: inline-block; border: 1px solid var(--accent); color: var(--accent); padding: 12px 26px; font-size: 11px; letter-spacing: .16em; font-weight: 500; text-transform: uppercase; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-solid { display: inline-block; background: var(--ink); color: #fff; padding: 15px 28px; font-size: 11px; letter-spacing: .16em; font-weight: 500; text-transform: uppercase; text-align: center; }
.btn-solid:hover { background: var(--accent); }
.btn-solid:disabled { background: #bbb; cursor: not-allowed; }

/* ---------- Banner compacto del home ---------- */
.banner { display: grid; grid-template-columns: 1fr 1fr; height: 280px; background: #e9e9e9; overflow: hidden; margin-top: 18px; }
.banner-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 48px; gap: 14px; }
.banner-tag { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.banner h1 { font-size: 30px; font-weight: 500; line-height: 1.15; margin-bottom: 8px; }
.banner-img { position: relative; }
.banner-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .6s ease; }
.banner:hover .banner-img img { transform: scale(1.03); }
.banner:hover .btn-outline { background: var(--accent); color: #fff; }

/* Banner de imagen: se adapta a la proporción de la foto, sin recortes */
.banner.banner-foto { display: block; height: auto; background: #000; }
.banner-foto img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.banner-foto:hover img { transform: scale(1.01); }

/* ---------- Descuentos ---------- */
:root { --promo: #e10600; }
.tag-promo { display: inline-block; background: var(--promo); color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; line-height: 1.2; }
.card .tag-promo { position: absolute; left: 10px; top: 10px; z-index: 2; box-shadow: 0 2px 10px rgba(225,6,0,.35); }
.card .pct, .pdp .pct { background: #111; color: #fff; font-weight: 700; font-size: 11px; padding: 4px 7px; }
.card .pct { position: absolute; right: 10px; top: 10px; z-index: 2; }
.card.promo { box-shadow: inset 0 0 0 1.5px var(--promo); }
.precio-desc { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.precio-desc s { color: #9a9a9a; font-size: .85em; text-decoration-thickness: 1.5px; }
.precio-desc b { color: var(--promo); font-weight: 700; font-size: 1.12em; }
.promo-box { border: 1.5px solid var(--promo); background: #fff5f5; padding: 14px 16px; margin: 4px 0 24px; display: grid; gap: 8px; justify-items: start; }
.pdp .pprice.promo { display: flex; align-items: baseline; gap: 12px; margin: 0; flex-wrap: wrap; }
.pdp .pprice.promo b { color: var(--promo); font-size: 28px; font-weight: 700; }
.pdp .pprice.promo s { color: #9a9a9a; font-size: 17px; text-decoration-thickness: 1.5px; }
.ahorro { color: var(--promo); font-size: 12.5px; font-weight: 600; }
.line .precio-desc { flex-direction: row; gap: 8px; align-items: baseline; }
.line .end .precio-desc { flex-direction: column; gap: 0; }
.small-tag { font-size: 8.5px; padding: 3px 6px; margin: -4px 0 10px; }
.ahorro-row { color: var(--promo); font-weight: 600; }

/* ---------- Chips de filtro ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 42px 0 36px; }
.chip { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.chip::before { content: "×"; font-weight: 400; font-size: 12px; opacity: 0; transition: opacity .2s; }
.chip.on { color: var(--ink); }
.chip.on::before { opacity: 1; color: var(--muted); }
.chip:hover { color: var(--ink); }

/* ---------- Grid de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 72px; }
.card { background: var(--soft); display: flex; flex-direction: column; }
.card .img { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #e6e6e6; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card .img .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.card:hover .img .alt { opacity: 1; }
.card:hover .img img { transform: scale(1.02); }
.card .info { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px 20px; font-size: 12px; }
.card .cat { font-size: 9.5px; color: #b0b0b0; margin-top: 2px; }
.card .price { white-space: nowrap; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); }

/* ---------- Página Productos ---------- */
.page-title { padding: 48px 0 12px; }
.page-title h1 { font-size: 26px; font-weight: 500; }
.filters { position: relative; padding: 14px 0 18px; margin-bottom: 26px; border-bottom: 1px solid #eee; }
.filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ftoggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); padding: 9px 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.ftoggle:hover, .filters.open .ftoggle { background: var(--ink); color: #fff; }
.fbadge:empty { display: none; }
.fbadge { background: var(--accent); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; font-size: 10px; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { background: var(--soft); padding: 6px 10px; font-size: 11px; }
.fchip:hover { background: #e2e2e2; }
.fchip span { color: var(--muted); margin-left: 2px; }
.filterbar #count { margin-left: auto; }
.fshade { display: none; }
.fpanel { display: none; margin-top: 16px; padding: 22px 24px; background: #fafafa; border: 1px solid #eee; }
.filters.open .fpanel { display: block; animation: fdrop .2s ease; }
@keyframes fdrop { from { opacity: 0; transform: translateY(-6px); } }
.fpanel-head { display: none; }
.fgroups { display: flex; flex-wrap: wrap; gap: 22px 44px; }
.fpanel-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid #eee; }
.fpanel-foot .btn-solid { padding: 12px 22px; }
body.lock { overflow: hidden; }
.fgroup h4 { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.fgroup .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 1px solid var(--line); padding: 7px 13px; font-size: 11px; letter-spacing: .06em; transition: all .15s; }
.opt:hover { border-color: var(--ink); }
.opt.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.link-accent { color: var(--accent); font-size: 11px; }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; padding: 40px 0 72px; }
.pdp .gallery .main { background: var(--soft); aspect-ratio: 2 / 3; overflow: hidden; }
.pdp .gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 64px; height: 96px; background: var(--soft); padding: 0; border: 1px solid transparent; overflow: hidden; opacity: .6; }
.thumbs button.on { border-color: var(--ink); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.color-name { font-size: 13px; margin-bottom: 22px; }
.avail { text-transform: none; letter-spacing: 0; color: var(--ok); margin-left: 6px; }
.spec-block { margin-top: 28px; }
.spec-block .desc { margin-bottom: 0; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin-top: 24px; padding: 18px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; font-size: 13px; }
.specs dt { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.pdp .details { padding-top: 12px; }
.pdp .back { font-size: 11px; color: var(--muted); display: inline-block; margin-bottom: 28px; }
.pdp h1 { font-size: 28px; font-weight: 500; line-height: 1.2; margin-bottom: 6px; }
.pdp .pprice { font-size: 18px; margin-bottom: 24px; }
.pdp .desc { font-size: 13.5px; line-height: 1.75; color: #444; margin-bottom: 30px; }
.label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.sizes { display: flex; gap: 8px; margin-bottom: 26px; }
.size { min-width: 48px; padding: 0 12px; height: 44px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.size:hover:not(:disabled) { border-color: var(--ink); }
.size.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size:disabled { color: #ccc; text-decoration: line-through; cursor: not-allowed; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn-solid { flex: 1; }
.qty { display: flex; border: 1px solid var(--line); }
.qty button { width: 38px; font-size: 16px; }
.qty span { width: 32px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.notice { font-size: 12px; margin-top: 14px; min-height: 18px; }
.notice.ok { color: var(--ok); }
.notice.err { color: #b3261e; }
.perks { margin-top: 30px; border-top: 1px solid #eee; padding-top: 18px; font-size: 12px; color: #555; display: grid; gap: 6px; }
.section-h { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; text-align: center; padding: 10px 0 30px; }

/* ---------- Carrito ---------- */
.cart { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding: 20px 0 80px; align-items: start; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 18px 0; border-bottom: 1px solid #eee; align-items: center; }
.line .thumb { background: var(--soft); height: 112px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.line .thumb img { max-height: 100%; object-fit: contain; }
.line h3 { font-size: 14px; font-weight: 500; }
.line .sub { font-size: 11px; color: var(--muted); margin: 2px 0 10px; }
.line .qty { display: inline-flex; }
.line .qty button { width: 30px; height: 30px; }
.line .end { text-align: right; display: flex; flex-direction: column; gap: 18px; align-items: flex-end; font-size: 14px; }
.remove { font-size: 11px; color: var(--muted); text-decoration: underline; }
.summary { background: #f6f6f6; padding: 30px; position: sticky; top: 20px; }
.summary h2 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
.row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; }
.row.total { border-top: 1px solid #ddd; margin-top: 12px; padding-top: 16px; font-size: 16px; font-weight: 500; }
.cp-form { display: flex; gap: 8px; margin: 8px 0 12px; }
.cp-form input { flex: 1; min-width: 0; border: 1px solid var(--line); padding: 11px 12px; background: #fff; letter-spacing: .12em; }
.cp-form input:focus { outline: none; border-color: var(--ink); }
.cp-form button { border: 1px solid var(--ink); padding: 0 16px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.cp-form button:hover { background: var(--ink); color: #fff; }
.ship-box { margin: 6px 0 18px; font-size: 12.5px; }
.free-banner { background: #e8f3ec; color: var(--ok); padding: 12px 14px; font-size: 12.5px; line-height: 1.5; margin-bottom: 12px; }
.free-banner strong { display: block; font-size: 13px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); background: #fff; margin-bottom: 6px; cursor: pointer; font-size: 12.5px; }
.choice:has(input:checked) { border-color: var(--ink); }
.choice input { margin-top: 3px; accent-color: var(--ink); }
.choice .grow { flex: 1; }
.choice small { display: block; color: var(--muted); font-size: 11px; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #bbb; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.summary .btn-solid { width: 100%; margin-top: 18px; }
.cart-empty { text-align: center; padding: 80px 0 120px; }
.cart-empty p { margin-bottom: 24px; color: var(--muted); }

/* ---------- Temporalmente vendida ---------- */
.card .badge { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; z-index: 2; }
.card.sold .img img { opacity: .55; filter: grayscale(.4); }
.card.sold .price { color: var(--muted); text-decoration: line-through; }

/* ---------- Datos del cliente ---------- */
.datos { display: grid; gap: 10px; }
.datos .label { margin-bottom: 0; }
.field { display: grid; gap: 4px; font-size: 11px; color: #555; }
.field input, .field textarea { border: 1px solid var(--line); background: #fff; padding: 11px 12px; font: inherit; font-size: 14px; color: var(--ink); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.bad input, .field.bad textarea { border-color: #b3261e; background: #fff7f7; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Pedido recibido ---------- */
.exito { max-width: 480px; margin: 30px auto 90px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.exito .check { width: 56px; height: 56px; border-radius: 50%; background: #e8f3ec; color: var(--ok); font-size: 26px; display: flex; align-items: center; justify-content: center; }
.exito h2 { font-size: 24px; font-weight: 500; }
.exito p { color: #444; line-height: 1.7; }
.exito-total { display: flex; justify-content: space-between; width: 100%; background: #f6f6f6; padding: 16px 20px; font-size: 15px; }

/* ---------- Referencias ---------- */
.ref-intro { color: var(--muted); font-size: 13px; margin-top: 6px; }
.ref-grid { columns: 3; column-gap: 14px; padding: 18px 0 20px; }
.ref-item { display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; position: relative; overflow: hidden; background: var(--soft); text-align: left; cursor: zoom-in; }
.ref-item img { width: 100%; height: auto; transition: transform .5s ease; }
.ref-item:hover img { transform: scale(1.03); }
.ref-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 12px; display: grid; gap: 2px; }
.ref-cap b { font-weight: 500; }
.ref-cap span { opacity: .85; }
.ref-grid .empty { column-span: all; }
.ref-cta { text-align: center; padding: 20px 0 80px; display: grid; gap: 16px; justify-items: center; color: #444; font-size: 13px; }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(10,10,10,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(92vw, 900px); display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-height: 80vh; max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: #eee; font-size: 13px; text-align: center; line-height: 1.6; }
.lightbox figcaption .muted { color: #999; font-size: 11px; }
.lb-close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 34px; line-height: 1; padding: 6px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 44px; padding: 10px 16px; opacity: .8; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid #f2f2f2; }
.footer .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; font-size: 10px; font-weight: 500; }
.footer .links { color: var(--accent); letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 6px; }
.footer .links a:hover { text-decoration: underline; }
.footer .social { display: flex; justify-content: flex-end; gap: 16px; color: var(--accent); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 80px); background: var(--ink); color: #fff; padding: 12px 22px; font-size: 12px; letter-spacing: .04em; transition: transform .3s; z-index: 60; }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: #9cc0ff; margin-left: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pdp, .cart { grid-template-columns: 1fr; gap: 32px; }
  .summary { position: static; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header .left .back-link, .header .right .lang { display: none; }
  .logo { font-size: 14px; letter-spacing: .32em; }
  .logo img { height: 63px; }
  .header .right { gap: 10px; }
  .header .right .nav-link { white-space: nowrap; letter-spacing: .08em; }
  .search-form { height: 56px; }
  .search-form input { font-size: 16px; } /* 16px evita el zoom automático en iPhone */
  .ref-grid { columns: 2; column-gap: 8px; }
  .banner.banner-foto { height: auto; margin-top: 0; margin-left: -16px; margin-right: -16px; }
  .card .tag-promo { left: 6px; top: 6px; font-size: 8px; padding: 4px 6px; letter-spacing: .08em; max-width: calc(100% - 52px); }
  .card .pct { right: 6px; top: 6px; font-size: 10px; padding: 3px 5px; }
  .card .info .price { margin-top: 4px; }
  .card .precio-desc { flex-direction: row; gap: 8px; align-items: baseline; }
  .ref-item { margin-bottom: 8px; }
  .ref-cap { font-size: 11px; padding: 24px 10px 8px; }
  .lb-nav { display: none; }
  /* Filtros como hoja inferior en celular */
  .fshade { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .filters.open .fshade { opacity: 1; pointer-events: auto; }
  .fpanel { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; margin: 0; max-height: 82vh; background: #fff; border: 0; padding: 0 16px; transform: translateY(100%); transition: transform .3s ease; }
  .filters.open .fpanel { display: flex; transform: none; animation: none; }
  .fpanel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #eee; font-size: 14px; }
  .fpanel-head button { font-size: 26px; line-height: 1; }
  .fgroups { flex-direction: column; gap: 20px; overflow-y: auto; padding: 18px 0; }
  .fpanel-foot { margin-top: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
  .fpanel-foot .btn-solid { flex: 0 1 auto; }
  .opt { padding: 10px 14px; }
  .hero, .hero .wrap { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 110px; }
  .hero-img { height: 240px; order: -1; }
  .hero-foot { bottom: 32px; left: 16px; right: 16px; }
  .banner { height: 190px; grid-template-columns: 1.15fr 1fr; margin-top: 12px; }
  .banner-copy { padding: 0 18px; gap: 10px; }
  .banner h1 { font-size: 20px; margin-bottom: 2px; }
  .banner .btn-outline { padding: 10px 14px; font-size: 10px; letter-spacing: .1em; }
  .chips { padding: 26px 0 22px; }
  .card .info { flex-direction: column; gap: 2px; padding: 12px 12px 14px; }
  .filters .meta { margin-left: 0; }
  .line { grid-template-columns: 72px 1fr; }
  .line .end { grid-column: 2; flex-direction: row; justify-content: space-between; width: 100%; }
  .footer .bar { grid-template-columns: 1fr; height: auto; gap: 14px; padding: 24px 0; justify-items: center; }
  .footer .social { justify-content: center; }
}
