/* Impresiones3D — tienda (sistema «Shop»: blanco sobre gris niebla, tarjetas muy redondeadas, sombras suaves).
   Referencia: Shop (Refero). Un solo acento violeta, reservado al logotipo y al botón de búsqueda; la fotografía de
   producto aporta todo el color. Inter sustituye a GT Standard. El panel (/admin) usa site.css y admin.css, no este archivo. */

:root {
  color-scheme: dark;
  /* Superficies: grafito oscuro, para que la fotografía de producto sea lo más luminoso de la página */
  --canvas: #0d0d0f; --shell: #151517; --surface: #1f1f22; --surface-2: #28282c; --input-bg: #121214; --rail-bg: #0f0f11;
  --white: var(--surface); --bone: var(--canvas); --bone-2: #2b2b30;
  --ink: #f2f2f4; --ink-2: #d1d1d7; --muted: #9d9da7; --line: #2d2d32; --line-strong: #3e3e45; --field-border: #6e6e78;
  --on-bright: #141414;
  --stone: #4a4a52; --fog: #8a8a93;
  /* Único acento: naranja (los nombres «violet» se conservan por herencia) */
  --violet: #fa6831; --violet-hover: #ff8456; --violet-wash: #5a2a17; --violet-soft: #34211a; --violet-dark: #fa6831; --violet-btn-dark: #fa6831;
  /* Nombres heredados que usan algunas reglas */
  --g-950: #0a0a0b; --g-900: #101012; --g-850: #17171a; --g-800: #232327; --g-700: #2f2f35; --g-600: #46464e;
  --on-dark: #f2f2f4; --on-dark-2: #c4c4cb; --on-dark-muted: #9d9da7; --line-dark: #2a2a2f;
  /* Estados */
  --ok: #4cc38a; --ok-soft: #12281f; --warn: #f0b44c; --warn-soft: #2b2210; --err: #ff8a78; --err-soft: #301814; --focus: #fa6831;

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --font-ui: var(--font);
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --r-sm: 0.75rem; --r: 1.25rem; --r-lg: 1.75rem; --radius: var(--r); --radius-sm: var(--r-sm);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-2: 0 0.5rem 1.5rem -0.75rem rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-3: 0 0.75rem 2rem -0.5rem rgba(0, 0, 0, 0.75);
  --shadow-violet: 0 0.25rem 1.5rem rgba(250, 104, 49, 0.32);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --margin: clamp(1rem, 3vw, 2rem);
  --header-h: 4.5rem;
  --rail-w: 4rem;
  --paper: var(--bone); --accent: var(--violet);
}
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Tamaño general: 90 % (equivale a ver la tienda con el zoom del navegador al 90 %). Todas las medidas fijas están en rem. */
html { font-size: 90%; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bone); -webkit-font-smoothing: antialiased; caret-color: var(--violet); }
::selection { background: var(--violet); color: var(--on-bright); }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 0.1875rem; transition: color 160ms var(--ease); }
a:hover { color: var(--violet-hover); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 var(--s-4); color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3.25rem); }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.1875rem; border-radius: 0.25rem; }
.dark :focus-visible { outline-color: var(--violet-dark); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -5rem; background: var(--ink); color: var(--on-bright); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); z-index: 200; }
.skip-link:focus { top: var(--s-3); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 85rem; margin-inline: auto; padding-inline: var(--margin); }
.narrow { max-width: 53.75rem; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; max-width: 52ch; color: var(--ink-2); }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Superficies */
.dark { background: var(--g-900); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark .lead, .dark p { color: var(--on-dark-2); }
.dark a:not(.btn) { color: var(--violet-dark); }
.dark .muted { color: var(--on-dark-muted); }
.section { padding-block: clamp(3.5rem, 8vw, 7.5rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 3rem; padding: 0 var(--s-5); border: 1px solid transparent; border-radius: var(--r); font: 700 0.9375rem/1 var(--font); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--violet); color: var(--on-bright); }
.btn-primary:hover { background: var(--violet-hover); color: var(--on-bright); box-shadow: 0 0.5rem 1.375rem -0.625rem rgba(91, 61, 245, 0.7); }
.dark .btn-primary { background: var(--violet-btn-dark); }
.dark .btn-primary:hover { background: #7a5cff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.dark .btn-ghost { color: var(--on-dark); border-color: var(--g-600); }
.dark .btn-ghost:hover { border-color: var(--on-dark); background: transparent; color: var(--on-bright); }
.btn-light { background: var(--on-dark); color: var(--g-900); }
.btn-light:hover { background: var(--surface); color: var(--g-900); }
.btn-danger { background: var(--err); color: var(--on-bright); }
.btn-danger:hover { background: #a02b17; color: var(--on-bright); }
.btn-sm { min-height: 2.5rem; padding: 0 var(--s-4); font-size: 0.875rem; border-radius: var(--r-sm); }
.btn-lg { min-height: 3.5rem; padding: 0 var(--s-6); font-size: 1rem; }
.btn-block { width: 100%; }
.btn-disabled, .btn:disabled { background: var(--bone-2); color: var(--muted); border-color: transparent; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 1.125rem; height: 1.125rem; border: 2px solid rgba(20, 20, 20, 0.3); border-top-color: var(--on-bright); border-radius: 50%; animation: spin 700ms linear infinite; }
.btn-ghost.is-loading::after { border-color: rgba(20, 21, 26, 0.25); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-added { background: var(--ok); color: var(--on-bright); }
.grow { flex: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: inherit; border-radius: 50%; cursor: pointer; transition: background-color 160ms var(--ease); }
.icon-btn:hover { background: rgba(127, 127, 140, 0.16); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--violet); text-decoration: underline; text-underline-offset: 0.1875rem; cursor: pointer; }
.link-icon { display: inline-flex; align-items: center; gap: var(--s-2); background: none; border: 0; padding: var(--s-2) 0; font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.link-icon:hover { color: var(--violet); }

/* Formularios */
.field { margin-bottom: var(--s-4); }
.field label, fieldset legend { display: block; font-weight: 700; font-size: 0.875rem; margin-bottom: var(--s-2); color: inherit; padding: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], input:not([type]), select, textarea {
  width: 100%; min-height: 3rem; padding: 0.625rem var(--s-4); border: 1px solid var(--field-border); border-radius: var(--r); background: var(--white); color: var(--ink); font: 500 1rem/1.4 var(--font); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease); }
textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23a1a1aa' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.375rem; }
input::placeholder, textarea::placeholder { color: #6b6c75; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 0.25rem rgba(91, 61, 245, 0.18); }
input:disabled, select:disabled, textarea:disabled { background: var(--bone-2); color: var(--muted); }
.dark input, .dark select, .dark textarea { background: var(--g-850); border-color: var(--g-600); color: var(--on-dark); }
.dark input::placeholder, .dark textarea::placeholder { color: #8b8c97; }
.dark input:focus, .dark textarea:focus { border-color: var(--violet-dark); box-shadow: 0 0 0 0.25rem rgba(169, 155, 255, 0.2); }
.hint { font-size: 0.8125rem; color: var(--muted); margin: var(--s-1) 0 0; }
.field-error { font-size: 0.875rem; color: var(--err); font-weight: 600; margin: var(--s-1) 0 0; }
.dark .field-error { color: #ff9b8a; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s-4); }
@media (min-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form-grid .span-2 { grid-column: span 2; } }
.check { display: flex; align-items: flex-start; gap: var(--s-2); font-size: 0.9375rem; cursor: pointer; margin-bottom: var(--s-2); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 2px; accent-color: var(--violet); flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-4); min-width: 0; }
.inline-field { display: flex; gap: var(--s-2); }
.inline-field input { flex: 1; min-width: 0; }
.inline-form { display: inline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Avisos, etiquetas, estados */
.alert { padding: var(--s-3) var(--s-4); border-radius: var(--r); font-size: 0.9375rem; margin: var(--s-4) 0; border: 1px solid transparent; }
.alert > :last-child { margin-bottom: 0; }
.alert-success { background: var(--ok-soft); border-color: #bfe3cd; color: #0d5a35; }
.alert-error { background: var(--err-soft); border-color: #f1c1b8; color: #8f2313; }
.alert-info { background: var(--violet-soft); border-color: #d6cdff; color: #3a2a9a; }
.alert-warning { background: var(--warn-soft); border-color: #ecd9a1; color: var(--warn); }
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 62.4375rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.3; background: var(--bone-2); color: var(--ink-2); }
.badge-sale { background: var(--violet); color: var(--on-bright); }
.badge-new { background: var(--ink); color: var(--on-bright); }
.badge-featured { background: var(--surface); color: var(--ink); }
.badge-demo { background: color-mix(in srgb, var(--surface-2) 92%, transparent); color: var(--muted); font-weight: 600; }
.status { display: inline-block; padding: 0.1875rem 0.625rem; border-radius: 62.4375rem; font-size: 0.8125rem; font-weight: 600; background: var(--bone-2); color: var(--ink-2); white-space: nowrap; }
.status-pending_payment { background: var(--warn-soft); color: var(--warn); }
.status-paid, .status-delivered { background: var(--ok-soft); color: #0d5a35; }
.status-preparing, .status-in_production, .status-ready, .status-shipped { background: var(--violet-soft); color: #3a2a9a; }
.status-cancelled { background: var(--err-soft); color: #8f2313; }
.avail-in { color: var(--ok); } .avail-order { color: var(--violet); } .avail-out { color: var(--err); }
.badge-avail.avail-in { background: var(--ok-soft); } .badge-avail.avail-order { background: var(--violet-soft); } .badge-avail.avail-out { background: var(--err-soft); }

/* Paneles, tablas, estados vacíos, carga */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-4); box-shadow: var(--shadow-1); }
.panel h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.panel-accent { background: var(--violet-soft); border-color: #d6cdff; }
.empty { text-align: center; padding: var(--s-8) var(--s-4); background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty h2 { font-size: 1.75rem; margin-bottom: var(--s-2); } .empty p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th { text-align: left; font-weight: 700; font-size: 0.8125rem; color: var(--muted); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--white); }
.table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table tbody tr:hover { background: #faf8f4; }
.skeleton { background: linear-gradient(100deg, var(--bone-2) 30%, #f6f2ea 50%, var(--bone-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.page { padding-block: var(--s-5) var(--s-8); }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); }
.page-head h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }

/* Ruta de navegación y paginación */
.crumbs { margin-bottom: var(--s-5); font-size: 0.875rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--violet); }
.pagination { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-7); }
.page-link { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.page-link:hover { border-color: var(--ink); }
.page-link.is-current { background: var(--ink); border-color: var(--ink); color: var(--on-bright); }
.page-gap { align-self: center; color: var(--muted); }

/* Diálogos: panel lateral, hoja inferior y lightbox (elemento nativo <dialog>) */
dialog { border: 0; padding: 0; color: inherit; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8, 9, 12, 0.66); }
.sheet { position: fixed; inset: 0 0 0 auto; height: 100dvh; width: min(27.5rem, 100vw); margin: 0 0 0 auto; background: var(--white); color: var(--ink); display: flex; flex-direction: column; box-shadow: -1.875rem 0 3.75rem -1.875rem rgba(0, 0, 0, 0.5); transform: translateX(100%); transition: transform 320ms var(--ease), overlay 320ms allow-discrete, display 320ms allow-discrete; }
.sheet:not([open]) { display: none; }
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateX(100%); } }
.sheet-left { inset: 0 auto 0 0; margin: 0 auto 0 0; background: var(--g-900); color: var(--on-dark); transform: translateX(-100%); box-shadow: 1.875rem 0 3.75rem -1.875rem rgba(0, 0, 0, 0.6); }
.sheet-left[open] { transform: none; }
@starting-style { .sheet-left[open] { transform: translateX(-100%); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.sheet-left .sheet-head { border-color: var(--line-dark); }
.sheet-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.sheet-body { flex: 1; overflow-y: auto; padding: var(--s-5); }
.sheet-foot { display: flex; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); background: var(--white); }
@media (max-width: 700px) {
  .sheet:not(.sheet-left) { inset: auto 0 0 0; height: auto; max-height: 90dvh; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(100%); box-shadow: 0 -1.25rem 3.125rem -1.25rem rgba(0, 0, 0, 0.5); }
  .sheet:not(.sheet-left)[open] { transform: none; }
  @starting-style { .sheet:not(.sheet-left)[open] { transform: translateY(100%); } }
}
.menu-links { list-style: none; display: grid; gap: 2px; }
.menu-links a { display: flex; justify-content: space-between; padding: 0.875rem 0.25rem; color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-dark); }
.menu-links a span { color: var(--on-dark-muted); font-weight: 500; font-size: 0.9375rem; }
.menu-sub { margin: var(--s-5) 0 var(--s-2); color: var(--on-dark-muted); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; margin: 0; background: rgba(8, 9, 12, 0.94); place-items: center; }
.lightbox:not([open]) { display: none; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: 94vw; max-height: 86dvh; object-fit: contain; border-radius: var(--r); background: var(--bone-2); }
.lightbox .lb-close { position: absolute; top: var(--s-4); right: var(--s-4); color: var(--ink); background: rgba(255, 255, 255, 0.12); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--ink); background: rgba(255, 255, 255, 0.12); width: 3.25rem; height: 3.25rem; }
.lightbox .lb-prev { left: var(--s-4); } .lightbox .lb-next { right: var(--s-4); }
.lightbox .lb-count { position: absolute; bottom: var(--s-4); left: 50%; transform: translateX(-50%); color: #d8d8de; font-size: 0.875rem; font-weight: 600; }
.modal { position: fixed; inset: 0; margin: auto; width: min(28.75rem, calc(100vw - 2rem)); height: fit-content; background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: 0 2.5rem 5rem -1.875rem rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(0.625rem) scale(0.98); transition: opacity 220ms var(--ease), transform 220ms var(--ease), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.modal:not([open]) { display: none; }
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(0.625rem) scale(0.98); } }
.modal h2 { font-size: 1.375rem; margin-bottom: var(--s-2); } .modal p { color: var(--muted); }
.modal-actions { display: flex; gap: var(--s-2); justify-content: flex-end; margin-top: var(--s-5); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: var(--s-2); transition: border-color 160ms var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; padding: var(--s-4) var(--s-5); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--violet); transition: transform 220ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .prose { padding: 0 var(--s-5) var(--s-4); color: var(--ink-2); }
.prose p { max-width: 68ch; }
.prose { color: var(--ink-2); }

/* ===== Tarjeta de producto premium ===== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); } }
@media (min-width: 1180px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-item { display: flex; min-width: 0; }
.card-top { position: relative; }
.card { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--bone-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 500ms var(--ease), transform 900ms var(--ease); }
.card-media .img-2 { opacity: 0; }
.card.is-soldout .card-media img { filter: saturate(0.5); opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .card:hover .card-media .img-2 { opacity: 1; } .card:hover .card-media img { transform: scale(1.03); } }
.card-badges { position: absolute; left: var(--s-3); top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-1); z-index: 2; }
.card-demo { position: absolute; left: var(--s-3); bottom: var(--s-3); z-index: 2; }
.card-quick { position: absolute; right: var(--s-3); bottom: var(--s-3); z-index: 3; }
.card-quick .btn { min-height: 2.75rem; width: 2.75rem; padding: 0; border-radius: 50%; box-shadow: var(--shadow-2); }
@media (hover: hover) and (pointer: fine) { .card-quick { opacity: 0; transform: translateY(0.5rem); transition: opacity 240ms var(--ease), transform 240ms var(--ease); } .card:hover .card-quick, .card-quick:focus-within { opacity: 1; transform: none; } }
.card-body { padding: var(--s-4) var(--s-1) 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; margin: 0; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--violet); }
.price { margin: var(--s-1) 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s-3); font-variant-numeric: tabular-nums; }
.price-now { font-weight: 800; font-size: 1.0625rem; }
.price-from { font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
.price-old { color: var(--muted); font-size: 0.9375rem; text-decoration-thickness: 1px; }
.price-lg .price-now { font-size: 2.25rem; letter-spacing: -0.03em; }
.price-lg .price-old { font-size: 1.125rem; }
.card-avail { font-size: 0.8125rem; font-weight: 700; margin: 2px 0 0; }
.dark .card-title a { color: var(--on-dark); }
.dark .price-old, .dark .price-from { color: var(--on-dark-muted); }

/* ===== Catálogo ===== */
.shop-bar-row { display: flex; align-items: center; gap: var(--s-3); padding-block: var(--s-3); }
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; flex: 1; padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 0.5625rem 1rem; border-radius: 62.4375rem; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.875rem; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-bright); }
.shop-tools { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.shop-tools select { min-height: 2.625rem; width: auto; border-radius: 62.4375rem; font-size: 0.875rem; font-weight: 600; padding-block: 0.375rem; }
.filter-count { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; border-radius: 62.4375rem; background: var(--violet); color: var(--on-bright); font-size: 0.75rem; font-weight: 800; }
.results-line { display: flex; justify-content: space-between; gap: var(--s-3); align-items: center; padding-block: var(--s-5) var(--s-4); color: var(--muted); font-size: 0.9375rem; flex-wrap: wrap; }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.active-filters a { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.3125rem 0.75rem; border-radius: 62.4375rem; background: var(--violet-soft); color: #3a2a9a; text-decoration: none; font-size: 0.8125rem; font-weight: 700; }
.filter-section { margin-bottom: var(--s-6); }
.filter-section legend { font-weight: 800; font-size: 1rem; margin-bottom: var(--s-3); }
.range-row { display: flex; align-items: center; gap: var(--s-2); } .range-row input { min-width: 0; padding-inline: var(--s-3); }
@media (max-width: 700px) { .shop-bar-row { flex-wrap: wrap; } .shop-tools { width: 100%; justify-content: space-between; } .shop-tools select { flex: 1; } }

/* ===== Ficha de producto ===== */
.pdp { display: grid; gap: var(--s-6); }
@media (min-width: 980px) { .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; } .buy { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--bone-2); cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); will-change: transform; }
.gallery-demo { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 2; }
.zoom-hint { position: absolute; right: var(--s-3); bottom: var(--s-3); display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 62.4375rem; background: rgba(8, 9, 12, 0.72); color: var(--on-bright); font-size: 0.75rem; font-weight: 700; z-index: 2; }
.gallery-thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
.thumb { padding: 0; width: 100%; aspect-ratio: 1; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: var(--bone-2); cursor: pointer; transition: border-color 160ms var(--ease), opacity 160ms var(--ease); opacity: 0.7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { border-color: var(--violet); opacity: 1; }
.buy-cat { font-size: 0.875rem; font-weight: 700; margin-bottom: var(--s-2); }
.buy-cat a { text-decoration: none; }
.buy h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); letter-spacing: -0.04em; margin-bottom: var(--s-3); }
.buy-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.buy-form { margin-top: var(--s-5); }
.buy-row { display: flex; gap: var(--s-3); align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--field-border); border-radius: var(--r); background: var(--white); }
.qty button { width: 2.75rem; height: 3.375rem; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink); border-radius: var(--r); transition: background-color 160ms var(--ease); }
.qty button:hover { background: var(--bone-2); }
.qty input { width: 3rem; min-height: 3.375rem; border: 0; text-align: center; padding: 0; font-weight: 700; box-shadow: none !important; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.variant-list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant span { display: inline-block; padding: 0.6875rem var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); font-weight: 600; font-size: 0.9375rem; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.variant:hover span { border-color: var(--ink); }
.variant input:checked + span { border-color: var(--violet); background: var(--violet-soft); color: #3a2a9a; box-shadow: inset 0 0 0 1px var(--violet); }
.variant input:focus-visible + span { outline: 0.1875rem solid var(--focus); outline-offset: 0.1875rem; }
.variant.is-out span { color: var(--muted); text-decoration: line-through; background: var(--bone-2); border-style: dashed; }
.buy-info { margin-top: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); padding: var(--s-2) var(--s-5); }
.buy-info details { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); } .buy-info details:last-child { border-bottom: 0; }
.buy-info summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.buy-info summary::-webkit-details-marker { display: none; }
.buy-info summary::after { content: "+"; font-size: 1.25rem; color: var(--violet); transition: transform 200ms var(--ease); }
.buy-info details[open] summary::after { transform: rotate(45deg); }
.buy-info ul { list-style: none; margin: var(--s-3) 0 0; display: grid; gap: var(--s-2); color: var(--ink-2); font-size: 0.9375rem; }
.buy-info li { display: flex; justify-content: space-between; gap: var(--s-3); }
.buy-meta { list-style: none; margin: var(--s-5) 0 var(--s-2); display: grid; gap: var(--s-2); color: var(--ink-2); font-size: 0.9375rem; }
.buy-meta li { display: flex; align-items: center; gap: var(--s-2); } .buy-meta .icon { color: var(--violet); }
.buy-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding-top: var(--s-3); }
.pdp-info { margin-top: var(--s-8); display: grid; gap: var(--s-7); }
@media (min-width: 980px) { .pdp-info { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }
.info-block { margin-bottom: var(--s-6); }
.info-block h2 { font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: var(--s-4); }
.specs { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.specs > div { display: grid; grid-template-columns: minmax(7.5rem, 40%) 1fr; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-size: 0.9375rem; } .specs dd { margin: 0; font-weight: 700; }
.more-photos { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-7); }
.more-photos button { padding: 0; border: 0; background: var(--bone-2); border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5; }
.more-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .more-photos button:hover img { transform: scale(1.04); } }
.related { margin-top: var(--s-8); }

/* ===== Carrito y checkout ===== */
.cart-layout, .checkout-layout, .order-layout { display: grid; gap: var(--s-5); }
@media (min-width: 980px) { .cart-layout, .checkout-layout, .order-layout { grid-template-columns: minmax(0, 1fr) 25rem; gap: var(--s-7); align-items: start; } .summary { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.cart-line { display: grid; grid-template-columns: 5.75rem 1fr auto; gap: var(--s-3) var(--s-4); align-items: center; padding: var(--s-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--s-3); position: relative; box-shadow: var(--shadow-1); }
.cart-line.has-problem { border-color: var(--err); }
.cart-img { grid-row: span 2; } .cart-img img { width: 5.75rem; height: 7.1875rem; object-fit: cover; border-radius: var(--r); background: var(--bone-2); }
.cart-info p { margin: 2px 0 0; font-size: 0.875rem; } .cart-name { font-size: 1.0625rem; margin: 0; line-height: 1.25; letter-spacing: -0.01em; } .cart-name a { color: var(--ink); text-decoration: none; }
.cart-note { background: var(--bone-2); padding: var(--s-1) var(--s-2); border-radius: 0.375rem; display: inline-block; }
.cart-total { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.cart-remove { position: absolute; top: 0.25rem; right: 0.25rem; } .cart-remove .icon-btn { width: 2.25rem; height: 2.25rem; }
.cart-qty { grid-column: 2; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 6.5rem 1fr auto 8.125rem; } .cart-img { grid-row: auto; } .cart-img img { width: 6.5rem; height: 8.125rem; } .cart-qty { grid-column: auto; } .cart-remove { position: static; } }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-1); }
.summary h2 { font-size: 1.375rem; } .summary h3 { font-size: 0.9375rem; margin: var(--s-4) 0 var(--s-1); color: var(--muted); letter-spacing: 0; font-weight: 700; }
.totals { margin: 0 0 var(--s-4); } .totals > div { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; font-variant-numeric: tabular-nums; }
.totals dt { color: var(--ink-2); } .totals dd { margin: 0; text-align: right; }
.totals .is-discount dd { color: var(--ok); font-weight: 700; }
.totals .grand { border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-3); font-size: 1.25rem; font-weight: 800; } .totals .grand dt { color: var(--ink); }
.coupon { margin-bottom: var(--s-4); } .coupon label { display: block; font-weight: 700; font-size: 0.875rem; margin-bottom: var(--s-2); }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r); background: var(--ok-soft); color: #0d5a35; margin-bottom: var(--s-4); font-size: 0.9375rem; }
.coupon-applied span { display: inline-flex; gap: var(--s-2); align-items: center; }
.options { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.option { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; background: var(--white); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.option:hover { border-color: var(--ink); }
.option:has(input:checked) { border-color: var(--violet); background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet); }
.option input { accent-color: var(--violet); width: 1.25rem; height: 1.25rem; flex: none; }
.option-body { display: grid; flex: 1; gap: 2px; font-size: 0.9375rem; } .option-body .muted { font-size: 0.8125rem; }
.option-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.accept { padding: var(--s-2) 0; }
.mini-lines { list-style: none; display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.mini-lines li { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: var(--s-3); align-items: center; font-size: 0.9375rem; }
.mini-lines img { width: 3.5rem; height: 4.375rem; border-radius: var(--r-sm); object-fit: cover; background: var(--bone-2); }
.confirm { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-5); background: var(--ok-soft); border: 1px solid #bfe3cd; border-radius: var(--r-lg); margin-bottom: var(--s-5); }
.confirm h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); margin-bottom: var(--s-1); letter-spacing: -0.03em; } .confirm .lead { margin: 0; }
.confirm-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--ok); color: var(--on-bright); flex: none; }
.stepper { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.stepper li { flex: 1 1 6.875rem; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--bone-2); color: var(--muted); font-size: 0.8125rem; font-weight: 700; border-top: 0.1875rem solid var(--line-strong); }
.stepper li.is-done { color: var(--ink-2); border-top-color: var(--violet); } .stepper li.is-current { background: var(--violet); color: var(--on-bright); border-top-color: var(--violet); }
.order-items { list-style: none; } .order-items li { display: grid; grid-template-columns: 4rem 1fr auto; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); align-items: start; } .order-items li:last-child { border-bottom: 0; }
.order-items img { width: 4rem; height: 5rem; border-radius: var(--r-sm); object-fit: cover; background: var(--bone-2); }
.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 0.375rem; } .timeline li { position: relative; padding: 0 0 var(--s-4) var(--s-4); } .timeline li::before { content: ""; position: absolute; left: -0.4375rem; top: 0.375rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--violet); border: 2px solid var(--bone); }
.timeline p { margin: 0; color: var(--ink-2); }

/* ===== Cuenta ===== */
.auth-page { display: grid; place-items: start center; }
.auth-card { width: 100%; max-width: 30rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-2); }
.auth-card h1 { font-size: 2.25rem; }
.auth-links { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; margin-top: var(--s-4); font-size: 0.9375rem; } .auth-links span { color: var(--line-strong); }
.account-layout { display: grid; gap: var(--s-5); margin-top: var(--s-4); }
@media (min-width: 860px) { .account-layout { grid-template-columns: 14.375rem 1fr; align-items: start; gap: var(--s-7); } }
.account-nav { display: flex; flex-wrap: wrap; gap: var(--s-1); }
@media (min-width: 860px) { .account-nav { flex-direction: column; flex-wrap: nowrap; position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.account-nav a, .account-nav .link-btn { display: block; padding: 0.6875rem var(--s-4); border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.account-nav a:hover { background: var(--bone-2); }
.account-nav a[aria-current="page"] { background: var(--ink); color: var(--on-bright); }
.account-nav .link-btn { text-align: left; color: var(--muted); text-decoration: none; }
.address-list { list-style: none; } .address-list .panel { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.address-list p { margin: var(--s-1) 0 0; font-size: 0.9375rem; }
.row-actions { display: flex; gap: var(--s-2); align-items: flex-start; flex-wrap: wrap; }
@media (max-width: 640px) {
  .table-wrap .table thead { display: none; }
  .table-wrap .table, .table-wrap .table tbody, .table-wrap .table tr, .table-wrap .table td { display: block; width: 100%; }
  .table-wrap .table tr { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
  .table-wrap .table td { display: flex; justify-content: space-between; gap: var(--s-3); border: 0; padding: 2px 0; text-align: right; }
  .table-wrap .table td::before { content: attr(data-label); color: var(--muted); font-size: 0.8125rem; text-align: left; }
}

/* ===== Avisos emergentes y errores ===== */
.toast { position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%); z-index: 120; background: var(--g-900); color: var(--on-bright); padding: var(--s-3) var(--s-5); border-radius: var(--r); box-shadow: 0 1.25rem 3.125rem -1.25rem rgba(0, 0, 0, 0.7); display: flex; gap: var(--s-4); align-items: center; max-width: calc(100vw - 2rem); font-size: 0.9375rem; font-weight: 600; transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
@starting-style { .toast { opacity: 0; transform: translate(-50%, 0.75rem); } }
.toast a { color: var(--violet-dark); font-weight: 800; } .toast.is-error { background: var(--err); } .toast.is-error a { color: var(--on-bright); }
.error-page { text-align: center; padding-block: var(--s-9); } .error-code { font-size: 6rem; font-weight: 800; color: var(--violet); margin: 0; line-height: 1; letter-spacing: -0.05em; }

/* ===== Entradas moderadas (solo con JavaScript; el contenido nunca queda oculto sin él) ===== */
.will-reveal { opacity: 0; transform: translateY(1.375rem); }
.will-reveal.in { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.img-fade { opacity: 0; transition: opacity 500ms var(--ease); }
.img-fade.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .will-reveal, .img-fade { opacity: 1; transform: none; } }
/* ═════════ Tema «Shop»: sobrescribe la base con el sistema nuevo ═════════ */
body.shop { background: var(--canvas); color: var(--ink); font-size: 1rem; line-height: 1.38; letter-spacing: -0.03em; caret-color: var(--violet); }
body.shop ::selection { background: var(--violet); color: var(--on-bright); }
body.shop h1, body.shop h2, body.shop h3, body.shop h4 { font-family: var(--font); font-weight: 600; letter-spacing: -0.05em; line-height: 1.1; }
body.shop h1 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
body.shop h2 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); }
body.shop h3 { font-size: 1.125rem; letter-spacing: -0.04em; }
body.shop a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.1875rem; }
body.shop a:hover { color: var(--violet); }
body.shop :focus-visible { outline: 2px solid var(--focus); outline-offset: 0.1875rem; border-radius: 0.75rem; }
body.shop .lead { font-size: 1.125rem; line-height: 1.38; color: var(--ink-2); max-width: 54ch; }
body.shop .muted, body.shop .hint { color: var(--muted); }
body.shop .small { font-size: 0.875rem; letter-spacing: -0.014em; }
.wrap { max-width: 75rem; padding-inline: var(--margin); }

/* Botones: píldoras; la acción principal es negra (el violeta es solo del logotipo y la búsqueda) */
body.shop .btn { border-radius: 9999px; min-height: 3rem; padding: 0 var(--s-5); font: 500 1rem/1 var(--font); letter-spacing: -0.03em; }
body.shop .btn-primary { background: var(--violet); color: var(--on-bright); }
body.shop .btn-primary:hover { background: var(--violet-hover); color: var(--on-bright); box-shadow: var(--shadow-violet); }
body.shop .btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
body.shop .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-3); }
body.shop .btn-light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
body.shop .btn-sm { min-height: 2.5rem; padding: 0 var(--s-4); font-size: 0.875rem; border-radius: 9999px; }
body.shop .btn-lg { min-height: 3.5rem; }
body.shop .btn-disabled, body.shop .btn:disabled { background: var(--canvas); color: var(--muted); box-shadow: none; }
body.shop .btn.is-added { background: var(--ok); }
body.shop .btn-ghost.is-loading::after { border-color: rgba(0, 0, 0, 0.2); border-top-color: var(--ink); }
body.shop .icon-btn:hover { background: var(--canvas); }
body.shop .link-btn, body.shop .link-more { color: var(--ink); font-weight: 500; }

/* Formularios: campos en píldora */
body.shop input[type="text"], body.shop input[type="email"], body.shop input[type="password"], body.shop input[type="search"], body.shop input[type="tel"],
body.shop input[type="number"], body.shop input[type="date"], body.shop input[type="url"], body.shop input:not([type]), body.shop select { border-radius: 9999px; padding-inline: var(--s-5); background-color: var(--input-bg); font: 400 1rem/1.4 var(--font); letter-spacing: -0.03em; }
body.shop select { background-position: right 1.25rem center; padding-right: 2.75rem; }
body.shop textarea { border-radius: 1.25rem; padding: 0.875rem var(--s-5); font: 400 1rem/1.5 var(--font); letter-spacing: -0.03em; }
body.shop input:focus, body.shop select:focus, body.shop textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 0.25rem rgba(84, 51, 235, 0.16); }
body.shop .field label, body.shop fieldset legend { font-weight: 500; font-size: 0.875rem; padding-left: var(--s-2); }
body.shop .check input, body.shop .option input { accent-color: var(--ink); }

/* Avisos, etiquetas y paneles */
body.shop .alert { border-radius: var(--r); }
body.shop .alert-info { background: var(--violet-soft); border-color: var(--violet-wash); color: #3a2a9a; }
body.shop .badge { padding: 0.25rem 0.625rem; font-weight: 500; font-size: 0.75rem; letter-spacing: -0.017em; box-shadow: var(--shadow-1); }
body.shop .badge-sale { background: var(--violet); color: var(--on-bright); }
body.shop .badge-new { background: var(--surface-2); color: var(--ink); }
body.shop .badge-featured { background: var(--surface); color: var(--ink); }
body.shop .badge-demo, body.shop .concept-chip { background: color-mix(in srgb, var(--surface-2) 92%, transparent); color: var(--ink-2); font-weight: 500; font-size: 0.6875rem; letter-spacing: -0.01em; padding: 0.25rem 0.625rem; border-radius: 9999px; box-shadow: var(--shadow-1); backdrop-filter: none; display: inline-flex; }
body.shop .status-preparing, body.shop .status-in_production, body.shop .status-ready, body.shop .status-shipped { background: var(--canvas); color: var(--ink); }
body.shop .panel, body.shop .summary, body.shop .auth-card, body.shop .table-wrap, body.shop .buy-info, body.shop .specs, body.shop .empty { background: var(--surface); border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
body.shop .panel-accent { background: var(--violet-soft); box-shadow: none; }
body.shop .empty { box-shadow: none; background: var(--canvas); }
body.shop .page { padding-block: var(--s-5) var(--s-8); }
body.shop .crumbs { font-size: 0.875rem; letter-spacing: -0.014em; }
body.shop .crumbs a:hover { color: var(--violet); }
body.shop .page-link { border-radius: 9999px; border: 0; background: var(--surface); box-shadow: var(--shadow-1); }
body.shop .page-link.is-current { background: var(--ink); color: var(--on-bright); }
body.shop .toast { background: var(--ink); color: var(--on-bright); border-radius: 9999px; box-shadow: var(--shadow-3); }
body.shop .toast a { color: var(--on-bright); text-decoration: underline; }
body.shop dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
body.shop .sheet, body.shop .modal { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); border-radius: var(--r-lg) 0 0 var(--r-lg); }
body.shop .sheet-head { border-color: var(--line); }
@media (max-width: 700px) { body.shop .sheet:not(.sheet-left) { border-radius: var(--r-lg) var(--r-lg) 0 0; } }
body.shop .modal { border-radius: var(--r-lg); }
body.shop .lightbox { background: rgba(0, 0, 0, 0.88); }
body.shop .lightbox img { border-radius: var(--r-lg); }

/* ═════════ Estructura: barra lateral + panel blanco redondeado ═════════ */
.siderail { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: var(--rail-w); background: var(--rail-bg); display: flex; flex-direction: column; align-items: center; padding: 0.875rem 0 0.75rem; gap: 0.375rem; }
.sr-logo { width: 2.5rem; height: 2.5rem; margin-bottom: 1.125rem; display: grid; place-items: center; border-radius: 0.875rem; background: var(--violet); color: var(--on-bright); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.06em; text-decoration: none; }
.sr-logo:hover { color: var(--on-bright); transform: scale(1.06); }
.sr-logo { transition: transform 220ms var(--ease); }
.sr-nav { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; flex: 1; }
.siderail a.ri { position: relative; width: 3rem; height: 3rem; border-radius: 1.25rem; display: grid; place-items: center; color: var(--ink); text-decoration: none; transition: background-color 200ms var(--ease), transform 200ms var(--ease); }
.siderail a.ri .icon { width: 1.5rem; height: 1.5rem; }
.siderail a.ri:hover { background: var(--canvas); color: var(--ink); }
.siderail a.ri:active { transform: scale(0.94); }
.siderail a.ri.is-active { background: var(--canvas); }
.siderail .ri-label { display: none; }
.siderail .ri-me { margin-top: auto; width: auto; height: auto; padding: 0.375rem 0.25rem; flex-direction: column; gap: 2px; font-size: 0.5625rem; letter-spacing: -0.058em; color: var(--muted); }
.siderail .ri-avatar { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--canvas); font-size: 0.75rem; font-weight: 500; color: var(--ink); letter-spacing: 0; }
.cart-count { position: absolute; top: 0.25rem; right: 2px; min-width: 1.125rem; height: 1.125rem; padding: 0 0.3125rem; border-radius: 9999px; background: var(--ink); color: var(--on-bright); font-size: 0.6875rem; font-weight: 600; display: grid; place-items: center; letter-spacing: 0; transition: transform 240ms var(--ease); }
.cart-count.is-bump { transform: scale(1.35); }

.shell { margin: 0.75rem 0.75rem 0.75rem calc(var(--rail-w) + 0.25rem); background: var(--shell); border-radius: var(--r-lg); overflow: clip; min-height: calc(100vh - 1.5rem); box-shadow: var(--shadow-1); }
.topbar { background: var(--rail-bg); color: var(--ink); min-height: 3rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.25rem var(--margin); font-size: 0.875rem; letter-spacing: -0.023em; text-align: center; }
.topbar a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.topbar a:hover { color: var(--ink); text-decoration: underline; }
.topbar small { font-size: 0.625rem; opacity: 0.75; font-weight: 400; }
.topbar .icon { width: 1rem; height: 1rem; }

.topnav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--shell) 98%, transparent); display: flex; align-items: center; gap: var(--s-4); padding: 0.875rem var(--margin); transition: box-shadow 240ms var(--ease); }
.is-scrolled .topnav { box-shadow: var(--shadow-1); }
.wordmark { display: inline-flex; align-items: baseline; color: var(--violet); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.07em; text-decoration: none; line-height: 1; }
.wordmark:hover { color: var(--violet-hover); }
.wordmark img { height: 1.875rem; width: auto; }
.topnav .search-pill { flex: 1; max-width: 35rem; margin: 0 auto; }
.is-home .topnav { position: absolute; left: 0; right: 0; background: transparent; box-shadow: none; pointer-events: none; }
.is-home .topnav > * { pointer-events: auto; }
.is-home .topnav .wordmark, .is-home .topnav .search-pill { display: none; }

/* Buscador en píldora con botón violeta */
.search-pill { display: flex; align-items: center; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 9999px; padding: 0.25rem 0.25rem 0.25rem 1.25rem; box-shadow: var(--shadow-1); transition: box-shadow 240ms var(--ease), border-color 240ms var(--ease); }
.search-pill:focus-within { box-shadow: var(--shadow-3); border-color: rgba(84, 51, 235, 0.45); }
.search-pill input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 2.75rem; padding: 0 !important; border-radius: 0 !important; font-size: 1rem; }
.search-pill input::placeholder { color: var(--muted); }
.search-pill button { flex: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--violet); color: var(--on-bright); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-violet); transition: transform 200ms var(--ease), background-color 200ms var(--ease); }
.search-pill button:hover { background: var(--violet-hover); transform: scale(1.05); }
.search-pill button:active { transform: scale(0.94); }
.search-pill button .icon { width: 1.25rem; height: 1.25rem; }

/* ═════════ Inicio: constelación de tarjetas flotantes ═════════ */
.hero-shop { position: relative; text-align: center; padding: clamp(1.75rem, 5vw, 3.5rem) var(--margin) 0.5rem; overflow: clip; }
.constellation { position: relative; height: clamp(15.625rem, 32vw, 23.75rem); max-width: 68.75rem; margin-inline: auto; }
.cn { position: absolute; display: block; text-decoration: none; color: var(--ink); --r: 0deg; transform: rotate(var(--r)); transition: transform 500ms var(--ease), box-shadow 300ms var(--ease); animation: cn-in 900ms var(--ease) backwards, cn-drift 7s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * -1.3s); }
.cn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cn-tile { width: var(--w); aspect-ratio: 1; border-radius: 1.75rem; overflow: hidden; background: var(--canvas); box-shadow: var(--shadow-2); }
.cn-card { width: var(--w); background: var(--surface); border-radius: 1.75rem; padding: 0.5rem 0.5rem 0.625rem; box-shadow: var(--shadow-2); text-align: left; }
.cn-card .cn-img { display: block; aspect-ratio: 1; border-radius: 1.25rem; overflow: hidden; background: var(--canvas); }
.cn-card b { display: block; margin: 0.625rem 0.375rem 0; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.014em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-card span.cn-meta { display: block; margin: 2px 0.375rem 0; font-size: 0.6875rem; color: var(--muted); letter-spacing: -0.017em; }
.cn:hover { transform: rotate(var(--r)) translateY(-0.375rem) scale(1.04); box-shadow: var(--shadow-3); z-index: 3; }
.cn .concept-chip { position: absolute; left: 0.5rem; bottom: 0.5rem; font-size: 0.5625rem; padding: 0.1875rem 0.5rem; }
.cn-1 { --w: clamp(7.5rem, 17vw, 11.875rem); --r: -5deg; left: 2%; top: 6%; --i: 1; }
.cn-2 { --w: clamp(4.375rem, 10vw, 7rem); --r: 8deg; left: 22%; top: 20%; --i: 2; }
.cn-3 { --w: clamp(7.5rem, 18vw, 12.5rem); --r: -3deg; left: 36%; top: -2%; --i: 3; }
.cn-4 { --w: clamp(5.625rem, 13vw, 9.375rem); --r: 6deg; left: 58%; top: 16%; --i: 4; }
.cn-5 { --w: clamp(7.5rem, 17vw, 11.875rem); --r: 5deg; right: 3%; top: 2%; --i: 5; }
.cn-6 { --w: clamp(4.375rem, 9vw, 6.875rem); --r: -7deg; right: 0%; top: 46%; --i: 6; }
.cn-7 { --w: clamp(4rem, 8vw, 6rem); --r: -4deg; left: 17%; top: 56%; --i: 7; }
@keyframes cn-in { from { opacity: 0; translate: 0 1.75rem; scale: 0.9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes cn-drift { from { translate: 0 0; } to { translate: 0 -0.5625rem; } }
.hero-word { position: relative; z-index: 2; margin: clamp(-1.125rem, -1.5vw, -0.375rem) 0 0; font-size: clamp(3rem, 1.2rem + 8vw, 6rem); font-weight: 600; letter-spacing: -0.075em; line-height: 1; color: var(--violet); animation: fade-up 900ms var(--ease) 350ms backwards; }
.hero-tag { margin: 0.5rem auto 0; color: var(--muted); font-size: 1rem; max-width: 46ch; animation: fade-up 900ms var(--ease) 450ms backwards; }
.hero-shop .search-pill { max-width: 38.75rem; margin: 1.375rem auto 0; padding-left: 1.5rem; animation: fade-up 900ms var(--ease) 550ms backwards; }
.hero-shop .search-pill button { width: 3rem; height: 3rem; }
.cat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.75rem auto 0; max-width: 60rem; animation: fade-up 900ms var(--ease) 650ms backwards; }
.cat-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem 0.375rem 0.375rem; background: var(--surface); border: 1px solid var(--line); border-radius: 9999px; box-shadow: var(--shadow-1); font-size: 1rem; text-decoration: none; color: var(--ink); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.cat-pill img { width: 1.75rem; height: 1.75rem; border-radius: 50%; object-fit: cover; background: var(--canvas); }
.cat-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); color: var(--ink); }
.hero-note { margin: 0.875rem 0 0; font-size: 0.6875rem; color: var(--muted); }
@keyframes fade-up { from { opacity: 0; transform: translateY(1.125rem); } to { opacity: 1; transform: none; } }

/* Bandas de categoría: mosaicos de imágenes que se desplazan en horizontal */
.section { padding-block: var(--s-8) 0; }
.section-head { margin-bottom: var(--s-4); }
.section-head h2 { font-size: 1.25rem; letter-spacing: -0.05em; }
.link-more { display: inline-flex; align-items: center; gap: 0.25rem; text-decoration: none; font-size: 0.875rem; }
.link-more:hover { color: var(--violet); }
.bands-wrap { position: relative; }
.bands { display: flex; gap: 1.75rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0.25rem var(--margin) 1rem; scrollbar-width: none; }
.bands::-webkit-scrollbar { display: none; }
.band { flex: 0 0 min(21.25rem, 80vw); scroll-snap-align: start; }
.band-head { display: inline-flex; align-items: center; gap: 0.25rem; margin-bottom: 0.75rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.05em; text-decoration: none; color: var(--ink); }
.band-head .icon { width: 1rem; height: 1rem; transition: transform 220ms var(--ease); }
.band-head:hover .icon { transform: translateX(0.1875rem); }
.tiles { display: grid; gap: 2px; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); grid-template: 1fr 1fr / 1fr 1fr; }
.tiles.n1 { grid-template: 1fr / 1fr; } .tiles.n2 { grid-template: 1fr / 1fr 1fr; } .tiles.n3 > :first-child { grid-row: span 2; }
.tile { position: relative; display: block; overflow: hidden; background: var(--canvas); color: var(--ink); text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.tile-label { position: absolute; left: 0.5rem; bottom: 0.5rem; max-width: calc(100% - 1rem); padding: 0.3125rem 0.625rem; border-radius: 0.75rem; background: color-mix(in srgb, var(--surface) 82%, transparent); font-size: 0.875rem; font-weight: 600; letter-spacing: -0.014em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .concept-chip { position: absolute; left: 0.5rem; top: 0.5rem; font-size: 0.5625rem; padding: 0.1875rem 0.5rem; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.06); } }

/* Carruseles de productos */
.strip { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem var(--margin) 1.5rem; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: 0 0 min(15.625rem, 68vw); scroll-snap-align: start; display: flex; }
.rail-nav { display: none; gap: var(--s-2); }
@media (hover: hover) and (pointer: fine) { .rail-nav { display: flex; } }
.rail-nav .icon-btn { background: var(--surface); box-shadow: var(--shadow-2); width: 2.25rem; height: 2.25rem; }
.rail-nav .icon-btn:hover { box-shadow: var(--shadow-3); }

/* Tarjeta de producto: imagen primero, marco blanco interior */
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
@media (min-width: 68.75rem) { .grid-4, .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border-radius: var(--r-lg); padding: 0.5rem; box-shadow: var(--shadow-2); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-3); } }
.card-media { aspect-ratio: 1; border-radius: var(--r); background: var(--canvas); }
.card-body { padding: 0.75rem 0.625rem 0.5rem; gap: 2px; }
.card-title { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.014em; line-height: 1.25; }
.card-title a { text-decoration: none; } .card-title a:hover { color: var(--ink); }
.price { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.price-now { font-weight: 500; font-size: 1rem; }
.price-from { font-size: 0.75rem; }
.price-old { font-size: 0.8125rem; }
.card-avail { font-size: 0.75rem; font-weight: 500; letter-spacing: -0.017em; color: var(--muted); }
.avail-in { color: var(--ok); } .avail-out { color: var(--err); } .avail-order { color: var(--muted); }
.card-quick .btn { box-shadow: var(--shadow-2); }
.card-quick .btn-primary { background: var(--surface); color: var(--ink); }
.card-quick .btn-primary:hover { background: var(--ink); color: var(--on-bright); }

/* Cotización a medida */
.quote-band { margin: var(--s-8) var(--margin) 0; background: var(--canvas); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; gap: var(--s-6); }
@media (min-width: 980px) { .quote-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
.quote-band h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -0.06em; }
.quote-steps { list-style: none; display: grid; gap: var(--s-4); margin-top: var(--s-5); counter-reset: q; }
.quote-steps li { counter-increment: q; display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s-3); }
.quote-steps li::before { content: counter(q); width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1); display: grid; place-items: center; font-weight: 600; font-size: 0.875rem; }
.quote-steps strong { display: block; font-weight: 600; }
.quote-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-2); }
.quote-card h3 { font-size: 1.25rem; margin-bottom: var(--s-4); }

/* Preguntas frecuentes */
.faq details { border: 0; border-radius: var(--r); background: var(--canvas); margin-bottom: var(--s-2); }
.faq details[open] { background: var(--canvas); }
.faq summary { font-weight: 500; letter-spacing: -0.03em; }
.faq summary::after { color: var(--ink); }

/* Catálogo */
.shop-head { padding: var(--s-5) 0 0; }
.shop-head h1 { margin: 0 0 var(--s-1); }
.shop-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.shop-head .crumbs { margin-bottom: var(--s-3); }
.shop-bar { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--shell) 97%, transparent); }
.shop-bar-row { display: flex; align-items: center; gap: var(--s-3); padding-block: var(--s-3); }
.chip { padding: 0.5rem 1rem; border-radius: 9999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); font-size: 0.9375rem; font-weight: 400; color: var(--ink); text-decoration: none; transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.chip:hover { border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-3); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-bright); }
.shop-tools select { border-radius: 9999px; font-size: 0.875rem; font-weight: 500; min-height: 2.5rem; }
.filter-count { background: var(--ink); color: var(--on-bright); }
.active-filters a { background: var(--canvas); color: var(--ink); border-radius: 9999px; text-decoration: none; font-weight: 500; }

/* Ficha de producto */
.gallery-main { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--canvas); box-shadow: var(--shadow-2); }
.thumb { border-radius: 1.25rem; background: var(--canvas); border: 2px solid transparent; }
.thumb.is-active, .thumb:hover { border-color: var(--ink); }
.buy { background: var(--shell); }
.buy h1 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.06em; }
.buy-cat a { font-weight: 500; }
.price-lg .price-now { font-size: 2rem; letter-spacing: -0.05em; font-weight: 500; }
.qty { border-radius: 9999px; border-color: var(--field-border); }
.qty button:hover { background: var(--canvas); border-radius: 50%; }
.variant span { border-radius: 9999px; border-color: var(--line-strong); }
.variant input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-bright); box-shadow: none; }
.variant:hover span { border-color: var(--ink); }
.variant.is-out span { background: var(--canvas); }
.buy-info summary::after { color: var(--ink); }
.buy-meta .icon { color: var(--ink); }
.more-photos button { border-radius: var(--r-lg); }
.option { border-radius: var(--r); border-color: var(--line-strong); }
.option:has(input:checked) { border-color: var(--ink); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--ink); }
.stepper li { border-radius: 9999px; }
.stepper li.is-done { border-top-color: transparent; background: var(--ink); color: var(--on-bright); }
.stepper li.is-current { background: var(--violet-soft); color: var(--ink); border-top-color: transparent; }
.cart-line { background: var(--surface); border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.cart-img img, .mini-lines img, .order-items img { border-radius: 1rem; }
.account-nav a, .account-nav .link-btn { border-radius: 9999px; }
.account-nav a:hover { background: var(--canvas); }
.account-nav a[aria-current="page"] { background: var(--ink); color: var(--on-bright); }
.auth-card h1 { font-size: 2rem; }

/* Pie oscuro en columnas */
.site-footer { margin: var(--s-8) 0.75rem 0.75rem; background: var(--rail-bg); border: 1px solid var(--line); color: var(--on-dark-2); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 4rem) 0 0; }
.footer-top { display: grid; gap: var(--s-7); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 980px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--s-8); } }
.footer-brand .wordmark { color: var(--ink); margin-bottom: var(--s-3); font-size: 1.75rem; }
.footer-text { font-size: 0.9375rem; max-width: 38ch; color: var(--on-dark-2); }
.footer-cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-h { font-size: 0.875rem; color: var(--ink); font-weight: 600; letter-spacing: -0.014em; margin-bottom: var(--s-3); }
.footer-list { list-style: none; display: grid; gap: var(--s-2); font-size: 0.9375rem; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; transition: color 160ms var(--ease); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .muted { color: var(--on-dark-muted); }
.pay-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.pay-pills span { padding: 0.3125rem 0.75rem; border-radius: 9999px; background: var(--g-800); color: var(--on-dark-2); font-size: 0.75rem; }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.social a { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--g-800); color: var(--ink); font-weight: 500; font-size: 0.8125rem; }
.social a:hover { background: var(--ink); color: var(--on-bright); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-block: var(--s-5); font-size: 0.8125rem; color: var(--on-dark-muted); }
.footer-bottom p { margin: 0; } .footer-bottom nav { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.footer-credit { padding-bottom: var(--s-5); font-size: 0.75rem; color: var(--on-dark-muted); max-width: 90ch; }

/* ═════════ Móvil: la barra lateral pasa a barra inferior ═════════ */
@media (max-width: 899px) {
  .siderail a.ri { flex-direction: column; gap: 2px; }
  .siderail .ri-label { display: block; font-size: 0.625rem; letter-spacing: -0.02em; color: var(--ink-2); line-height: 1; }
  .siderail .ri-me { width: 3.5rem; }
  .siderail { top: auto; width: 100%; height: 4rem; flex-direction: row; padding: 0 0.5rem; gap: 0; justify-content: space-around; box-shadow: 0 -0.25rem 1.5rem rgba(0, 0, 0, 0.08); }
  .sr-logo { display: none; }
  .sr-nav { flex-direction: row; justify-content: space-around; width: 100%; gap: 0; }
  .siderail a.ri { width: 3.5rem; height: 3.25rem; border-radius: 1.25rem; }
  .siderail .ri-me { margin-top: 0; }
  .shell { margin: 0; border-radius: 0; box-shadow: none; padding-bottom: 4.75rem; min-height: 100vh; }
  .topnav { flex-wrap: wrap; gap: var(--s-2) var(--s-3); padding-block: 0.625rem; }
  .topnav .search-pill { order: 3; flex: 1 1 100%; max-width: none; }
  :root { --header-h: 7rem; }
  .is-home .topnav { display: none; }
  .site-footer { margin: var(--s-7) 0.5rem 5rem; }
  .cn-2, .cn-6, .cn-7 { display: none; }
  .cn-1 { left: -2%; top: 14%; } .cn-3 { left: 30%; top: 0; } .cn-4 { left: 60%; top: 26%; } .cn-5 { right: -4%; top: 4%; }
  .constellation { height: 14.375rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cn, .hero-word, .hero-tag, .hero-shop .search-pill, .cat-pills { animation: none !important; }
}

/* Colores de enlaces dentro de zonas oscuras o con fondo propio (ganan a «body.shop a») */
body.shop .topbar a, body.shop .topbar a:hover { color: var(--ink); }
body.shop .site-footer a { color: var(--on-dark-2); } body.shop .site-footer a:hover { color: var(--ink); }
body.shop .site-footer .wordmark { color: var(--ink); }
body.shop .sr-logo, body.shop .sr-logo:hover { color: var(--on-bright); }
body.shop .btn-primary, body.shop a.btn-primary:hover { color: var(--on-bright); }
body.shop .btn-ghost, body.shop a.btn-ghost:hover { color: var(--ink); }
body.shop .wordmark { color: var(--violet); } body.shop .wordmark:hover { color: var(--violet-hover); }
body.shop .social a { color: var(--ink); } body.shop .social a:hover { color: var(--on-bright); }
/* Carruseles alineados con el contenido */
.bands, .strip { padding-inline: max(var(--margin), calc((100% - 75rem) / 2 + var(--margin))); scroll-padding-inline: var(--margin); }
body.shop .footer-h { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.014em; color: var(--ink); line-height: 1.2; }
.topnav { padding-inline: max(var(--margin), calc((100% - 75rem) / 2 + var(--margin))); }
@media (max-width: 899px) { .topbar small { display: none; } }
body.shop .qty input { padding-inline: 0; background-color: transparent; border-radius: 0; font-weight: 500; }

/* Tienda desactivada: aviso para el equipo y página de mantenimiento */
.topbar-warn { background: var(--warn-soft); color: var(--warn); font-weight: 500; min-height: 2.5rem; }
body.shop .topbar-warn a, body.shop .topbar-warn a:hover { color: var(--warn); text-decoration: underline; }
.maint { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: var(--s-5); padding: var(--s-5); text-align: center; }
.maint-word { margin: 0; color: var(--violet); font-weight: 600; font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); letter-spacing: -0.07em; line-height: 1; }
.maint-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: clamp(1.5rem, 4vw, 3rem); max-width: 32.5rem; }
.maint-card h1 { margin-bottom: var(--s-3); }
.maint-card .lead { margin-inline: auto; }
.maint-contact { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin: var(--s-5) 0 0; }

/* Flechas de las bandas de categoría: aparecen solo si hay hacia dónde desplazarse */
.bands-arrow { position: absolute; top: 52%; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow-3); display: none; place-items: center; cursor: pointer; z-index: 3; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.bands-arrow .icon { width: 1rem; height: 1rem; }
.bands-next { right: 1rem; } .bands-prev { left: 1rem; } .bands-prev .icon { transform: rotate(180deg); }
.bands-arrow:hover { transform: scale(1.1); }
.bands-arrow.is-off, .rail-nav .is-off { opacity: 0; pointer-events: none; }
.rail-nav .is-off { opacity: 0.3; }
@media (hover: hover) and (pointer: fine) { .bands-arrow { display: grid; } }

/* Barra de categorías del catálogo: las categorías pasan a varias filas en escritorio (ninguna queda cortada ni tapada) */
@media (min-width: 701px) {
  .shop-bar { position: static; }
  .shop-bar-row { align-items: flex-start; }
  .chips { flex-wrap: wrap; overflow: visible; padding-block: 0.25rem; }
  .shop-tools { padding-top: 0.25rem; }
}

/* Pie: el contacto (correo largo) tiene más ancho y ningún texto puede salirse de su columna */
@media (min-width: 760px) { .footer-cols { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.2fr); } }
.footer-cols > div, .footer-list li, .footer-list a, .footer-text { min-width: 0; overflow-wrap: anywhere; }
.footer-list { gap: var(--s-2); }
.footer-list li { line-height: 1.35; }
.topnav { background: var(--shell); }

/* ───────── Tema oscuro: ajustes de detalle ───────── */
body.shop { color-scheme: dark; background: var(--canvas); }
body.shop .btn-ghost.is-loading::after { border-color: rgba(255, 255, 255, 0.25); border-top-color: var(--ink); }
body.shop .alert-success { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
body.shop .alert-error { background: var(--err-soft); border-color: transparent; color: var(--err); }
body.shop .alert-warning { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
body.shop .alert-info { background: var(--violet-soft); border-color: transparent; color: var(--ink); }
body.shop .status-paid, body.shop .status-delivered { background: var(--ok-soft); color: var(--ok); }
body.shop .status-preparing, body.shop .status-in_production, body.shop .status-ready, body.shop .status-shipped { background: var(--surface-2); color: var(--ink); }
body.shop .status-cancelled { background: var(--err-soft); color: var(--err); }
body.shop .status-pending_payment { background: var(--warn-soft); color: var(--warn); }
body.shop .coupon-applied, body.shop .confirm { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
body.shop .active-filters a { background: var(--surface-2); color: var(--ink); }
body.shop .variant input:checked + span { background: var(--violet); border-color: var(--violet); color: var(--on-bright); }
body.shop .option:has(input:checked) { background: var(--surface-2); border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
body.shop .stepper li.is-current { background: var(--violet-soft); color: var(--ink); }
body.shop .stepper li.is-done { background: var(--surface-2); color: var(--ink); }
body.shop .table tbody tr:hover { background: var(--surface-2); }
body.shop .skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; }
body.shop .chip.is-active, body.shop .page-link.is-current, body.shop .account-nav a[aria-current="page"] { background: var(--violet); border-color: var(--violet); color: var(--on-bright); }
body.shop .chip:hover, body.shop .cat-pill:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
body.shop .filter-count, body.shop .cart-count { background: var(--violet); color: var(--on-bright); }
body.shop .bands-arrow, body.shop .rail-nav .icon-btn { background: var(--surface-2); color: var(--ink); }
body.shop .icon-btn:hover { background: var(--surface-2); }
body.shop .card-quick .btn-primary { background: var(--surface-2); color: var(--ink); }
body.shop .card-quick .btn-primary:hover { background: var(--violet); color: var(--on-bright); }
body.shop .link-more, body.shop .link-btn, body.shop .link-icon { color: var(--ink); }
body.shop .link-more:hover, body.shop a:hover { color: var(--violet-hover); }
body.shop input:-webkit-autofill, body.shop textarea:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset; caret-color: var(--ink); }
body.shop input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85); }
body.shop dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
body.shop .search-pill { background: var(--surface); }
body.shop .search-pill input { color: var(--ink); }
body.shop .hero-word, body.shop .wordmark { color: var(--violet); }
body.shop .wordmark:hover { color: var(--violet-hover); }
body.shop .constellation .cn-tile, body.shop .tile, body.shop .card-media, body.shop .gallery-main, body.shop .thumb { background: var(--surface-2); }
body.shop .card { border: 1px solid var(--line); }
body.shop .tiles { border: 1px solid var(--line); }
body.shop .siderail a.ri:hover, body.shop .siderail a.ri.is-active { background: var(--surface); }
body.shop .siderail .ri-avatar { background: var(--surface); border-color: var(--line-strong); }
.siderail .ri-label { color: var(--ink-2); }
.topbar-warn { background: var(--warn-soft); color: var(--warn); }
body.shop .topbar-warn a, body.shop .topbar-warn a:hover { color: var(--warn); }
body.shop .maint-card { background: var(--surface); }
body.shop .skip-link, body.shop .skip-link:hover { background: var(--violet); color: var(--on-bright); }
body.shop .zoom-hint { color: var(--ink); }
.auth-links span { color: var(--muted); }

/* ───────── Logotipo i3D ───────── */
.logo { display: block; height: 1.5rem; width: auto; overflow: visible; }
.logo .logo-dot { fill: var(--violet); }
body.shop .wordmark { color: var(--ink); line-height: 0; }
body.shop .wordmark:hover { color: var(--ink); }
.logo-h { height: 1.75rem; transition: transform 300ms var(--ease); }
.wordmark:hover .logo-h { transform: scale(1.04); }
.logo-f { height: 2.25rem; }
body.shop .site-footer .wordmark { color: var(--ink); }
.sr-logo svg { width: 1.75rem; height: auto; display: block; color: var(--on-bright); }
.sr-logo { background: var(--violet); }

/* Título de la portada: el logotipo grande, con entrada animada (las letras suben, el punto «cae» y queda en naranja) */
body.shop .hero-word { color: var(--ink); line-height: 0; font-size: 1rem; letter-spacing: 0; margin: 0.25rem 0 0; display: flex; justify-content: center; }
.logo-hero { height: clamp(4.5rem, 2.2rem + 7.5vw, 8.25rem); width: auto; }
.logo-hero .logo-letters { transform-box: fill-box; transform-origin: 50% 100%; animation: logo-rise 1000ms var(--ease) 300ms backwards; }
.logo-hero .logo-dot { transform-box: fill-box; transform-origin: 50% 50%; animation: dot-drop 1100ms cubic-bezier(0.34, 1.56, 0.64, 1) 700ms backwards; }
@keyframes logo-rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
@keyframes dot-drop { from { opacity: 0; transform: translateY(-3.5rem); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .logo-hero .logo-letters, .logo-hero .logo-dot { animation: none; } }
.hero-tag { margin-top: 0.75rem; }
.maint-word { line-height: 0; color: var(--ink); } .maint-word .logo-hero { height: 5.5rem; }
.hero-tag { margin-top: 1.25rem; }
.logo-h { height: 1.9rem; }

/* ───────── Acceso con Google y captcha ───────── */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; min-height: 3rem; padding: 0 1.25rem; border-radius: 9999px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font: 500 1rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none; transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease), transform 150ms var(--ease); }
body.shop .btn-google, body.shop .btn-google:hover { color: #1f1f1f; text-decoration: none; }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.45); }
.btn-google:active { transform: scale(0.98); }
.btn-google svg { width: 1.25rem; height: 1.25rem; flex: none; }
.auth-or { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0 1rem; color: var(--muted); font-size: 0.8125rem; text-align: center; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.captcha { margin: 0 0 1rem; min-height: 4.0625rem; display: flex; justify-content: center; }
.captcha .cf-turnstile { max-width: 100%; }
