@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep: #07080a;
  --bg-surface: #0e1014;
  --bg-card: rgba(16, 18, 22, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.28);
  --border-gold-bright: rgba(212, 175, 55, 0.7);
  
  --gold-primary: #D4AF37;
  --gold-light: #FDE087;
  --gold-dark: #8C5D0D;
  --gold-gradient: linear-gradient(135deg, #FFF1B8 0%, #D4AF37 50%, #8C5D0D 100%);
  --gold-gradient-glow: linear-gradient(135deg, #FFFFFF 0%, #F5D77F 40%, #D4AF37 75%, #8C5D0D 100%);
  
  --text-main: #F2F4F7;
  --text-muted: #848B99;
  
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.035) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(212, 175, 55, 0.03) 0%, transparent 45%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
  width: 100%;
}

.text-gold {
  color: var(--gold-primary);
}

.text-gold-gradient {
  background: var(--gold-gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ---------------------------------
   HEADER / CABECERO LIMPIO & ALINEADO
-----------------------------------*/
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  background: rgba(7, 8, 10, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-icon::before {
  content: '◆';
  color: var(--gold-primary);
  font-size: 9px;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  letter-spacing: 0.14em;
}

.logo-text span {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition);
  padding: 0.4rem 0;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-primary);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.btn-nav-atelier {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-nav-atelier:hover {
  background: var(--gold-gradient);
  color: #08090a;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.btn-icon-cart {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
}

.btn-icon-cart:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold-primary);
  color: #000;
  font-size: 0.62rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------
   HERO SECTION
-----------------------------------*/
.hero-section {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.14;
  margin-bottom: 1.4rem;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.2rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.btn-primary-gold {
  background: var(--gold-gradient);
  color: #08090a;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--text-main);
  padding: 0.85rem 1.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary-outline:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.6rem;
}

.stat-item h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.15rem;
}

.stat-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Tarjeta Hero con Foto Real */
.hero-card-featured {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.hero-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.hero-card-body {
  padding: 1.6rem;
}

.card-badge-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  background: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(8px);
}

/* ---------------------------------
   SECCIÓN PERSONALIZADOR 3D COMPACTO
-----------------------------------*/
.configurator-section {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0) 0%, rgba(14, 16, 21, 0.85) 50%, rgba(7, 8, 10, 0) 100%);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.9rem;
  font-weight: 300;
}

/* WORKSPACE SPLIT (CANVAS IZQUIERDA / DESPLEGABLES DERECHA) */
.atelier-workspace {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 600px;
}

/* PANE IZQUIERDO: ESCENARIO 3D INTERACTIVO */
.stage-pane {
  background: radial-gradient(circle at center, #181b22 0%, #0a0b0e 90%);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-right: 1px solid var(--border-subtle);
  user-select: none;
}

.stage-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.interaction-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ecc71;
}

/* ICONOS REFINADOS DEL ESCENARIO */
.stage-ctrl-group {
  display: flex;
  gap: 0.4rem;
}

.btn-icon-stage {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-stage:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.btn-icon-stage.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.canvas-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 360px;
  cursor: grab;
}

.canvas-wrapper:active {
  cursor: grabbing;
}

#jewelryCanvas {
  width: 100%;
  max-width: 660px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.95));
}

/* BANDEJA DE DIJES RÁPIDOS */
.charm-dock {
  background: rgba(10, 11, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
  max-width: 100%;
}

.charm-dock::-webkit-scrollbar {
  display: none;
}

.btn-charm-chip {
  flex-shrink: 0;
  white-space: nowrap;
}

.dock-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
}

.dock-items {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  flex: 1;
}

.dock-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  font-size: 0.7rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  white-space: nowrap;
}

.dock-btn:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.dock-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* PANE DERECHO: CONTROLES COMPACTOS CON DESPLEGABLES */
.controls-pane {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0c0e12;
}

.controls-inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.compact-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.compact-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.compact-label strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* DESPLEGABLES DE LUJO (SELECTS PERSONALIZADOS) */
.luxury-select {
  width: 100%;
  background: #14171d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  padding: 0.65rem 2.2rem 0.65rem 0.9rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: var(--transition);
}

.luxury-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.luxury-select option {
  background: #101217;
  color: var(--text-main);
  padding: 0.5rem;
}

/* GRID DE SLIDERS COMPACTOS */
.inline-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.8rem 1rem;
}

.range-input {
  width: 100%;
  accent-color: var(--gold-primary);
  height: 4px;
  cursor: pointer;
}

/* CAMPO DE GRABADO LÁSER */
.engraving-box-compact {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 0.8rem 1rem;
}

.engraving-input-sleek {
  width: 100%;
  background: #08090b;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  padding: 0.55rem 0.85rem;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  outline: none;
}

.engraving-input-sleek:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

/* FOOTER DE CONTROL Y TELEMETRÍA */
.controls-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
  margin-top: 1.2rem;
}

.specs-strip-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.spec-cell-compact {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.4rem;
}

.spec-cell-compact span {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.spec-cell-compact strong {
  font-size: 0.9rem;
  color: var(--gold-light);
}

.price-row-compact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.price-row-compact span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.price-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
}

.btn-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn-add-atelier {
  background: var(--gold-gradient);
  color: #08090a;
  border: none;
  padding: 0.8rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-atelier:hover {
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.btn-wa-atelier {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-wa-atelier:hover {
  background: #1eb855;
  transform: translateY(-2px);
}

/* ---------------------------------
   CATÁLOGO DE PRODUCTOS (FOTOS REALES)
-----------------------------------*/
.catalog-section {
  padding: 100px 0;
}

.catalog-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.8rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.4rem 0.5rem;
  max-width: 100%;
}

.catalog-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: rgba(18, 20, 26, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.55rem 1.3rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--border-gold);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #08090a;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.28);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.card-img-wrap {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.product-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.product-card:hover .product-real-img {
  transform: scale(1.06);
}

.product-tag-float {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(8, 9, 11, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.card-details {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.product-specs-pill {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.spec-badge {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
  margin-top: 0.6rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
}

.btn-card-add {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-add:hover {
  background: var(--gold-gradient);
  color: #000;
}

/* ---------------------------------
   TALLER & MODIFICACIONES
-----------------------------------*/
.workshop-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.workshop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2.2rem;
  transition: var(--transition);
}

.workshop-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.workshop-card h3 {
  font-size: 1.15rem;
  margin: 1rem 0 0.6rem;
}

.workshop-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------------------------------
   CARRITO FLOTANTE (DRAWER)
-----------------------------------*/
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background: #0b0d10;
  border-left: 1px solid var(--border-gold);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1.3rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 1.1rem;
  color: var(--gold-light);
}

.btn-close-cart {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-items-list {
  flex: 1;
  padding: 1.3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.8rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.cart-item-info p {
  font-size: 0.68rem;
  color: var(--gold-primary);
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
}

.btn-item-del {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
}

.cart-footer {
  padding: 1.3rem;
  border-top: 1px solid var(--border-subtle);
  background: #08090a;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cart-total-row span {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cart-total-row strong {
  font-size: 1.4rem;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
}

.btn-checkout-wa {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ---------------------------------
   FOOTER
-----------------------------------*/
footer {
  border-top: 1px solid var(--border-subtle);
  background: #050608;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer-col p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.8rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---------------------------------
   RESPONSIVE DESIGN (PC & MOBILE)
-----------------------------------*/
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .atelier-workspace {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 2.2rem;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .atelier-workspace {
    grid-template-columns: 1fr;
  }
  .stage-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workshop-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .inline-sliders-grid {
    grid-template-columns: 1fr;
  }
  .btn-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  header { height: 60px; }
  .nav-container { padding: 0 1rem; }
  .logo-text h1 { font-size: 1.05rem; }
  .logo-text span { font-size: 0.5rem; }
  
  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-section {
    padding: 100px 0 50px;
  }
  .hero-title { 
    font-size: 1.75rem; 
    line-height: 1.2; 
  }
  .hero-desc { 
    font-size: 0.85rem; 
    padding: 0 0.5rem; 
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .btn-primary-gold, .btn-secondary-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-stats {
    gap: 1rem;
    justify-content: space-around;
    width: 100%;
  }
  .stat-item h3 {
    font-size: 1.15rem;
  }
  .stat-item p {
    font-size: 0.62rem;
  }
  
  .section-header {
    margin-bottom: 1.8rem;
  }
  .section-tag {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }
  .section-title {
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: 0.04em;
    word-break: normal;
  }
  .section-subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0 0.4rem;
  }

  .catalog-section {
    padding: 50px 0;
  }
  .catalog-filters { 
    justify-content: flex-start; 
    padding: 0.4rem 1rem; 
  }

  /* WORKSPACE Y ESCENARIO 3D ADAPTADO 100% A MÓVIL */
  .configurator-section {
    padding: 50px 0;
  }
  .atelier-workspace {
    grid-template-columns: 100%;
    min-height: auto;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .atelier-workspace > * {
    min-width: 0;
    max-width: 100%;
  }

  .stage-pane { 
    padding: 0.85rem 0.65rem; 
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .stage-top-bar {
    width: 100%;
    gap: 0.4rem;
  }
  .interaction-hint {
    font-size: 0.6rem;
    padding: 0.3rem 0.55rem;
    letter-spacing: 0.05em;
    max-width: 100%;
    white-space: normal;
  }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }

  .canvas-wrapper { 
    min-height: 275px; 
    height: 285px;
    max-height: 300px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #jewelryCanvas {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: block;
  }

  .charm-dock {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.6rem;
    gap: 0.4rem;
    box-sizing: border-box;
    min-width: 0;
  }
  .dock-label {
    font-size: 0.6rem;
  }
  .dock-items {
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dock-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
    flex-shrink: 0;
  }

  .controls-pane { 
    padding: 1.25rem 1rem; 
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .controls-inner {
    gap: 0.9rem;
    width: 100%;
  }
  .compact-form-row {
    width: 100%;
    min-width: 0;
  }
  .luxury-select {
    font-size: 0.78rem;
    padding: 0.55rem 1.8rem 0.55rem 0.75rem;
    width: 100%;
  }
  .inline-sliders-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  .engraving-box-compact {
    padding: 0.65rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  .engraving-input-sleek {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }

  .controls-footer {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
  }
  .specs-strip-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    width: 100%;
    margin-bottom: 0.8rem;
  }
  .spec-cell-compact {
    padding: 0.35rem 0.2rem;
  }
  .spec-cell-compact span {
    font-size: 0.55rem;
  }
  .spec-cell-compact strong {
    font-size: 0.78rem;
  }
  .price-row-compact {
    margin-bottom: 0.8rem;
  }
  .price-val {
    font-size: 1.35rem;
  }
  .btn-actions-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    width: 100%;
  }
  .btn-add-atelier, .btn-wa-atelier {
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    width: 100%;
  }

  /* SECCIÓN TALLER / MODIFICACIONES EN MÓVIL */
  .workshop-section {
    padding: 50px 0;
  }
  .workshop-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }
  .workshop-card {
    padding: 1.4rem 1.1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .workshop-card h3 {
    font-size: 1.05rem;
    margin: 0.6rem 0 0.4rem;
  }
  .workshop-card p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .cart-drawer { width: 100vw; max-width: 100vw; }
}
