/* =====================================================================
   SANTOR XP · Tienda pública
   ===================================================================== */
:root {
  --bg: #05070D;
  --surface: #0B1120;
  --surface-2: #101931;
  --line: rgba(160, 190, 255, .10);
  --line-2: rgba(160, 190, 255, .18);
  --text: #EEF3FA;
  --muted: #8C99B2;
  --primary: #0A94EE;
  --accent: #35C8FF;
  --danger: #FF5468;
  --ok: #2BD58A;
  --wa: #25D366;
  --r: 16px;
  --r-sm: 10px;
  --wrap: 1240px;
  --gut: 16px;
  --head-h: 64px;
  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-brand: 'Michroma', 'Sora', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gut: 28px; --head-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
.ic { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.96); } }

/* ---------- Botones ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 12px;
  font: 600 14.5px/1 var(--f-body); letter-spacing: .005em; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 22px -8px var(--primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 86%, #fff); }
.btn-wa { background: var(--wa); color: #04210f; }
.btn-wa:hover { background: #3be07b; }
.btn-ghost { background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-light { background: #fff; color: #050a14; }
.btn-light:hover { background: #dfe9f7; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center;
  color: var(--text); transition: background .2s; position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.07); }

/* ---------- Barra de anuncio ---------- */
.announce {
  background: linear-gradient(90deg, #06213f, color-mix(in srgb, var(--primary) 70%, #06213f), #06213f);
  color: #dff2ff; font-size: 12.5px; font-weight: 500; text-align: center;
  padding: 8px var(--gut); letter-spacing: .01em;
}
.announce a { display: block; }

/* ---------- Encabezado ---------- */
.head {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.head .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2), 0 0 18px -4px var(--primary); }
.brand-name { font: 400 13.5px/1 var(--f-brand); letter-spacing: .14em; white-space: nowrap; }
.brand-name b { color: var(--accent); font-weight: 400; }
.nav { display: none; gap: 2px; margin-left: 18px; }
.nav a { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(255,255,255,.05); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cart-count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--primary); color: #fff; font: 700 11px/18px var(--f-body); text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* Menú móvil */
.drawer-back { position: fixed; inset: 0; z-index: 80; background: rgba(2,4,9,.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 81; top: 0; bottom: 0; width: min(420px, 92vw);
  background: var(--surface); border-color: var(--line-2); display: flex; flex-direction: column;
  transition: transform .32s var(--ease);
}
.drawer-left { left: 0; border-right: 1px solid var(--line-2); transform: translateX(-102%); }
.drawer-right { right: 0; border-left: 1px solid var(--line-2); transform: translateX(102%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; overscroll-behavior: contain; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.mnav a { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px; border-bottom: 1px solid var(--line); font: 600 17px var(--f-display); }
.mnav a .ic { color: var(--muted); }
.msocial { display: flex; gap: 8px; margin-top: 20px; }

/* Búsqueda */
.search-pop { position: fixed; inset: 0; z-index: 90; background: rgba(3,5,10,.82); backdrop-filter: blur(10px); display: none; padding: 12vh var(--gut) 0; }
.search-pop.open { display: block; }
.search-box { max-width: 680px; margin: 0 auto; }
.search-field { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 0 8px 0 16px; }
.search-field input { flex: 1; height: 58px; background: none; border: 0; outline: 0; font-size: 17px; min-width: 0; }
.search-res { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-height: 60vh; overflow-y: auto; }
.search-res a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.search-res a:hover, .search-res a:focus { background: var(--surface-2); }
.search-res .thumb { width: 46px; height: 46px; border-radius: 10px; flex: none; overflow: hidden; }
.search-res small { color: var(--muted); }
.search-res .empty { padding: 18px; color: var(--muted); }

/* ---------- Secciones ---------- */
main { min-height: 60vh; }
.sec { padding: 56px 0; }
.sec + .sec { padding-top: 8px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.kicker { display: inline-block; font: 400 10.5px/1.4 var(--f-brand); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.sec-title { font-size: clamp(24px, 4.6vw, 36px); font-weight: 700; }
.sec-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; padding: 8px 0; }
.sec-link:hover { color: var(--text); }
@media (min-width: 768px) { .sec { padding: 84px 0; } .sec + .sec { padding-top: 16px; } }

/* ---------- Portada (hero) ---------- */
.hero { position: relative; overflow: hidden; background: #02040a; isolation: isolate; }
.hero-track { position: relative; height: clamp(560px, 86svh, 760px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .9s var(--ease); z-index: 1; }
.slide-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(42px) saturate(1.5) brightness(.55); transform: scale(1.1); }
.slide-media { position: absolute; inset: 0; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.on .slide-media img { transform: scale(1); }
.slide-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(5,7,13,.55) 0%, rgba(5,7,13,0) 22%, rgba(5,7,13,0) 38%, rgba(5,7,13,.86) 70%, var(--bg) 100%); }
.slide-copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 92px; z-index: 2; }
.slide-copy .kicker { margin-bottom: 12px; }
.slide-copy h1, .slide-copy h2 { font-size: clamp(32px, 8.4vw, 64px); font-weight: 800; max-width: 13ch; text-wrap: balance; }
.slide-copy p { margin-top: 14px; color: #c9d4e6; font-size: 15.5px; max-width: 44ch; }
.slide-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 520px) { .slide-ctas .btn-lg { --h: 50px; padding: 0 18px; font-size: 14.5px; } .slide-copy p { font-size: 14.5px; } }
.slide.on .slide-copy > .wrap > * { animation: rise .8s var(--ease) both; }
.slide.on .slide-copy > .wrap > *:nth-child(2) { animation-delay: .08s; }
.slide.on .slide-copy > .wrap > *:nth-child(3) { animation-delay: .16s; }
.slide.on .slide-copy > .wrap > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.hero-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; }
.hero-ui .wrap { display: flex; align-items: center; gap: 14px; }
.dots { display: flex; gap: 8px; flex: 1; max-width: 360px; }
.dot { flex: 1; height: 28px; display: flex; align-items: center; }
.dot i { display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; }
.dot i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.dot.done i::after { transform: scaleX(1); }
.dot.on i::after { animation: fill var(--dur, 5s) linear forwards; }
.hero.paused .dot.on i::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero-arrows { display: none; gap: 8px; margin-left: auto; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); transition: background .2s; }
.hero-arrows button:hover { background: rgba(255,255,255,.18); }

@media (min-width: 900px) {
  .hero-track { height: clamp(560px, 78vh, 700px); }
  .slide-media { inset: 40px var(--gut) 40px auto; left: auto; right: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); width: min(40vw, 480px); border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08), 0 0 80px -20px var(--primary); }
  .slide-shade { background: linear-gradient(90deg, rgba(5,7,13,.7) 0%, rgba(5,7,13,.2) 50%, rgba(5,7,13,0) 62%); }
  .hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, transparent, var(--bg)); z-index: 2; pointer-events: none; }
  .slide-copy { top: 0; display: flex; align-items: center; padding-bottom: 40px; }
  .slide-copy .wrap > * { max-width: 54%; }
  .slide-copy h1, .slide-copy h2 { max-width: 12ch; }
  .slide-copy p { font-size: 17px; }
  .hero-arrows { display: flex; }
  .hero-ui { bottom: 40px; }
}

/* ---------- Categorías ---------- */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  scroll-snap-align: start; position: relative; min-height: 132px; border-radius: var(--r); padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background: linear-gradient(150deg, var(--c2) -40%, var(--c1) 45%, #070b16 100%);
  border: 1px solid var(--line-2); transition: transform .25s var(--ease), border-color .25s;
}
.cat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c2) 60%, transparent); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cat-glyph { position: absolute; right: -10px; top: -14px; opacity: .14; }
.cat b { position: relative; font: 700 16px/1.2 var(--f-display); }
.cat small { position: relative; color: rgba(255,255,255,.65); font-size: 12.5px; margin-top: 3px; }
@media (min-width: 768px) {
  .cats { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .cat { min-height: 150px; }
}

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.9); }
.card.off { opacity: .45; }
.card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; z-index: 2; }
.badge { font: 700 10.5px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 6px 8px; border-radius: 7px; background: rgba(5,7,13,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.badge-promocion, .badge-off { background: #ff3d5a; border-color: transparent; color: #fff; }
.badge-nuevo { background: var(--primary); border-color: transparent; color: #fff; }
.badge-out { background: #2a3245; color: #c5cede; }
.card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card-name { font: 600 14.5px/1.3 var(--f-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.price { font: 700 17px/1 var(--f-display); letter-spacing: -.01em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 12.5px; }
.card-add { margin-top: 10px; }
.card .btn { width: 100%; --h: 40px; font-size: 13.5px; }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card .card-add, .card [data-edit-price] { position: relative; z-index: 2; }
@media (min-width: 768px) { .card-body { padding: 14px 16px 16px; } .card-name { font-size: 15.5px; } .price { font-size: 19px; } }

/* Tarjeta sin foto: arte generado */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--c2) 0%, transparent 55%), linear-gradient(160deg, var(--c1), #060a14 85%); }
.ph::before { content: ''; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(200deg, #000, transparent 70%); }
.ph-plat { position: relative; font: 400 8.5px/1 var(--f-brand); letter-spacing: .2em; opacity: .75; text-transform: uppercase; }
.ph-name { position: relative; font: 800 clamp(16px, 4vw, 22px)/1.05 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; max-width: 90%; text-shadow: 0 2px 20px rgba(0,0,0,.4); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ph-glyph { position: absolute; right: -18%; bottom: -14%; width: 70%; opacity: .12; }

/* ---------- Beneficios ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.benefit { padding: 18px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.benefit .ic-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--accent); margin-bottom: 12px; }
.benefit h3 { font-size: 15px; font-weight: 600; }
.benefit p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: 16px; } .benefit { padding: 24px; } }

/* ---------- Banner ---------- */
.banner { position: relative; border-radius: 22px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; border: 1px solid var(--line-2); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,13,.1), rgba(5,7,13,.92) 78%); }
.banner-copy { position: relative; z-index: 1; padding: 24px; max-width: 560px; }
.banner-copy h2 { font-size: clamp(26px, 5vw, 42px); font-weight: 800; text-wrap: balance; }
.banner-copy p { color: #c9d4e6; margin-top: 10px; }
.banner-copy .btn { margin-top: 20px; }
@media (min-width: 900px) {
  .banner { min-height: 420px; align-items: center; }
  .banner::after { background: linear-gradient(90deg, rgba(5,7,13,.95) 0%, rgba(5,7,13,.65) 45%, rgba(5,7,13,0) 80%); }
  .banner-copy { padding: 56px; }
}

/* ---------- Texto / split ---------- */
.prose { max-width: 760px; }
.prose .body { color: #c7d1e2; font-size: 16px; margin-top: 16px; white-space: pre-line; }
.split { display: grid; gap: 24px; align-items: center; }
.split-media { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split .body { color: #c7d1e2; margin-top: 14px; white-space: pre-line; }
.split .btn { margin-top: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.rev .split-media { order: 2; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 18px; display: flex; justify-content: space-between; gap: 12px; font: 600 15.5px/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--accent); }
.faq .a { padding: 0 18px 18px; color: var(--muted); white-space: pre-line; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.contact-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.contact-card .ic-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.contact-card b { display: block; font: 600 15.5px var(--f-display); }
.contact-card small { color: var(--muted); }
.contact-card .ic-arrow { margin-left: auto; color: var(--muted); }
.ic-wa { background: rgba(37,211,102,.14); color: var(--wa); }
.ic-ig { background: linear-gradient(135deg, rgba(254,218,117,.18), rgba(214,41,118,.22), rgba(79,91,213,.22)); color: #ff6fae; }
.ic-fb { background: rgba(24,119,242,.16); color: #4b97ff; }
.ic-tt { background: rgba(255,255,255,.08); color: #fff; }
.ic-yt { background: rgba(255,0,0,.14); color: #ff4d4d; }
.contact-intro p { color: var(--muted); margin-top: 12px; max-width: 46ch; }
@media (min-width: 900px) { .contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; } .contact { grid-template-columns: 1fr 1fr; } }

/* ---------- Catálogo ---------- */
.page-head { padding-top: 34px; padding-bottom: 10px; }
.page-head h1 { font-size: clamp(28px, 6vw, 46px); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 8px; }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.toolbar { position: sticky; top: var(--head-h); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 12px 0; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.toolbar-row { display: flex; gap: 10px; align-items: center; }
.field-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); min-width: 0; }
.field-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 100%; }
.select { height: 44px; padding: 0 34px 0 12px; border-radius: 12px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C99B2' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line-2); appearance: none; -webkit-appearance: none; max-width: 46%; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; transition: all .2s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.count-line { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .ic { margin: 0 auto 14px; opacity: .6; }
.empty-state h3 { color: var(--text); font-size: 19px; margin-bottom: 6px; }
.empty-state .btn { margin-top: 18px; }

/* ---------- Producto ---------- */
.pdp { display: grid; gap: 22px; padding: 18px 0 40px; }
.gallery { position: relative; }
.gal-main { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.gal-strip::-webkit-scrollbar { display: none; }
.gal-strip > * { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; flex: none; opacity: .6; transition: all .2s; }
.thumbs button.on { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(26px, 5.4vw, 40px); font-weight: 800; margin: 6px 0 14px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price .price { font-size: 30px; }
.pdp-price .price-old { font-size: 16px; }
.save { font-size: 12.5px; font-weight: 700; color: #ff7b8e; background: rgba(255,61,90,.12); padding: 5px 9px; border-radius: 8px; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; margin-top: 12px; color: var(--ok); font-weight: 500; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.stock.out { color: var(--danger); }
.stock.low { color: #ffb648; }
.opt-group { margin-top: 22px; }
.opt-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; }
.opt-label b { color: var(--text); font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 42px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; transition: all .15s; text-align: left; }
.opt small { display: block; color: var(--muted); font-size: 11.5px; }
.opt:hover { border-color: var(--muted); }
.opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--primary) 16%, var(--surface)); box-shadow: 0 0 0 1px var(--accent) inset; }
.buy-row { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; height: 54px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty span, .qty input { width: 36px; text-align: center; font-weight: 700; background: none; border: 0; outline: 0; }
.buy-row .btn-primary { flex: 1; min-width: 180px; }
.pdp-wa { margin-top: 10px; }
.pdp-desc { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.pdp-desc h2 { font-size: 16px; margin-bottom: 10px; }
.pdp-desc .body { color: #c7d1e2; white-space: pre-line; }
.trust { display: grid; gap: 10px; margin-top: 22px; }
.trust div { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13.5px; }
.trust .ic { color: var(--accent); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.05fr .95fr; gap: 56px; padding-top: 28px; }
  .gallery { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; }
}

/* ---------- Carrito ---------- */
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; position: relative; background: var(--surface-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { padding: 6px; }
.cart-thumb .ph-name { font-size: 9px; }
.cart-thumb .ph-plat { display: none; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-name { font: 600 14px/1.3 var(--f-display); }
.ci-opts { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.ci-bottom .qty { height: 36px; border-radius: 10px; }
.ci-bottom .qty button { width: 34px; }
.ci-bottom .qty span { width: 26px; font-size: 14px; }
.ci-price { font: 700 15px var(--f-display); }
.ci-remove { color: var(--muted); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; flex: none; }
.ci-remove:hover { color: var(--danger); background: rgba(255,84,104,.1); }
.ci-warn { color: #ffb648; font-size: 12px; margin-top: 4px; }
.totals { display: grid; gap: 8px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .muted { color: var(--muted); }
.totals .grand { font: 700 19px var(--f-display); padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty .ic { margin: 0 auto 12px; opacity: .5; }

/* Barra inferior móvil del carrito */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 8px 0 18px; border-radius: 16px; background: var(--primary); color: #fff; box-shadow: 0 18px 40px -12px rgba(10,148,238,.7); transform: translateY(140%); transition: transform .35s var(--ease); }
.cart-bar.show { transform: none; }
.cart-bar b { font: 700 16px var(--f-display); }
.cart-bar small { opacity: .85; font-size: 12px; display: block; }
.cart-bar .btn { margin-left: auto; --h: 42px; background: #fff; color: #04203b; }
@media (min-width: 900px) { .cart-bar { display: none; } }

/* Botón flotante WhatsApp */
.wa-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 41; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .25s var(--ease), bottom .35s var(--ease); }
.wa-fab:hover { transform: scale(1.06); }
body.has-cartbar .wa-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-cartbar .wa-fab { bottom: 24px; } .wa-fab { right: 24px; bottom: 24px; } }
body.hide-fab .wa-fab, body.hide-fab .cart-bar { display: none; }

/* ---------- Checkout ---------- */
.checkout { display: grid; gap: 22px; padding: 10px 0 60px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.panel h2 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 24%, transparent); color: var(--accent); font: 700 13px var(--f-body); }
.panel + .panel { margin-top: 14px; }
.fields { display: grid; gap: 14px; }
.f label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #c7d1e2; }
.f label em { color: var(--muted); font-style: normal; font-weight: 400; }
.f input, .f textarea, .f select { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); outline: 0; transition: border-color .2s, box-shadow .2s; font-size: 16px; }
.f textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.f.err input, .f.err textarea { border-color: var(--danger); }
.f .msg { color: var(--danger); font-size: 12.5px; margin-top: 6px; display: none; }
.f.err .msg { display: block; }
.methods { display: grid; gap: 10px; }
.method { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; transition: all .15s; }
.method input { accent-color: var(--primary); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.method b { display: block; font-size: 14.5px; }
.method small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.method .cost { margin-left: auto; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.method:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--primary) 10%, var(--bg)); }
.sum-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sum-item .cart-thumb { width: 52px; height: 52px; border-radius: 10px; }
.sum-item .nm { flex: 1; min-width: 0; }
.sum-item .nm small { display: block; color: var(--muted); font-size: 12px; }
.sum-item .pr { font-weight: 700; white-space: nowrap; }
.note { display: flex; gap: 10px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 14px; }
.note .ic { color: var(--accent); margin-top: 1px; }
.form-error { background: rgba(255,84,104,.1); border: 1px solid rgba(255,84,104,.35); color: #ffc2ca; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-top: 14px; display: none; }
.form-error.show { display: block; }
.done { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 0 80px; }
.done .ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; background: rgba(37,211,102,.12); color: var(--wa); box-shadow: 0 0 0 10px rgba(37,211,102,.05); }
.done h1 { font-size: clamp(24px, 5vw, 34px); }
.done p { color: var(--muted); margin-top: 12px; }
.done .code { display: inline-block; font: 400 14px var(--f-brand); letter-spacing: .12em; color: var(--accent); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 16px; margin-top: 18px; }
.done .steps { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 22px 0; display: grid; gap: 10px; font-size: 14px; color: #c7d1e2; }
.done .steps div { display: flex; gap: 10px; }
.done .steps b { color: var(--accent); }
.done-actions { display: grid; gap: 10px; }
@media (min-width: 900px) {
  .checkout { grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
  .checkout aside { position: sticky; top: calc(var(--head-h) + 20px); }
  .panel { padding: 26px; }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .done-actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- Pie de página ---------- */
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(10,148,238,.04)); padding: 48px 0 calc(110px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 30px; }
.foot-brand img { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 40ch; }
.foot h4 { font: 400 10.5px var(--f-brand); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.foot ul a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: all .2s; }
.socials a:hover { border-color: var(--line-2); color: var(--accent); }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.foot-legal a:hover { color: var(--text); }
@media (min-width: 900px) { .foot { padding-bottom: 48px; } .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Toasts y diálogos (compartidos) ---------- */
.toasts { position: fixed; z-index: 200; left: 50%; top: 16px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: #172038; border: 1px solid var(--line-2); color: var(--text); padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 18px 40px -12px rgba(0,0,0,.8); transform: translateY(-12px); opacity: 0; transition: all .3s var(--ease); }
.toast.in { transform: none; opacity: 1; }
.toast-ok { border-left: 3px solid var(--ok); }
.toast-err { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--accent); }
.dlg-back { position: fixed; inset: 0; z-index: 300; background: rgba(2,4,9,.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.dlg { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; animation: pop .25s var(--ease); }
.dlg h3 { font-size: 18px; }
.dlg p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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