/* =========================================================================
   Friky Store — tienda pública
   Diseño primero para celular. Paleta: uva, chicle, lavanda, crema, tinta.
   ========================================================================= */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/bricolage-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/bricolage-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/jakarta-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/jakarta-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/jakarta-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF; }

:root {
  --ink: #24152F;
  --ink-2: #47375A;
  --muted: #6B5B7B;
  --line: #EDE5F5;
  --line-strong: #D9CCE8;
  --uva: #6D28D9;
  --uva-700: #5B21B6;
  --uva-900: #2E1065;
  --uva-50: #F6F1FF;
  --chicle: #EC4899;
  --chicle-700: #BE185D;
  --chicle-50: #FDEFF7;
  --lavanda: #EDE9FE;
  --rosa: #FCE7F3;
  --crema: #FFF8FC;
  --white: #FFFFFF;
  --success: #0E7A4E;
  --success-bg: #E5F6EE;
  --warning: #8A5300;
  --warning-bg: #FFF3DC;
  --danger: #B42343;
  --danger-bg: #FDECF0;
  --info: #2D4EC9;
  --info-bg: #ECF0FF;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --pill: 999px;
  --ring: 0 0 0 3px rgba(109, 40, 217, .22);
  --shadow-1: 0 1px 2px rgba(36, 21, 47, .05), 0 6px 18px rgba(36, 21, 47, .06);
  --shadow-2: 0 2px 6px rgba(36, 21, 47, .08), 0 18px 48px rgba(36, 21, 47, .14);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --gutter: 16px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 68px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--crema); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--uva); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--rosa); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 15px; height: 15px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--stack, 16px); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ---------------------------------------------------------------- Botones */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--pill);
  border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 15px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { --btn-bg: var(--uva); --btn-fg: #fff; --btn-bd: var(--uva); }
.btn-primary:hover { --btn-bg: var(--uva-700); --btn-bd: var(--uva-700); }
.btn-ink { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-ink:hover { --btn-bg: #3a2549; }
.btn-pink { --btn-bg: var(--chicle); --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--uva-50); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn .icon { width: 20px; height: 20px; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--uva); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(109, 40, 217, .35); }
.link:hover { text-decoration-color: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; color: var(--ink); font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); position: relative; text-decoration: none;
  transition: background-color .15s var(--ease);
}
.icon-btn:hover { background: var(--uva-50); }

/* Píldora tipo sticker (categorías y filtros) */
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: var(--pill); background: var(--white);
  font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.pill:hover { background: var(--lavanda); }
.pill.is-active, .pill[aria-pressed="true"], .pill[aria-current="page"] { background: var(--ink); color: var(--crema); }
.pill img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; margin-left: -8px; background: var(--lavanda); }

/* Insignias tipo sticker */
.sticker {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 9px; border-radius: var(--pill);
  border: 1.5px solid var(--ink); background: var(--white); color: var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: .01em; line-height: 1.4; transform: rotate(-3deg);
}
.sticker .icon { width: 11px; height: 11px; }
.sticker-new { background: var(--chicle); }
.sticker-sale { background: var(--uva); color: #fff; border-color: var(--uva-900); }
.sticker-out { background: var(--white); color: var(--muted); border-color: var(--line-strong); transform: none; }
.sticker-flat { transform: none; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font-size: 13px; font-weight: 700; line-height: 1.3; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #F1EDF5; color: var(--muted); }

/* ---------------------------------------------------------------- Formularios */
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.optional { font-weight: 500; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--white);
  font-size: 16px; line-height: 1.35; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324152F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input:hover, .select:hover, .textarea:hover { border-color: #C3B2D8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--uva); box-shadow: var(--ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; margin-top: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--uva); flex: none; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; align-items: flex-start; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--info-bg); color: #1F3A9E; }
.alert-success { background: var(--success-bg); color: #0A5C3A; }
.alert-warning { background: var(--warning-bg); color: #6E4200; }
.alert-danger { background: var(--danger-bg); color: #8F1733; }
.alert-sim { background: #FFF8D6; color: #5C4600; border: 1.5px dashed #C9A100; }

/* ---------------------------------------------------------------- Cabecera */
.announce { background: var(--uva-900); color: #F3EDFF; font-size: 13px; font-weight: 600; text-align: center; padding: 8px var(--gutter); }
.announce a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 248, 252, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.header-row .logo { margin-right: auto; }
.header-search { display: none; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--pill);
  background: var(--chicle); color: var(--ink); border: 1.5px solid var(--crema);
  font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.cart-count[data-count="0"] { display: none; }
.cart-bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }

.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--uva); flex: none; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.04em; line-height: 1; }
.logo-i { position: relative; display: inline-block; }
.logo-spark { position: absolute; left: 50%; top: -0.32em; width: .44em; height: .44em; transform: translateX(-50%); color: var(--chicle); }
.logo-store { font-family: var(--font-body); font-weight: 800; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.logo img { height: 46px; width: auto; }
@media (min-width: 768px) { .logo img { height: 54px; } }

.main-nav { display: none; }
.nav-list { list-style: none; display: flex; gap: 4px; }
.nav-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--pill); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav-list a:hover { background: var(--uva-50); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); background: var(--lavanda); }

.searchbox { position: relative; width: 100%; }
.searchbox .input { padding-left: 46px; border-radius: var(--pill); background: var(--white); min-height: 46px; }
.searchbox > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suggest {
  position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-2); border: 1px solid var(--line); padding: 6px; list-style: none; max-height: 70vh; overflow: auto;
}
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--uva-50); }
.suggest img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--lavanda); }
.suggest .s-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.suggest .s-brand { font-size: 12px; color: var(--muted); }
.suggest .s-price { font-weight: 700; font-size: 14px; }
.suggest .s-all { display: block; text-align: center; padding: 10px; font-weight: 700; color: var(--uva); }
.suggest .s-empty { padding: 14px; color: var(--muted); font-size: 14px; }

.mobile-search { padding: 0 var(--gutter) 12px; }

@media (min-width: 1024px) {
  .menu-toggle, .mobile-search, .search-toggle { display: none !important; }
  .header-row { gap: 24px; }
  .header-row .logo { margin-right: 0; }
  .header-search { display: block; flex: 1; max-width: 560px; margin-right: auto; }
  .main-nav { display: block; border-top: 1px solid var(--line); }
  .main-nav .nav-list { height: 50px; align-items: center; }
  .logo-word { font-size: 32px; }
}

/* Menú lateral (celular) */
.drawer { position: fixed; inset: 0; z-index: 80; display: grid; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(36, 21, 47, .45); opacity: 0; transition: opacity .22s var(--ease); border: 0; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: relative; background: var(--crema); width: min(420px, 100%); height: 100%; overflow: auto;
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .26s var(--ease);
  box-shadow: var(--shadow-2);
}
.drawer-right .drawer-panel { margin-left: auto; transform: translateX(100%); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px var(--gutter); border-bottom: 1px solid var(--line); min-height: var(--header-h); position: sticky; top: 0; background: var(--crema); z-index: 2; }
.drawer-head h2 { font-size: 22px; }
.drawer-body { padding: var(--gutter); flex: 1; }
.drawer-foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); position: sticky; bottom: 0; }
.menu-links { list-style: none; display: grid; gap: 4px; }
.menu-links a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 10px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 17px; }
.menu-links a:hover { background: var(--white); }
.menu-links img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--lavanda); }
.menu-links .icon { margin-left: auto; color: var(--muted); }
.menu-secondary { list-style: none; display: grid; gap: 2px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.menu-secondary a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 10px; text-decoration: none; font-weight: 600; color: var(--ink-2); border-radius: 10px; }
.menu-secondary a:hover { background: var(--white); }

/* ---------------------------------------------------------------- Portada */
.hero { padding-top: 16px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--lavanda);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 22px 24px;
}
.hero-eyebrow { justify-self: start; }
.hero h1 { font-size: clamp(34px, 8.6vw, 60px); line-height: 1.02; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--uva); }
.hero-sub { font-size: 16px; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-search { max-width: 520px; }
.hero-visual { display: none; }
.hero-spark { position: absolute; color: var(--chicle); pointer-events: none; }
.hero-spark.s1 { width: 26px; height: 26px; right: 22px; top: 22px; }
.hero-spark.s2 { width: 14px; height: 14px; right: 58px; top: 54px; color: var(--uva); }
@media (prefers-reduced-motion: no-preference) {
  .hero-spark { animation: twinkle 3.2s ease-in-out infinite; }
  .hero-spark.s2 { animation-delay: 1.1s; }
  .hero-visual .tile { animation: float 7s ease-in-out infinite; }
  .hero-visual .tile:nth-child(2) { animation-delay: -2.3s; }
  .hero-visual .tile:nth-child(3) { animation-delay: -4.6s; }
}
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(20deg); opacity: .65; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (min-width: 900px) {
  .hero { padding-top: 24px; }
  .hero-card { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 44px 48px; min-height: 420px; gap: 32px; }
  .hero-visual { display: block; position: relative; height: 340px; }
  .hero-visual .tile { position: absolute; border-radius: 26px; overflow: hidden; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
  .hero-visual .tile img { width: 100%; height: 100%; object-fit: cover; }
  .hero-visual .tile:nth-child(1) { width: 52%; height: 78%; left: 4%; top: 6%; rotate: -4deg; background: var(--rosa); }
  .hero-visual .tile:nth-child(2) { width: 40%; height: 54%; right: 2%; top: 0; rotate: 5deg; background: var(--crema); }
  .hero-visual .tile:nth-child(3) { width: 40%; height: 46%; right: 9%; bottom: 0; rotate: -2deg; background: #F3EEFF; }
  .hero-visual .tile-label { position: absolute; left: 10px; bottom: 10px; }
  .hero-spark.s1 { right: auto; left: 47%; top: 30px; width: 34px; height: 34px; }
  .hero-spark.s2 { right: auto; left: 52%; top: 76px; }
}

/* ---------------------------------------------------------------- Secciones */
.section { padding-block: 36px; }
.section-tight { padding-block: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(24px, 4.6vw, 34px); }
.section-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.section-mark { display: inline-flex; align-items: center; gap: 8px; }
.section-mark .icon { width: 20px; height: 20px; color: var(--chicle); }
@media (min-width: 900px) { .section { padding-block: 52px; } }

/* Categorías */
.cat-scroller { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 10px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-scroller > * { scroll-snap-align: start; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; background: var(--rosa); aspect-ratio: 1 / 1.05; isolation: isolate; }
.cat-tile:nth-child(4n+2) { background: var(--lavanda); }
.cat-tile:nth-child(4n+3) { background: #FFF0D9; }
.cat-tile:nth-child(4n+4) { background: #E6F5EF; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); z-index: -1; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile-label {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--pill); padding: 8px 8px 8px 14px;
}
.cat-tile-label strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; line-height: 1.1; }
.cat-tile-label .go { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: transform .18s var(--ease); }
.cat-tile-label .go .icon { width: 16px; height: 16px; }
.cat-tile:hover .go { transform: rotate(-45deg); }
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .cat-tile-label { left: 14px; right: 14px; bottom: 14px; }
  .cat-tile-label strong { font-size: 20px; }
}

/* ---------------------------------------------------------------- Tarjetas de producto */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; list-style: none; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 2px var(--gutter) 12px; margin-inline: calc(var(--gutter) * -1); list-style: none; scrollbar-width: thin; }
.product-row > * { scroll-snap-align: start; }
@media (min-width: 700px) { .product-row { grid-auto-columns: minmax(200px, 31%); gap: 18px; } }
@media (min-width: 1100px) { .product-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--lavanda); aspect-ratio: 4 / 5; }
.card:nth-child(3n+2) .card-media { background: var(--rosa); }
.card:nth-child(3n+3) .card-media { background: #F3EEFF; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.card-media .img-alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media .img-alt { opacity: 1; }
  .card:hover .card-media img:first-child { transform: scale(1.03); }
}
.card-stickers { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.card-body { padding-top: 12px; display: grid; gap: 4px; }
.card-brand { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-title { font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-lg); }
.card-title:focus-visible { outline: none; }
.card:has(.card-title:focus-visible) .card-media { outline: 3px solid var(--uva); outline-offset: 2px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price-now { font-weight: 800; font-size: 16px; }
.price-from { font-size: 12px; font-weight: 600; color: var(--muted); }
.price-was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-sale .price-now { color: var(--chicle-700); }
.swatches { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.swatch-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(36, 21, 47, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.swatches .more { font-size: 12px; font-weight: 700; color: var(--muted); }
.card-add { position: absolute; z-index: 3; right: 10px; top: calc((100% - 0px)); }
.card-quick {
  position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--ink); color: var(--ink);
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.card-quick:hover { background: var(--chicle); transform: scale(1.06); }
.card-quick.is-done { background: var(--ink); color: #fff; }
.card.is-out .card-media img { filter: grayscale(.35); opacity: .78; }

/* ---------------------------------------------------------------- Bandas (colecciones / promociones) */
.band { border-radius: var(--radius-xl); padding: 26px 22px; display: grid; gap: 18px; overflow: hidden; position: relative; }
.band-uva { background: var(--uva); color: #fff; }
.band-chicle { background: var(--chicle); color: var(--ink); }
.band-lavanda { background: var(--lavanda); color: var(--ink); }
.band-crema { background: var(--white); color: var(--ink); border: 1.5px solid var(--line-strong); }
.band h2 { font-size: clamp(26px, 5vw, 40px); max-width: 18ch; }
.band p { max-width: 50ch; opacity: .92; }
.band-uva .btn { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.band-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: rgba(255, 255, 255, .15); }
.band-img img { width: 100%; height: 100%; object-fit: cover; }
.band .band-spark { position: absolute; right: 20px; top: 18px; width: 30px; height: 30px; color: var(--chicle); }
.band-chicle .band-spark { color: var(--white); }
@media (min-width: 900px) {
  .band { grid-template-columns: 1fr 1fr; align-items: center; padding: 40px 48px; gap: 36px; }
  .band.no-img { grid-template-columns: 1fr auto; }
}

/* Información de compra */
.info-strip { display: grid; gap: 12px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.info-item .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--lavanda); display: grid; place-items: center; color: var(--uva); flex: none; }
.info-item h3 { font-family: var(--font-body); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.info-item p { font-size: 14px; color: var(--muted); margin-top: 3px; }
@media (min-width: 900px) { .info-strip { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------------------------------------------------------------- Pie */
.site-footer { background: var(--uva-900); color: #E9E1FA; margin-top: 56px; }
.footer-grid { display: grid; gap: 28px; padding-block: 44px 28px; }
.site-footer .logo { color: #fff; }
.site-footer .logo-store { color: #E9E1FA; }
.footer-about { max-width: 34ch; font-size: 14px; color: #CFC3EA; margin-top: 12px; }
.footer-col h3 { font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { color: #E9E1FA; text-decoration: none; font-size: 15px; display: inline-flex; min-height: 34px; align-items: center; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.socials a:hover { background: rgba(255, 255, 255, .12); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 18px 26px; font-size: 13px; color: #BFB1DD; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-contact { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; }
.footer-contact a, .footer-contact span { display: inline-flex; gap: 8px; align-items: center; color: #E9E1FA; text-decoration: none; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-block: 56px 36px; } }

/* ---------------------------------------------------------------- Catálogo */
.page-head { padding-block: 22px 8px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); list-style: none; margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.page-head h1 { font-size: clamp(30px, 6vw, 46px); }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }

.catalog { display: grid; gap: 20px; padding-bottom: 20px; }
.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.catalog-bar .count { font-size: 14px; color: var(--muted); font-weight: 600; }
.catalog-bar .controls { display: flex; gap: 8px; align-items: center; }
.catalog-bar .select { min-height: 42px; width: auto; border-radius: var(--pill); padding: 8px 40px 8px 16px; font-size: 14px; font-weight: 600; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 6px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px 0 12px; border-radius: var(--pill); background: var(--lavanda); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.filter-chip .icon { width: 16px; height: 16px; }
.filter-chip:hover { background: var(--line-strong); }

.filters { display: none; }
.filter-group { border-bottom: 1px solid var(--line); padding-block: 16px; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-family: var(--font-body); font-size: 14px; font-weight: 800; letter-spacing: 0; margin-bottom: 10px; }
.filter-list { list-style: none; display: grid; gap: 2px; }
.filter-list label { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.filter-list input { width: 19px; height: 19px; accent-color: var(--uva); }
.filter-list .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.tone-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tone-opt { position: relative; }
.tone-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tone-opt span { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px 0 6px; border-radius: var(--pill); border: 1.5px solid var(--line-strong); background: var(--white); font-size: 13px; font-weight: 600; }
.tone-opt .swatch-dot { width: 22px; height: 22px; }
.tone-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.tone-opt input:focus-visible + span { outline: 3px solid var(--uva); outline-offset: 2px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs .input { min-height: 44px; font-size: 15px; }
.filters-actions { display: flex; gap: 8px; padding-top: 16px; }

@media (min-width: 1024px) {
  .catalog { grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
  .filters { display: block; position: sticky; top: calc(var(--header-h) + 66px); max-height: calc(100vh - var(--header-h) - 90px); overflow: auto; padding-right: 6px; }
  .filters-open { display: none !important; }
  .catalog-main { min-width: 0; }
}

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--pill); text-decoration: none; font-weight: 700; padding: 0 12px; }
.pagination a { border: 1.5px solid var(--line-strong); background: var(--white); }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; }

.empty-state { text-align: center; padding: 48px 20px; border-radius: var(--radius-lg); background: var(--white); border: 1.5px dashed var(--line-strong); display: grid; justify-items: center; gap: 12px; }
.empty-state .icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: var(--lavanda); color: var(--uva); display: grid; place-items: center; }
.empty-state .icon-wrap .icon { width: 30px; height: 30px; }
.empty-state h2, .empty-state h3 { font-size: 22px; }
.empty-state p { color: var(--muted); max-width: 44ch; }

/* ---------------------------------------------------------------- Producto */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 8px 24px; }
.gallery { min-width: 0; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius-lg); background: var(--lavanda); scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main figure { flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 5; scroll-snap-align: center; background: var(--lavanda); }
.gallery-main figure:nth-child(even) { background: var(--rosa); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line-strong); }
.gallery-dots button[aria-current="true"] { background: var(--ink); width: 22px; border-radius: 6px; }
.gallery-thumbs { display: none; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: start; padding-top: 12px; }
  .gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; position: sticky; top: calc(var(--header-h) + 66px); }
  .gallery-main { margin: 0; border-radius: var(--radius-lg); grid-column: 2; grid-row: 1; }
  .gallery-thumbs { display: grid; gap: 10px; align-content: start; grid-column: 1; grid-row: 1; }
  .gallery-thumbs button { padding: 0; border: 1.5px solid transparent; border-radius: 12px; overflow: hidden; background: var(--lavanda); aspect-ratio: 4 / 5; }
  .gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }
  .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-dots { display: none; }
}
.product-info { display: grid; gap: 18px; align-content: start; }
.product-info h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.05; }
.product-brand { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--uva); text-decoration: none; }
.product-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.product-price .price-now { font-size: 28px; font-family: var(--font-display); }
.product-price .price-was { font-size: 16px; }
.product-short { color: var(--ink-2); font-size: 16px; }
.stock-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.stock-note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.stock-note.low::before { background: #D97706; box-shadow: 0 0 0 4px var(--warning-bg); }
.stock-note.out::before { background: var(--muted); box-shadow: 0 0 0 4px #EEE9F3; }
.option-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.option-head .label strong { font-weight: 600; color: var(--ink-2); }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-swatch { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: transparent; }
.opt-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(36, 21, 47, .15); }
.opt-swatch[aria-checked="true"] { border-color: var(--ink); }
.opt-swatch.is-out span { opacity: .45; }
.opt-swatch.is-out::after { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.opt-pill { min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1.5px solid var(--line-strong); background: var(--white); font-weight: 600; font-size: 14px; }
.opt-pill[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt-pill.is-out { color: var(--muted); text-decoration: line-through; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: var(--white); height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; border-radius: var(--pill); }
.qty button:hover:not([disabled]) { background: var(--uva-50); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 40px; }
.qty-sm button { width: 36px; }
.qty-sm input { width: 30px; font-size: 15px; }
.help-row { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; }
.help-row a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.perks { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.perks li { list-style: none; display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.perks .icon { color: var(--uva); width: 20px; height: 20px; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; font-weight: 800; font-size: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .2s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion .acc-body { padding-bottom: 18px; color: var(--ink-2); }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 12px; }
.prose h2 { font-size: 24px; margin-top: 28px; }
.prose h3 { font-size: 19px; margin-top: 22px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--uva); font-weight: 600; }
.prose blockquote { margin: 0; padding: 12px 16px; border-left: 4px solid var(--chicle); background: var(--chicle-50); border-radius: 0 12px 12px 0; font-size: 15px; }
.mobile-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .25s var(--ease); }
.mobile-buybar.is-visible { transform: none; }
.mobile-buybar .mb-price { font-weight: 800; font-size: 17px; }
.mobile-buybar .mb-name { font-size: 12px; color: var(--muted); max-width: 40vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-buybar .btn { flex: 1; }
@media (min-width: 900px) { .mobile-buybar { display: none; } }

/* ---------------------------------------------------------------- Carrito */
.cart-lines { list-style: none; display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; }
.cart-line img { width: 76px; height: 95px; object-fit: cover; border-radius: 12px; background: var(--lavanda); }
.cart-line .cl-name { font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; }
.cart-line .cl-variant { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.cart-line .cl-variant .swatch-dot { width: 12px; height: 12px; }
.cart-line .cl-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.cart-line .cl-price { font-weight: 800; }
.cart-line .cl-remove { border: 0; background: none; padding: 6px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; }
.cart-line .cl-remove:hover { color: var(--danger); }
.cart-notices { display: grid; gap: 8px; margin-bottom: 14px; }
.summary-rows { display: grid; gap: 8px; font-size: 15px; }
.summary-rows .row { display: flex; justify-content: space-between; gap: 12px; }
.summary-rows .row.total { font-size: 19px; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.summary-rows .row.discount span:last-child { color: var(--success); font-weight: 700; }
.summary-rows .row .muted { font-size: 13px; }
.cart-empty { text-align: center; display: grid; gap: 12px; justify-items: center; padding-top: 32px; }
.cart-empty .icon-wrap { width: 72px; height: 72px; border-radius: 50%; background: var(--lavanda); display: grid; place-items: center; color: var(--uva); }
.cart-empty .icon-wrap .icon { width: 32px; height: 32px; }

.cart-page { display: grid; gap: 24px; padding-bottom: 32px; }
.panel { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 20px; }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
@media (min-width: 900px) { .cart-page { grid-template-columns: 1fr 380px; align-items: start; gap: 32px; } .cart-page .summary { position: sticky; top: calc(var(--header-h) + 66px); } }

/* ---------------------------------------------------------------- Checkout */
.checkout { display: grid; gap: 20px; padding-bottom: 40px; }
.checkout-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.step-title h2 { font-size: 21px; }
.step-title .aside { margin-left: auto; font-size: 14px; }
.ship-options { display: grid; gap: 10px; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; background: var(--white); }
.ship-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--uva-50); }
.ship-opt input { width: 20px; height: 20px; accent-color: var(--uva); margin: 0; }
.ship-opt .so-name { font-weight: 700; }
.ship-opt .so-desc { font-size: 13px; color: var(--muted); }
.ship-opt .so-price { font-weight: 800; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { min-height: 46px; text-transform: uppercase; }
.coupon-row .btn { min-height: 46px; }
.coupon-ok { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--success-bg); color: #0A5C3A; font-size: 14px; font-weight: 700; }
.coupon-ok button { border: 0; background: none; color: inherit; text-decoration: underline; font-weight: 600; font-size: 13px; }
.mini-lines { list-style: none; display: grid; gap: 12px; margin-bottom: 16px; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.mini-line .thumb { position: relative; }
.mini-line img { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--lavanda); }
.mini-line .q { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.mini-line .ml-name { font-weight: 700; line-height: 1.3; }
.mini-line .ml-var { color: var(--muted); font-size: 13px; }
.mini-line .ml-total { font-weight: 700; }
.pay-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.summary-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--line-strong); background: var(--white); font-weight: 700; }
.summary-toggle .icon { transition: transform .2s var(--ease); }
.summary-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.checkout-summary .summary-body { margin-top: 12px; }
@media (min-width: 1000px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
  .checkout-summary { position: sticky; top: calc(var(--header-h) + 20px); grid-column: 2; grid-row: 1 / span 6; }
  .summary-toggle { display: none; }
  .checkout-summary .summary-body { display: block !important; margin-top: 0; }
}

/* ---------------------------------------------------------------- Pedido */
.order-hero { display: grid; gap: 14px; padding: 24px 20px; border-radius: var(--radius-xl); background: var(--lavanda); position: relative; overflow: hidden; }
.order-hero .on { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.order-hero h1 { font-size: clamp(28px, 6vw, 42px); }
.order-hero .spark { position: absolute; right: 20px; top: 18px; width: 30px; height: 30px; color: var(--chicle); }
.order-grid { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1fr 360px; align-items: start; } }
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--white); display: grid; place-items: center; z-index: 1; }
.timeline .done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.timeline .done::before { background: var(--ink); }
.timeline .current .dot { border-color: var(--uva); box-shadow: 0 0 0 4px rgba(109, 40, 217, .15); }
.timeline .dot .icon { width: 15px; height: 15px; }
.timeline strong { display: block; font-size: 15px; }
.timeline span { font-size: 13px; color: var(--muted); }
.kv { display: grid; gap: 4px; font-size: 15px; }
.kv dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.kv dd { margin: 0 0 10px; }

/* ---------------------------------------------------------------- Cuenta y acceso */
.auth-wrap { display: grid; place-items: start center; padding-block: 28px 48px; }
.auth-card { width: min(460px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px 22px; }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 22px; }
.auth-card .alt { text-align: center; margin-top: 18px; font-size: 15px; }
@media (min-width: 600px) { .auth-card { padding: 36px; } }
.account { display: grid; gap: 20px; padding-bottom: 40px; }
.account-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.account-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .account { grid-template-columns: 230px 1fr; gap: 32px; align-items: start; } .account-nav { flex-direction: column; } .account-nav .pill { justify-content: flex-start; } }
.order-list { list-style: none; display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; align-items: center; }
.order-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.order-row .or-num { font-weight: 800; }
.order-row .or-meta { font-size: 13px; color: var(--muted); }
.order-row .or-total { font-weight: 800; text-align: right; }
.order-row .or-thumbs { display: flex; gap: 6px; grid-column: 1 / -1; }
.order-row .or-thumbs img { width: 40px; height: 50px; border-radius: 8px; object-fit: cover; background: var(--lavanda); }
.address-list { display: grid; gap: 12px; }
@media (min-width: 700px) { .address-list { grid-template-columns: 1fr 1fr; } }
.address-card { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); font-size: 14px; display: grid; gap: 4px; }

/* ---------------------------------------------------------------- Avisos flotantes */
.toast-region { position: fixed; z-index: 120; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; animation: toast-in .25s var(--ease); }
.toast img { width: 40px; height: 50px; border-radius: 8px; object-fit: cover; background: var(--lavanda); }
.toast a { color: #fff; margin-left: auto; font-weight: 800; white-space: nowrap; }
.toast.is-error { background: var(--danger); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }
.flash-stack { display: grid; gap: 10px; margin-top: 16px; }

/* Utilidades de carga */
.skeleton { background: linear-gradient(90deg, #F2ECF8 0%, #FBF8FE 50%, #F2ECF8 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* El carrito cerrado está oculto pero existe en todas las páginas: su "cargando" no debe animarse (repintaba en cada cuadro). */
.drawer:not(.is-open) .skeleton { animation: none; }
/* Bloques animados fuera de la pantalla (landing.js / catalogo.js agregan .is-offscreen): se pausan y siguen al volver. */
.is-offscreen, .is-offscreen *, .is-offscreen::before, .is-offscreen::after, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
.demo-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #6E4200; background: #FFF3DC; border-radius: var(--pill); padding: 3px 10px; }


/* Filtros como hoja inferior en celular */
.filters-sheet-head { display: none; }
.filters.is-sheet {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-height: 86vh; overflow: auto;
  background: var(--crema); border-radius: 24px 24px 0 0; padding: 0 var(--gutter) calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(36, 21, 47, .25); animation: sheet-in .26s var(--ease);
}
.filters.is-sheet .filters-sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--crema); padding: 14px 0 10px; z-index: 2; }
.filters.is-sheet .filters-sheet-head h2 { font-size: 22px; }
.filters.is-sheet .filters-actions { position: sticky; bottom: 0; background: var(--crema); padding-block: 12px 4px; }
.filters.is-sheet .filters-actions .btn { flex: 1; }
.filters-backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(36, 21, 47, .45); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 1024px) { .filters-sheet-head { display: none !important; } }
.filters legend { padding: 0; }

.option-legend { padding: 0; margin-bottom: 10px; }
.option-legend strong { font-weight: 600; color: var(--ink-2); }

/* Checkout: total y botón al final en celular */
.checkout-mobile-pay { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
@media (min-width: 1000px) { .checkout-mobile-pay { display: none; } }
.is-checkout .site-footer { margin-top: 24px; }
/* Portada: categorías como píldoras en celular y como mosaico en escritorio */
.hero-chips { margin-inline: -22px; padding-inline: 22px; padding-bottom: 2px; }
.cats-desktop { display: none; }
@media (min-width: 900px) { .hero-chips { display: none; } .cats-desktop { display: block; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
