/* ---------------------------------------------
   SheetVera — styles
--------------------------------------------- */

:root {
  --bg: #F7F7FB;
  --bg-rgb: 247, 247, 251;
  --surface: #FFFFFF;
  --text: #1B1B24;
  --text-muted: #6B6B7B;
  --border: #E7E7F0;

  --purple: #5B4EFF;
  --purple-dark: #4638E0;
  --teal: #00A88E;
  --amber: #E07A2E;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(27, 27, 36, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 27, 36, 0.10);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* ---------------------------------------------
   Dark theme — token overrides only. Applied via
   data-theme="dark" on <html>, set by js/theme.js
   (and mirrored instantly at first paint by the
   inline bootstrap script in <head>). Every rule
   elsewhere in this file keeps using the same
   var(--...) tokens, so this block is the single
   place dark mode is defined.

   Not a straight inversion: --teal and --amber
   already have enough contrast against both a dark
   background and white button text, so they're
   intentionally left unchanged. --purple is
   brightened (its light-mode value already reads
   well as a button fill, but is too dim as
   standalone text on a near-black background); the
   original brand purple becomes --purple-dark, the
   deeper/pressed shade, keeping the same light->dark
   relationship the light theme uses.
--------------------------------------------- */
:root[data-theme="dark"] {
  --bg: #0E0E16;
  --bg-rgb: 14, 14, 22;
  --surface: #191926;
  --text: #F1F1F7;
  --text-muted: #9C9CB4;
  --border: #2B2B3D;

  --purple: #6E5FFF;
  --purple-dark: #5B4EFF;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn-add {
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
  padding: 9px 18px;
}

.btn-add:hover {
  background: var(--purple);
  transform: translateY(-1px);
}

.btn-add.is-added {
  background: var(--teal);
}

.btn-add:disabled {
  cursor: default;
}

/* .btn-add's idle background is var(--text) so it reads as a dark, high-
   contrast pill in light mode. In dark mode var(--text) is near-white, so
   the same rule would produce invisible white-on-white text — this keeps
   the button's original role (a high-contrast pill against the card) by
   flipping just this one component instead of the whole token set. */
:root[data-theme="dark"] .btn-add {
  background: #E7E7F2;
  color: #14141D;
}

:root[data-theme="dark"] .btn-add:hover {
  background: var(--purple);
  color: #fff;
}

:root[data-theme="dark"] .btn-add.is-added {
  background: var(--teal);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Brand mark (four-point star), rendered from assets/brand/sheetvera-mark.png
   — see assets/brand/README.md. The same purple mark is reused unmodified
   in both Light and Dark mode; only the "SheetVera" text next to it adapts
   via the existing --text token. */
.logo-mark {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--purple);
}

.nav-request-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-request-link[aria-current="page"] {
  color: var(--purple);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cart-btn:hover {
  border-color: var(--purple);
}

.cart-btn.bump {
  transform: scale(1.08);
}

.cart-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Header actions (appearance switch + cart) ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile-only entry point for Website Request: .header-nav (which normally
   carries this link) is fully hidden below 860px, and unlike the other nav
   items (in-page scroll anchors a mobile visitor reaches by scrolling
   anyway), this points at a separate page — so it needs its own persistent,
   compact affordance rather than disappearing with the rest of the nav. */
.mobile-request-link {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.mobile-request-link svg {
  width: 17px;
  height: 17px;
}

.mobile-request-link:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.mobile-request-link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.mobile-request-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  border: 1.5px solid var(--surface);
}

/* Light/Dark toggle — a single pill switch (see js/theme.js). State is
   driven entirely by aria-checked ("true" = dark), so the accessible state
   and the visual state can never drift apart. Sun/moon icons sit fixed in
   the track; the thumb slides to sit over whichever one is active, and the
   inactive icon dims — so the current state reads from thumb position +
   icon emphasis, not from color alone. */
.theme-toggle {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 26px;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--purple);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.theme-toggle-icon {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.theme-toggle-icon-sun {
  left: 6px;
}

.theme-toggle-icon-moon {
  right: 6px;
}

.theme-toggle[aria-checked="false"] .theme-toggle-icon-sun,
.theme-toggle[aria-checked="true"] .theme-toggle-icon-moon {
  color: var(--purple);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle-thumb {
  transform: translateX(22px);
}

/* ---------- Cart panel ---------- */

.cart-wrap {
  position: relative;
}

.cart-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}

.cart-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-panel-head h3 {
  font-size: 1.05rem;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1;
  padding: 4px;
}

.cart-close:hover {
  color: var(--text);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.cart-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px 0;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.cart-item-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 2px;
}

.cart-item-remove:hover {
  color: var(--amber);
}

.cart-panel-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.cart-checkout,
.cart-clear {
  width: 100%;
  padding: 9px 20px;
  font-size: 0.85rem;
}

.checkout-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-links-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.checkout-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.checkout-link:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.checkout-link.is-visited {
  background: var(--teal);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.glow-purple {
  width: 420px;
  height: 420px;
  background: var(--purple);
  top: -140px;
  right: -80px;
}

.glow-teal {
  width: 360px;
  height: 360px;
  background: var(--teal);
  bottom: -160px;
  left: -100px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--purple);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Floating cards */

.hero-visual {
  position: relative;
  min-height: 380px;
}

.floating-card {
  position: absolute;
  width: 220px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
}

.floating-card-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple);
  background: rgba(91, 78, 255, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.floating-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

.floating-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-1 {
  top: 0;
  right: 20px;
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  top: 150px;
  right: 140px;
  animation: float 7s ease-in-out infinite 0.5s;
}

.card-2 .floating-card-tag {
  color: var(--teal);
  background: rgba(0, 168, 142, 0.12);
}

.card-3 {
  top: 300px;
  right: 10px;
  animation: float 6.5s ease-in-out infinite 1s;
}

.card-3 .floating-card-tag {
  color: var(--amber);
  background: rgba(224, 122, 46, 0.12);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Section heading (shared) ---------- */

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Catalog ---------- */

.catalogo {
  padding: 96px 0;
}

/* ---------- Catalog toolbar (search + sort) ---------- */

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.catalog-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 420px;
}

.catalog-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px 10px 40px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-search-input::placeholder {
  color: var(--text-muted);
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91, 78, 255, 0.12);
}

/* Native "clear" (x) button WebKit/Blink add to type="search" fields. */
.catalog-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.catalog-sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.catalog-sort-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-sort-select {
  appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 32px 9px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-sort-select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91, 78, 255, 0.12);
}

.catalog-sort::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.filter-btn.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.catalog-results-count {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---------- Card preview ---------- */
/* Consistent 4:3 preview across every card. No product screenshots exist
   yet, so this renders a tinted category icon by default; a template with
   a real `image` gets object-fit: cover instead (see js/app.js previewHtml). */

.card-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-preview svg {
  width: 32%;
  height: 32%;
}

.card-preview.cat-diseno {
  background: linear-gradient(135deg, rgba(91, 78, 255, 0.16), rgba(91, 78, 255, 0.04));
  color: var(--purple);
}

.card-preview.cat-codigo {
  background: linear-gradient(135deg, rgba(0, 168, 142, 0.18), rgba(0, 168, 142, 0.05));
  color: var(--teal);
}

.card-preview.cat-documentos {
  background: linear-gradient(135deg, rgba(224, 122, 46, 0.18), rgba(224, 122, 46, 0.05));
  color: var(--amber);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.card-badge-inline {
  position: static;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
}

/* Quick View trigger — always in the tab order (so keyboard users can
   reach it), but visually dimmed until hovered/focused on pointer devices
   with hover support. Touch devices show it plainly (no hover to reveal it). */
.quick-view-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.quick-view-btn svg {
  width: 16px;
  height: 16px;
}

.card:hover .quick-view-btn,
.card:focus-within .quick-view-btn,
.quick-view-btn:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.quick-view-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

@media (hover: none) {
  .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Card body ---------- */

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 0 6px;
}

.card-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.tag-diseno {
  color: var(--purple);
  background: rgba(91, 78, 255, 0.1);
}

.tag-codigo {
  color: var(--teal);
  background: rgba(0, 168, 142, 0.12);
}

.tag-documentos {
  color: var(--amber);
  background: rgba(224, 122, 46, 0.12);
}

.card-name {
  font-size: 1.1rem;
}

.card-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.format-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.card-variant-count {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------- Empty state ---------- */

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
}

.catalog-empty-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.catalog-empty-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* ---------- How it works ---------- */

.como-funciona {
  padding: 96px 0 120px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 26px;
}

.step-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple);
  background: rgba(91, 78, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Contact ---------- */

.contacto {
  padding: 96px 0 120px;
}

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.request-form input,
.request-form textarea,
.request-form select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.request-form input:focus,
.request-form textarea:focus,
.request-form select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91, 78, 255, 0.12);
}

.request-form select {
  cursor: pointer;
}

.request-form ::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.contact-form button.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* ---------- Thank-you (after form submit) ---------- */

.gracias {
  display: none;
  padding: 96px 0 120px;
}

.gracias:target {
  display: block;
}

.gracias-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 48px 40px;
}

.gracias-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(0, 168, 142, 0.12);
  color: var(--teal);
  font-size: 1.6rem;
  font-weight: 700;
}

.gracias-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.gracias-card p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ---------- Variant picker modal ---------- */

.variant-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27, 27, 36, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.variant-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.variant-modal {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.variant-overlay.is-open .variant-modal {
  transform: translateY(0);
}

.variant-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.variant-modal-head h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.variant-modal-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.variant-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 4px;
  flex-shrink: 0;
}

.variant-close:hover {
  color: var(--text);
}

.variant-list {
  overflow-y: auto;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}

.variant-row:hover {
  border-color: var(--purple);
}

.variant-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.variant-row-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.variant-row-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.variant-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.variant-row-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Quick View modal ---------- */

/* Set on <body> while the Quick View dialog is open, to keep the page
   behind it from scrolling — see js/app.js openQuickView/closeQuickView. */
body.no-scroll {
  overflow: hidden;
}

.quick-view-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27, 27, 36, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.quick-view-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.quick-view-modal {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.quick-view-overlay.is-open .quick-view-modal {
  transform: translateY(0);
}

.quick-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.quick-view-head h3 {
  font-size: 1.15rem;
}

.quick-view-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 4px;
  flex-shrink: 0;
}

.quick-view-close:hover {
  color: var(--text);
}

.quick-view-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px;
}

.quick-view-preview {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.quick-view-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-preview svg {
  width: 38%;
  height: 38%;
}

.quick-view-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.quick-view-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.quick-view-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.quick-view-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.quick-view-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-top: 8px;
}

/* ---------- Website Request page ---------- */

.request-hero {
  padding: 56px 0 96px;
}

.request-hero-inner {
  align-items: start;
}

.request-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 8px;
}

.request-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.benefit-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 168, 142, 0.12);
  color: var(--teal);
  flex-shrink: 0;
}

.benefit-check svg {
  width: 14px;
  height: 14px;
}

/* Pure CSS/SVG mockup — no image assets exist in this project, and this
   avoids introducing stock photography. Reuses the same surface/border/
   shadow tokens as .floating-card elsewhere on the site. */
.request-visual {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 40px;
}

.mockup-browser {
  flex: 1;
  min-width: 0;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mockup-browser-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.mockup-browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.mockup-browser-bar span:nth-child(2) {
  background: var(--teal);
}

.mockup-browser-bar span:nth-child(3) {
  background: var(--purple);
}

.mockup-browser-body {
  padding: 20px;
}

.mockup-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  margin-bottom: 10px;
}

.mockup-line-title {
  width: 60%;
  height: 12px;
  background: var(--purple);
  opacity: 0.5;
}

.mockup-line-short {
  width: 40%;
  margin-bottom: 18px;
}

.mockup-blocks {
  display: flex;
  gap: 10px;
}

.mockup-block {
  flex: 1;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(91, 78, 255, 0.08);
  border: 1px solid var(--border);
}

.mockup-phone {
  width: 110px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 10px 10px 16px;
}

.mockup-phone-notch {
  width: 36px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--border);
  margin: 0 auto 12px;
}

.mockup-phone-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-phone-body .mockup-line-title {
  height: 10px;
}

.mockup-block-full {
  height: 64px;
  background: rgba(0, 168, 142, 0.1);
}

.request-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.request-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.request-form-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* `.request-form` sets its own `display: flex`, which — as an author-
   stylesheet rule — overrides the browser's default `[hidden] { display:
   none }` UA rule even though the JS sets the `hidden` attribute on submit
   success. Without this, the form (and its "Sending..." button) stayed
   visibly stacked above the success panel after a successful submission. */
.request-form[hidden] {
  display: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.req {
  color: var(--amber);
}

.field-error {
  display: none;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 2px;
}

.request-form label.has-error input,
.request-form label.has-error select,
.request-form label.has-error textarea {
  border-color: var(--amber);
}

.request-form label.has-error .field-error {
  display: block;
}

/* The consent checkbox's error message is a sibling, not nested inside its
   label (the label wraps only the checkbox + its own text) — same
   has-error toggle, adjacent-sibling selector instead of a descendant one. */
.checkbox-field.has-error + .field-error {
  display: block;
}

.checkbox-field.has-error {
  color: var(--amber);
}

.checkbox-field {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
  cursor: pointer;
}

.checkbox-field:focus-within {
  outline: none;
}

.checkbox-field input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* Honeypot: present in the DOM for bots to find and fill, invisible and
   unreachable for real visitors (off-screen, not display:none — some bots
   skip display:none fields, so this is the more effective hiding technique). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(224, 122, 46, 0.1);
  border: 1px solid rgba(224, 122, 46, 0.3);
  color: var(--amber);
  font-size: 0.88rem;
}

.request-submit {
  width: 100%;
}

.request-submit:disabled {
  opacity: 0.75;
  cursor: default;
  transform: none !important;
}

/* Success state — reuses the same visual language as success.html's
   confirmation card (shared here so website-request.html can use it too). */
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
}

.status-icon.is-success {
  background: rgba(0, 168, 142, 0.12);
  color: var(--teal);
}

.request-success {
  text-align: center;
  padding: 12px 0 4px;
}

.request-success h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.request-success p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
    margin-top: 24px;
  }

  .floating-card {
    width: 190px;
  }

  .card-1 { top: 0; right: 0; }
  .card-2 { top: 110px; right: 100px; }
  .card-3 { top: 220px; right: 0; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 28px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 28px;
  }

  .request-hero {
    padding: 32px 0 72px;
  }

  .request-form-card {
    padding: 28px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .mockup-phone {
    width: 90px;
  }

  .cart-panel {
    width: min(320px, calc(100vw - 48px));
  }

  .variant-row {
    flex-direction: column;
    align-items: stretch;
  }

  .variant-row-actions {
    justify-content: space-between;
  }

  .header-nav {
    display: none;
  }

  .mobile-request-link {
    display: flex;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-search {
    max-width: none;
  }

  .catalog-sort {
    justify-content: space-between;
  }

  .quick-view-content {
    grid-template-columns: 1fr;
  }

  .quick-view-preview {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .logo-mark {
    width: 22px;
    height: 22px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle {
    width: 42px;
    height: 24px;
  }

  .theme-toggle-thumb {
    width: 18px;
    height: 18px;
  }

  .theme-toggle[aria-checked="true"] .theme-toggle-thumb {
    transform: translateX(18px);
  }

  .theme-toggle-icon {
    width: 11px;
    height: 11px;
  }

  .theme-toggle-icon-sun {
    left: 5px;
  }

  .theme-toggle-icon-moon {
    right: 5px;
  }

  .mobile-request-link {
    width: 32px;
    height: 32px;
  }

  .mobile-request-link svg {
    width: 15px;
    height: 15px;
  }

  /* Room for the logo + appearance switch + cart at narrow phone widths
     gets tight with the cart button's full "Cart" label — drop the label
     and keep the icon + count, still an unambiguous cart affordance. */
  .cart-btn {
    gap: 6px;
    padding: 8px 10px;
  }

  .cart-btn span:first-of-type {
    display: none;
  }

  .request-form-card {
    padding: 22px;
  }

  .request-visual {
    gap: 12px;
  }

  .mockup-phone {
    width: 76px;
    padding: 8px 8px 12px;
  }
}
