/* =========================================================================
   FACETA — Impresión 3D bajo demanda
   Paleta: pastel geométrica · soft shadows · contemporary minimal
   ========================================================================= */

:root {
  /* Colores base */
  --c-bg: #F7F4EE;
  --c-bg-alt: #FBF9F4;
  --c-ink: #1F1F24;
  --c-ink-soft: #5A5A63;
  --c-ink-mute: #9A9AA3;
  --c-line: rgba(31, 31, 36, 0.08);
  --c-line-strong: rgba(31, 31, 36, 0.16);

  /* Pasteles */
  --c-peach: #F4C2C2;
  --c-peach-deep: #E89A9A;
  --c-mint: #BCE3CB;
  --c-mint-deep: #87C8A2;
  --c-lavender: #B8C9F1;
  --c-lavender-deep: #8BA3E1;
  --c-sky: #C6E4EE;
  --c-sand: #F8DEB1;

  /* Acentos */
  --c-wa: #25D366;
  --c-wa-dark: #1FA855;

  /* Tipo */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Manrope', serif;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(31, 31, 36, 0.04), 0 0 0 1px rgba(31, 31, 36, 0.04);
  --shadow-sm: 0 4px 12px -4px rgba(31, 31, 36, 0.08), 0 1px 2px rgba(31, 31, 36, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(31, 31, 36, 0.12), 0 2px 4px rgba(31, 31, 36, 0.04);
  --shadow-lg: 0 32px 64px -16px rgba(31, 31, 36, 0.16), 0 4px 8px rgba(31, 31, 36, 0.04);

  /* Radios */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Reset suave */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, svg, canvas { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

/* =========================================================================
   FONDO DECORATIVO — formas flotantes
   ========================================================================= */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 20s ease-in-out infinite;
}
.bg-shape-1 {
  width: 480px; height: 480px;
  background: var(--c-peach);
  top: -120px; right: -120px;
  animation-delay: 0s;
}
.bg-shape-2 {
  width: 380px; height: 380px;
  background: var(--c-mint);
  top: 40%; left: -100px;
  animation-delay: -7s;
}
.bg-shape-3 {
  width: 420px; height: 420px;
  background: var(--c-lavender);
  bottom: -120px; right: 20%;
  animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 40px) scale(0.97); }
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(247, 244, 238, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--c-line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-mark { display: inline-flex; }
.logo-mark svg { transition: transform 0.6s var(--ease-out); }
.logo:hover .logo-mark svg { transform: rotate(60deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--c-ink); background: rgba(31, 31, 36, 0.04); }
.nav-links a.nav-cta {
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 10px 20px;
}
.nav-links a.nav-cta:hover { background: #000; color: var(--c-bg); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* =========================================================================
   BOTONES
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

.btn-primary { background: var(--c-ink); color: var(--c-bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #000; box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  box-shadow: inset 0 0 0 1.5px var(--c-line-strong);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink); }

.btn-whatsapp {
  width: 100%;
  background: var(--c-wa);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover:not(:disabled) {
  background: var(--c-wa-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-whatsapp:disabled {
  background: rgba(31, 31, 36, 0.08);
  color: var(--c-ink-mute);
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================================================================
   SECCIONES — espaciado base
   ========================================================================= */
main { position: relative; z-index: 1; }
section { padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 56px); position: relative; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.section-head p {
  color: var(--c-ink-soft);
  font-size: 1.05rem;
  margin-top: 18px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-mint-deep);
  box-shadow: 0 0 0 4px rgba(135, 200, 162, 0.25);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(135, 200, 162, 0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(135, 200, 162, 0.05); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(120deg, var(--c-peach-deep), var(--c-lavender-deep) 60%, var(--c-mint-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--c-ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-size: 0.82rem;
  color: var(--c-ink-mute);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
  width: 100%;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle at 50% 60%, rgba(244, 194, 194, 0.35), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

/* =========================================================================
   COTIZADOR
   ========================================================================= */
.quoter {
  background: var(--c-bg-alt);
  border-radius: var(--r-xl);
  margin: 0 clamp(20px, 5vw, 56px);
  padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--c-line);
}
.quoter-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 920px) {
  .quoter-grid { grid-template-columns: 1fr; }
}

/* Viewer */
.viewer-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-bg) 0%, #FFFFFF 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 920px) {
  .viewer-card { aspect-ratio: 1 / 1; }
}
.viewer {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.viewer-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 244, 238, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.4s var(--ease-out);
}
.viewer-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.viewer-overlay.is-dragging {
  background: rgba(184, 201, 241, 0.4);
}
.viewer-overlay.is-dragging .drop-content { transform: scale(1.04); }

.drop-content {
  text-align: center;
  padding: 32px;
  border: 2px dashed var(--c-line-strong);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
  max-width: 360px;
}
.viewer-overlay.is-dragging .drop-content {
  border-color: var(--c-lavender-deep);
}
.drop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-lavender);
  color: var(--c-ink);
  animation: float-up 3s ease-in-out infinite;
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.drop-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.drop-or {
  font-size: 0.82rem;
  color: var(--c-ink-mute);
  margin: 12px 0;
}
.drop-hint {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--c-ink-mute);
}

.viewer-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 4px;
  backdrop-filter: blur(10px);
}
.tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-soft);
  transition: background 0.2s, color 0.2s;
}
.tool-btn:hover { background: rgba(31, 31, 36, 0.06); color: var(--c-ink); }
.tool-btn.is-active { background: var(--c-ink); color: var(--c-bg); }

.viewer-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 12px;
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
}
.viewer-info > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.viewer-info > div + div {
  border-left: 1px solid var(--c-line);
  padding-left: 12px;
}
.viewer-info span { color: var(--c-ink-mute); font-size: 0.74rem; }
.viewer-info strong { font-weight: 600; font-size: 0.92rem; }

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.control-block { }
.control-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-ink-soft);
  margin-bottom: 12px;
}
.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.control-label-row .control-label { margin-bottom: 0; }
.control-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Material cards */
.material-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.material-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 14px 12px;
  border-radius: var(--r-md);
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  text-align: left;
  transition: all 0.2s var(--ease-out);
  position: relative;
}
.material-card:hover {
  border-color: var(--c-line-strong);
  transform: translateY(-2px);
}
.material-card.is-active {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}
.material-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.material-desc {
  font-size: 0.72rem;
  color: var(--c-ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.material-card.is-active .material-desc { color: rgba(255, 255, 255, 0.6); }
.material-rate {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--c-line);
  border-radius: var(--r-pill);
  outline: none;
  margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--c-bg);
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease-out);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(0.95); }
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--c-bg);
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  cursor: grab;
  box-shadow: var(--shadow-sm);
}
.slider-track-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--c-ink-mute);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* Color palette */
.color-palette {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.color-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chip-c);
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--c-line) inset, var(--shadow-xs);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s;
  position: relative;
}
.color-chip:hover { transform: scale(1.08); }
.color-chip.is-active {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 2px var(--c-bg) inset, 0 0 0 4px var(--c-ink);
  transform: scale(1.05);
}

/* Price card */
.price-card {
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--c-lavender) 0%, transparent 60%);
  opacity: 0.18;
  pointer-events: none;
}
.price-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  position: relative;
}
.price-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-meta span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.price-meta strong {
  font-size: 0.98rem;
  font-weight: 600;
}
.price-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* Desglose de precio: unidad × cantidad − descuento */
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  animation: pb-fade 0.35s var(--ease-out);
}
.pb-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.pb-row span:first-child {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.pb-row span:last-child {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.pb-discount span:last-child {
  color: var(--c-mint);
}
@keyframes pb-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  position: relative;
}
.price-currency {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}
.price-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-unit {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
  letter-spacing: 0.05em;
}
.price-compare {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
.alt-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* =========================================================================
   MATERIALES
   ========================================================================= */
.materials { padding-top: clamp(80px, 10vw, 140px); }
.materials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .materials-grid { grid-template-columns: 1fr; } }

.mat-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.mat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.mat-shape {
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
}
.mat-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.mat-tag {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-ink-mute);
}
.mat-body {
  font-size: 0.96rem;
  color: var(--c-ink-soft);
  line-height: 1.6;
}
.mat-uses {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--c-line);
  padding-top: 16px;
  margin-top: auto;
}
.mat-uses li {
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mat-uses li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mat-c);
  flex-shrink: 0;
}
.mat-rate {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 4px;
}

/* =========================================================================
   CATÁLOGO
   ========================================================================= */
.catalog { padding-bottom: clamp(80px, 10vw, 140px); }
.catalog-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.cat-item {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  cursor: pointer;
}
.cat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--cat-c1, var(--c-bg)) 0%, var(--cat-c2, #fff) 100%);
  position: relative;
  overflow: hidden;
}
.cat-thumb canvas { width: 100% !important; height: 100% !important; display: block; }
.cat-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cat-desc {
  font-size: 0.85rem;
  color: var(--c-ink-mute);
}
.cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}
.cat-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}
.cat-price small {
  font-family: var(--font-sans);
  color: var(--c-ink-mute);
  font-size: 0.7rem;
  font-weight: 500;
  margin-left: 2px;
}
.cat-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cat-cta::after { content: '→'; transition: transform 0.2s var(--ease-out); }
.cat-item:hover .cat-cta::after { transform: translateX(3px); }

/* =========================================================================
   CONTACTO
   ========================================================================= */
.contact {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.contact-inner {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) {
  .contact-inner { grid-template-columns: 1fr; text-align: center; }
}
.contact-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--c-mint-deep) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.contact .eyebrow { color: rgba(255, 255, 255, 0.5); }
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 420px;
}
@media (max-width: 880px) { .contact p { margin-left: auto; margin-right: auto; } }
.contact-tel {
  margin-top: 16px;
  font-size: 0.88rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}
.contact-visual {
  aspect-ratio: 1;
  position: relative;
}
.contact-canvas { position: absolute; inset: 0; }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
  padding: 40px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--c-line);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
}
.footer-tag {
  font-size: 0.88rem;
  color: var(--c-ink-soft);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--c-ink-mute);
}

/* =========================================================================
   TOAST
   ========================================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================================
   PROCESO — Cómo funciona (4 pasos)
   ========================================================================= */
.process { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(40px, 6vw, 80px); }
.process-steps {
  max-width: 1240px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 920px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--step-c, var(--c-peach)) 0%, transparent 65%);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step:hover::before {
  opacity: 0.6;
  transform: scale(1.1);
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-ink-mute);
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}
.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-ink);
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.step p {
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* =========================================================================
   HERO — pista de NFC (debajo de actions)
   ========================================================================= */
.hero-nfc-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 36px;
  padding: 8px 14px 8px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--c-line);
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s var(--ease-out);
}
.hero-nfc-hint:hover {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
  transform: translateX(2px);
}
.hero-nfc-hint:hover .hero-nfc-spark {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.hero-nfc-spark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-mint), var(--c-lavender));
  color: var(--c-ink);
  flex-shrink: 0;
}
.hero-nfc-hint strong { color: var(--c-ink); font-weight: 600; }
.hero-nfc-hint:hover strong { color: #fff; }

/* =========================================================================
   COTIZADOR — botón "?" para abrir modal de Foto→STL
   ========================================================================= */
.drop-help {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-lavender);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  z-index: 4;
  box-shadow: var(--shadow-sm);
  border: 0;
  padding: 0;
}
.drop-help:hover {
  background: var(--c-ink);
  color: var(--c-bg);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}
.drop-help::after {
  content: '¿Solo tienes una foto?';
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  box-shadow: var(--shadow-md);
}
.drop-help:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

/* =========================================================================
   UPSELL — Producto Conectado dentro de price-card
   ========================================================================= */
.upsell {
  position: relative;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(188, 227, 203, 0.18), rgba(184, 201, 241, 0.18) 50%, rgba(244, 194, 194, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: border-color 0.3s;
}
.upsell.is-active {
  border-color: rgba(188, 227, 203, 0.6);
  box-shadow: 0 0 0 3px rgba(188, 227, 203, 0.15);
}
.upsell.is-pulse {
  animation: upsellPulse 0.9s var(--ease-out) 1;
}
@keyframes upsellPulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(188, 227, 203, 0.45); }
  50%  { transform: scale(1.015); box-shadow: 0 0 0 10px rgba(188, 227, 203, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(188, 227, 203, 0); }
}
.upsell-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  color: var(--c-bg);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.upsell-toggle:hover { background: rgba(255, 255, 255, 0.04); }
.upsell-spark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-mint), var(--c-lavender));
  color: var(--c-ink);
}
.upsell-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.upsell-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-bg);
}
.upsell-text small {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}
.upsell-chev {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.upsell-toggle[aria-expanded="true"] .upsell-chev { transform: rotate(180deg); }

.upsell-panel {
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: upsellOpen 0.4s var(--ease-out);
}
.upsell-panel[hidden] { display: none; }
@keyframes upsellOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.upsell-lede {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}
.upsell-trio {
  display: flex;
  align-items: stretch;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-sm);
  padding: 10px 6px;
}
.upsell-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
  text-align: center;
  min-width: 0;
}
.upsell-step-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--us-c, var(--c-bg));
  margin-bottom: 4px;
}
.upsell-step strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-bg);
}
.upsell-step small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}
.upsell-arrow {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  align-self: center;
}
.upsell-uses { display: flex; flex-direction: column; gap: 6px; }
.upsell-uses small {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}
.upsell-uses ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upsell-uses li {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.upsell-uses li::before {
  content: '→';
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.upsell-check {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.2s;
  align-items: flex-start;
}
.upsell-check:hover { background: rgba(255, 255, 255, 0.1); }
.upsell-check input { position: absolute; opacity: 0; pointer-events: none; }
.upsell-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}
.upsell-check-box::after {
  content: '✓';
  color: var(--c-ink);
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s var(--ease-out);
}
.upsell-check input:checked ~ .upsell-check-box {
  background: linear-gradient(135deg, var(--c-mint), var(--c-lavender));
  border-color: transparent;
}
.upsell-check input:checked ~ .upsell-check-box::after {
  opacity: 1;
  transform: scale(1);
}
.upsell-check-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.upsell-check-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-bg);
}
.upsell-check-text small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================================
   MODAL & DRAWER (dialog)
   ========================================================================= */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  margin: 0;
}
dialog::backdrop {
  background: rgba(31, 31, 36, 0.5);
  backdrop-filter: blur(6px);
  animation: backdropIn 0.25s var(--ease-out);
}
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }

dialog.modal,
dialog.drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
}
dialog.modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog.drawer[open] {
  display: flex;
  justify-content: flex-end;
}
dialog.modal:not([open]),
dialog.drawer:not([open]) {
  display: none;
}
.modal-card {
  background: var(--c-bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  max-width: 920px;
  width: calc(100vw - 32px);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 8px;
}
.modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-top: 6px;
}
.modal-head h3 em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(120deg, var(--c-peach-deep), var(--c-lavender-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-alt);
  color: var(--c-ink-soft);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--c-ink); color: var(--c-bg); }
.modal-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px 28px 28px;
  overflow-y: auto;
}
@media (max-width: 760px) { .modal-body { grid-template-columns: 1fr; } }

.mini-path {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-path-feature {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}
.mini-path-feature p { color: rgba(255, 255, 255, 0.7); }
.mini-path-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-path-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--p-c, var(--c-bg));
  color: rgba(0, 0, 0, 0.7);
}
.mini-path-feature .mini-path-icon { color: rgba(255, 255, 255, 0.9); }
.mini-path-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mini-path-head small {
  display: block;
  font-size: 0.74rem;
  color: var(--c-ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mini-path-feature .mini-path-head small { color: rgba(255, 255, 255, 0.5); }
.mini-path p {
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  line-height: 1.5;
}
.mini-path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.mini-path-links a {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-ink);
  transition: all 0.2s;
}
.mini-path-links a:hover {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}
.mini-path .btn { margin-top: auto; align-self: flex-start; }

/* DRAWER (FAQ) ============================================================ */
.drawer-card {
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  animation: drawerIn 0.35s var(--ease-out);
}
@keyframes drawerIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.drawer-head {
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--c-line);
}
.drawer-head h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-foot {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.drawer-foot p { font-size: 0.88rem; color: var(--c-ink-soft); }

/* FAB ===================================================================== */
.fab-help {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-bg);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, padding 0.2s;
}
.fab-help:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 38px rgba(0,0,0,0.2);
}
.fab-help-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-mint), var(--c-lavender));
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .fab-help { bottom: 16px; right: 16px; }
  .fab-help-label { display: none; }
  .fab-help { padding: 10px; }
}

/* FAQ ITEMS (compartido por drawer) ======================================= */
.faq-item {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-ink); }
.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  position: relative;
  transition: transform 0.3s var(--ease-out), background 0.2s;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--c-ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--c-ink); }
.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after { background: var(--c-bg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(180deg); }
.faq-body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--c-line);
  padding-top: 18px;
}
.faq-body p {
  font-size: 0.96rem;
  color: var(--c-ink-soft);
  line-height: 1.65;
}
.faq-body em { color: var(--c-ink); font-style: italic; }

/* =========================================================================
   RESPONSIVE FINE-TUNE
   ========================================================================= */
@media (max-width: 600px) {
  .hero { padding-top: 24px; }
  .hero-stats strong { font-size: 1.3rem; }
  .quoter { margin: 0 12px; padding: 36px 20px; }
  .price-card { padding: 20px; }
  .material-cards { gap: 6px; }
  .material-card { padding: 12px 10px; }
  .material-name { font-size: 1rem; }
  .material-desc { font-size: 0.65rem; }
  .material-rate { font-size: 0.78rem; }
  .step { padding: 22px 20px; }
  .nfc-inner { padding: 32px 22px; }
  .nfc-card { padding: 22px 20px; }
  .path-card { padding: 22px 20px; }
  .faq-item summary { padding: 16px 18px; font-size: 1rem; }
  .faq-body { padding: 14px 18px 18px; }
}

/* =========================================================================
   STEPPER DE CANTIDAD + TIERS DE DESCUENTO POR VOLUMEN
   ========================================================================= */
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  overflow: hidden;
  height: 36px;
  box-shadow: var(--shadow-xs);
}
.qty-btn {
  width: 34px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.qty-btn:hover { background: var(--c-line); color: var(--c-ink); }
.qty-btn:active { background: var(--c-line-strong); transform: scale(0.96); }
.qty-stepper input[type="number"] {
  width: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-ink);
  outline: 0;
  -moz-appearance: textfield;
}
.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-stepper input:focus-visible {
  background: rgba(184, 201, 241, 0.15);
}

/* Escalera de tiers — botones tipo chip con separador horizontal */
.vol-tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 14px;
  position: relative;
}
.vol-tiers::before {
  /* línea base que une los tiers (efecto progress bar) */
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  background: var(--c-line);
  border-radius: 2px;
  z-index: 0;
  transform: translateY(-50%);
}
.vol-tier {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font-sans);
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}
.vol-tier strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.vol-tier span {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--c-ink-mute);
  letter-spacing: 0.04em;
}
.vol-tier:hover {
  border-color: var(--c-line-strong);
  transform: translateY(-1px);
}
.vol-tier.is-reached {
  background: var(--c-mint);
  border-color: transparent;
}
.vol-tier.is-reached strong { color: var(--c-ink); }
.vol-tier.is-reached span   { color: var(--c-ink-soft); }
.vol-tier.is-active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  box-shadow: 0 4px 14px -4px rgba(31, 31, 36, 0.35);
  transform: translateY(-2px) scale(1.02);
}
.vol-tier.is-active strong { color: var(--c-bg); }
.vol-tier.is-active span   { color: rgba(255, 255, 255, 0.7); }

.vol-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--c-ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  transition: color 0.2s;
}
.vol-hint::before {
  content: '↑';
  font-weight: 700;
  color: var(--c-mint-deep);
  font-size: 0.95rem;
  line-height: 1;
}
.vol-hint.is-celebrate {
  color: var(--c-mint-deep);
  font-weight: 600;
}
.vol-hint.is-celebrate::before {
  content: '✓';
}

/* =========================================================================
   CATÁLOGO — tarjetas con PNG animado (real products)
   ========================================================================= */
.cat-thumb-img {
  /* Misma base degradada, pero sin canvas Three.js */
  position: relative;
  perspective: 800px;
  transform-style: preserve-3d;
}
.cat-thumb-img .cat-img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 14px rgba(31, 31, 36, 0.18));
  animation: cat-img-float 5.5s ease-in-out infinite;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.cat-thumb-img .cat-img-shadow {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: 55%;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(31, 31, 36, 0.28) 0%, transparent 65%);
  filter: blur(4px);
  transform: translateX(-50%);
  animation: cat-shadow-pulse 5.5s ease-in-out infinite;
  pointer-events: none;
}
.cat-item:hover .cat-thumb-img .cat-img {
  animation-play-state: paused;
  transform:
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateY(-6px)
    scale(1.04);
}
.cat-item:hover .cat-thumb-img .cat-img-shadow {
  animation-play-state: paused;
  width: 50%;
  opacity: 0.85;
}

@keyframes cat-img-float {
  0%, 100% {
    transform: translateY(0) rotate(-1deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(1deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  }
}
@keyframes cat-shadow-pulse {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.9; }
  50%      { transform: translateX(-50%) scale(0.78); opacity: 0.55; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.1ms !important;
  }
  .bg-shape { animation: none; }
  .cat-thumb-img .cat-img { animation: none; }
  .cat-thumb-img .cat-img-shadow { animation: none; }
}
