:root {
  --bg-dark: #17110d;
  --bg-dark-2: #1f1712;
  --bg-card: #241b15;
  --gold: #c9974a;
  --gold-light: #e0b573;
  --gold-dark: #9c7333;
  --cream: #f5ede1;
  --text-muted: #b8ada0;
  --border-soft: rgba(201, 151, 74, 0.25);
  --radius: 10px;
  --font: 'Segoe UI', Arial, sans-serif;
  --oferta: #e63946;
  --bg-grad-1: #3b2810;
  --bg-grad-2: #120c07;
  --bg-grad-3: #2f1f0f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 900px 500px at 12% 8%, rgba(255,205,140,.1) 0%, transparent 60%),
    radial-gradient(ellipse 700px 900px at 90% 15%, rgba(0,0,0,.5) 0%, transparent 55%),
    radial-gradient(ellipse 1000px 700px at 25% 95%, rgba(255,190,120,.09) 0%, transparent 60%),
    radial-gradient(ellipse 800px 600px at 85% 85%, rgba(0,0,0,.45) 0%, transparent 55%),
    repeating-linear-gradient(125deg, rgba(0,0,0,.09) 0px, rgba(0,0,0,.09) 2px, transparent 2px, transparent 5px),
    repeating-linear-gradient(35deg, rgba(255,205,140,.035) 0px, rgba(255,205,140,.035) 1px, transparent 1px, transparent 4px),
    linear-gradient(160deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 45%, var(--bg-grad-3) 100%);
  background-attachment: fixed;
  color: var(--cream);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-gold { background: var(--gold); color: #1a1410; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 17, 13, 0.95);
  border-bottom: 1px solid var(--border-soft);
}
.header-shimmer {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.header-shimmer::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -25%;
  width: 25%;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  animation: header-shimmer-move 3.5s linear infinite;
}
@keyframes header-shimmer-move {
  0% { left: -25%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .header-shimmer::before { animation: none; }
}

/* Decoración de temporada (Diciembre, Amor y Amistad, Día de la Madre/Padre/Niño) */
.franja-luces {
  display: flex; justify-content: space-around; align-items: center;
  padding: 6px 12px; background: rgba(0,0,0,.4); border-bottom: 1px solid rgba(255,255,255,.08);
}
.franja-luces span {
  width: 9px; height: 9px; border-radius: 50%;
  box-shadow: 0 0 6px 1px currentColor;
  animation: parpadeo-luces 1.8s ease-in-out infinite;
}
@keyframes parpadeo-luces { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.particulas-temporada { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.particulas-temporada span {
  position: absolute; opacity: .85; text-shadow: 0 0 4px rgba(255,255,255,.5);
  animation-timing-function: linear; animation-iteration-count: infinite;
}
.particulas-temporada.cae span { top: -10%; animation-name: caer-particula; }
.particulas-temporada.flota span { bottom: -10%; animation-name: flotar-particula; }
@keyframes caer-particula { to { transform: translateY(115vh) translateX(24px); } }
@keyframes flotar-particula { to { transform: translateY(-115vh) translateX(24px); } }
@media (prefers-reduced-motion: reduce) {
  .franja-luces span, .particulas-temporada { animation: none; }
  .particulas-temporada { display: none; }
  .ofertas-fire, .nav-ofertas.ofertas-activas, .oferta-ribbon { animation: none; }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.logo img { height: 68px; width: 68px; object-fit: contain; flex-shrink: 0; }
.logo .name { line-height: 1.1; }
.logo .name b { display: block; color: var(--gold); font-size: 17px; letter-spacing: .5px; }
.logo .name span { display: block; font-size: 10px; color: var(--text-muted); letter-spacing: 1px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--cream); }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav .dropdown { position: relative; padding-bottom: 14px; margin-bottom: -14px; }
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  min-width: 200px;
  padding: 8px;
}
.main-nav .dropdown:hover .dropdown-menu { display: block; }
.main-nav .dropdown-menu a { display: block; padding: 8px 10px; border-radius: 6px; }
.main-nav .dropdown-menu a:hover { background: rgba(201,151,74,.12); }

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

.header-search { position: relative; }
.header-search input {
  width: 190px; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--border-soft);
  background: #1c1510; color: var(--cream); font-family: var(--font); font-size: 13px;
}
.header-search input:focus { outline: none; border-color: var(--gold); }
.header-search-results {
  display: none;
  position: absolute; top: 46px; right: 0; width: 300px; max-height: 380px; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 10px; padding: 6px; z-index: 60;
}
.header-search-results.show { display: block; }
.header-search-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; text-align: left;
}
.header-search-item:hover { background: rgba(201,151,74,.12); }
.header-search-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #100c09; }
.header-search-item .info h4 { font-size: 13px; margin: 0 0 2px; font-weight: 600; }
.header-search-item .info .meta { font-size: 11px; color: var(--text-muted); }
.header-search-item .info .price { font-size: 12.5px; color: var(--gold); font-weight: 700; }
.header-search-msg { padding: 14px; font-size: 13px; color: var(--text-muted); text-align: center; }
.cart-link { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cuenta-link { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cuenta-link:hover { color: var(--gold); }
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--border-soft); color: var(--cream);
  width: 38px; height: 38px; border-radius: 6px; font-size: 18px; cursor: pointer; align-items: center; justify-content: center;
}

/* Hero */
.hero-carousel {
  position: relative;
  min-height: 480px;
  max-height: 540px;
  overflow: hidden;
  background-color: #060402;
}
.hero-slide {
  position: absolute;
  inset: 0;
  padding: 80px 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right center;
  background-color: #060402;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide.has-video .hero-text h1, .hero-slide.has-video .hero-text p { text-shadow: 0 2px 14px rgba(0,0,0,.75); }
/* Efecto de movimiento en las fotos del hero: zoom lento con un leve desplazamiento (se reinicia cada vez que la diapositiva aparece). */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-repeat: no-repeat; background-position: right center;
  transform-origin: 70% 50%;
  will-change: transform;
}
.hero-slide.active .hero-bg { animation: hero-movimiento 16s ease-in-out infinite alternate; }
.hero-slide:nth-child(even).active .hero-bg { transform-origin: 30% 60%; animation-name: hero-movimiento-b; }
@keyframes hero-movimiento   { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
@keyframes hero-movimiento-b { from { transform: scale(1.12) translate3d(-1%, 0, 0); } to { transform: scale(1) translate3d(1.5%, 1%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.active .hero-bg { animation: none; } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; }
.hero-slide::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to right, rgba(6,4,2,.97) 0%, rgba(6,4,2,.8) 25%, rgba(6,4,2,.2) 45%, rgba(6,4,2,0) 65%);
}
.hero-slide .container { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 560px; }
.hero-text h1 { font-size: 42px; line-height: 1.15; margin: 0 0 18px; }
.hero-text h1 .accent { color: var(--gold); display: block; }
.hero-text p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .2s, transform .2s;
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.active { background: var(--gold); transform: scale(1.2); }

/* Features bar */
.features-bar { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 22px 0; position: relative;
  background-image: linear-gradient(90deg, transparent, rgba(201,151,74,.06) 50%, transparent); }
.features-bar::before { content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.features-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature-item { display: flex; align-items: center; gap: 14px; padding: 6px 22px; position: relative; transition: transform .3s ease; }
.feature-item + .feature-item::before { content: ''; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: linear-gradient(180deg, transparent, rgba(201,151,74,.4), transparent); }
.feature-item .icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, rgba(232,184,109,.22), rgba(201,151,74,.06));
  border: 1px solid rgba(201,151,74,.4); color: var(--gold-light);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(.3,1.5,.5,1), background .3s ease, color .3s ease, box-shadow .3s ease;
}
.feature-item:hover { transform: translateY(-2px); }
.feature-item:hover .icon { transform: scale(1.08) rotate(-4deg); color: #1a1410; background: linear-gradient(145deg, var(--gold-light), var(--gold-dark)); box-shadow: 0 8px 20px rgba(201,151,74,.45); }
.feature-item b { display: block; font-size: 14px; font-weight: 600; letter-spacing: .2px; color: var(--cream); }
.feature-item span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--text-muted); }

/* Section heading */
.section { padding: 24px 0 40px; }
.section-title { text-align: center; font-size: 26px; margin: 0 0 6px; }
.section-sub { text-align: center; color: var(--gold); margin: 0 auto 22px; width: 60px; border-top: 2px solid var(--gold); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; position: relative; }
.product-card .thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #100c09; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .info { padding: 14px; }
.product-card .info h3 { font-size: 15px; margin: 0 0 4px; }
.product-card .info .meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.product-card .info .price { color: var(--gold); font-weight: 700; margin-bottom: 12px; }
/* Productos de categorías «sin precio»: en lugar del precio, el aviso de que se consulta */
.price-consultar { font-size: 14px; font-weight: 600; color: var(--gold); }
.price-consultar-grande { font-size: 20px; margin-bottom: 8px; }
/* Etiqueta de la variante de precio (por ejemplo «2 Colores»), al lado del precio */
.var-pill { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(201,151,74,.18); border: 1px solid var(--gold); color: var(--cream); font-size: 12px; font-weight: 600; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.var-pill-grande { font-size: 14px; padding: 3px 14px; margin-left: 10px; }
.product-card .info .actions { display: flex; gap: 8px; }
/* Los 3 botones (Ver detalles, carrito y WhatsApp) quedan siempre pegados al borde inferior de la tarjeta, sin importar cuántas líneas tenga el nombre. */
.product-card { display: flex; flex-direction: column; }
.product-card .info { flex: 1; display: flex; flex-direction: column; }
.product-card .info .actions { margin-top: auto; }
.product-card .info .actions .btn-gold { flex: 1; text-align: center; justify-content: center; }
/* Carrito y WhatsApp conservan siempre el mismo tamaño (38×38) y no se encogen. */
.product-card .info .actions .icon-btn,
.product-card .info .actions form { flex: 0 0 38px; }
.product-card .info .actions form { margin: 0; }
.product-card .info .actions form .icon-btn { width: 38px; }

/* Separador entre secciones del inicio (línea dorada con un adorno al centro) */
.separador-seccion { display: flex; align-items: center; gap: 16px; margin: 8px 0; color: var(--gold); }
.separador-seccion::before, .separador-seccion::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold)); opacity: .6; }
.separador-seccion::after { background: linear-gradient(to left, transparent, var(--gold)); }
.separador-seccion span { font-size: 18px; line-height: 1; animation: sep-destello 5s ease-in-out infinite; }
/* Rayo láser que recorre la línea de lado a lado y hace destellar el adorno al pasar */
.separador-seccion { position: relative; overflow: hidden; padding: 6px 0; }
.separador-seccion .laser {
  position: absolute; top: 50%; left: 0; width: 140px; height: 2px; margin-top: -1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ff5a36 55%, #fff 92%, #fff);
  box-shadow: 0 0 8px 1px rgba(255,90,54,.85), 0 0 18px 3px rgba(255,90,54,.4);
  animation: sep-laser 5s ease-in-out infinite;
}
.separador-seccion .laser::after { /* chispa en la punta del rayo */
  content: ""; position: absolute; right: -3px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 4px rgba(255,170,90,.95), 0 0 22px 8px rgba(255,90,54,.5);
}
@keyframes sep-laser { 0% { left: -140px; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes sep-destello { 0%, 44%, 60%, 100% { text-shadow: none; transform: scale(1); } 52% { text-shadow: 0 0 10px #ff5a36, 0 0 20px #ffb25a; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .separador-seccion .laser, .separador-seccion span { animation: none; } .separador-seccion .laser { display: none; } }

.fav-form { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; }
.fav-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(16,12,9,.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.fav-btn:hover { background: rgba(16,12,9,.8); transform: scale(1.1); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--border-soft);
  background: transparent; color: var(--cream); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: rgba(201,151,74,.15); }
.icon-btn-wa { background: #25D366; border-color: #25D366; color: #fff; text-decoration: none; }
.icon-btn-wa:hover { background: #1fb959; border-color: #1fb959; }
.icon-btn-wa .wa-icon { width: 18px; height: 18px; }

.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1fb959; border-color: #1fb959; }

/* Carrusel de productos destacados */
.carousel-wrap { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  flex: 1;
}
.carousel-viewport.dragging { cursor: grabbing; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 14px; }
.carousel-track .product-card { width: 190px; flex-shrink: 0; }
.carousel-track .testimonial-card { width: 340px; flex-shrink: 0; }
.carousel-arrow {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-soft); color: var(--cream);
  font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.carousel-arrow:hover { background: var(--gold); color: #1a1410; border-color: var(--gold); }

/* En el carrusel de destacados se usa la misma tarjeta del catálogo; solo se evita seleccionar/arrastrar al deslizar */
.carousel-track .product-card { user-select: none; }
.carousel-track .product-card img { pointer-events: none; }
/* Espacio arriba y abajo para que la tarjeta pueda elevarse al pasar el mouse sin cortarse */
.carousel-viewport { padding: 8px 2px 10px; }

/* Efecto al pasar el mouse por los Productos Destacados: se eleva, borde dorado y la foto se acerca */
#productos-destacados .product-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
#productos-destacados .product-card .thumb img { transition: transform .45s ease; }
#productos-destacados .product-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(201,151,74,.35); }
#productos-destacados .product-card:hover .thumb img { transform: scale(1.07); }

/* Productos que están en oferta (tarjetas de destacados, categorías y catálogo, y la página del producto) */
.product-card.en-oferta { border-color: var(--oferta); box-shadow: 0 0 0 1px rgba(230,57,70,.35); }
.product-card .info .price.price-oferta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-oferta .antes { color: var(--text-muted); text-decoration: line-through; font-size: .8em; font-weight: 400; }
.price-oferta .ahora { color: var(--oferta); font-weight: 800; }
.price-oferta .oferta-etiqueta { display: inline-block; background: var(--oferta); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 6px; }
.detail-grid .price.price-oferta .ahora { font-size: 1em; }
.category-card .cat-oferta { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--oferta); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.filter-chip .chip-oferta { font-size: 11px; font-weight: 700; color: var(--oferta); margin-left: 2px; }
.filter-chip.active .chip-oferta, .filter-chip:hover .chip-oferta { color: #7a1d24; }

/* Enlaces para saltar entre Ofertas y Productos Destacados en el inicio */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; } /* para que el menú fijo no tape el título al saltar */
.salto-seccion { text-align: center; margin: -6px 0 16px; font-size: 13px; }
.salto-seccion a { display: inline-block; padding: 6px 14px; border: 1px solid var(--border-soft); border-radius: 20px; color: var(--gold); font-weight: 600; transition: background .2s, border-color .2s; }
.salto-seccion a:hover { background: rgba(201,151,74,.15); border-color: var(--gold); }

/* Aviso de personalización (carrito y pedido confirmado) */
.aviso-personalizacion { background: rgba(201,151,74,.12); border: 1px solid var(--gold); border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.55; margin: 6px 0 16px; text-align: left; }
.aviso-personalizacion b { color: var(--cream, inherit); }
.aviso-personalizacion p { color: var(--text-muted); }

/* Categories grid */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.category-grid.row-2 { grid-template-columns: repeat(5, 1fr); margin-top: 10px; }
.category-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
/* Efecto al pasar el mouse por las categorías: la foto se acerca, borde dorado y el nombre se resalta */
.category-card { border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.category-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 12px 26px rgba(0,0,0,.45); }
.category-card:hover img { transform: scale(1.1); }
.category-card:hover .label { color: var(--gold-light, var(--gold)); }
.category-card .label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  font-size: 13px; font-weight: 600; text-align: center;
}

/* Personaliza form */
.personaliza-section { background: var(--bg-dark-2); }
.personaliza-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.form-card, .preview-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border-soft);
  background: #150f0a; color: var(--cream); font-family: var(--font); font-size: 14px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.preview-card img { border-radius: 8px; margin-bottom: 12px; }

.resena-form { padding: 18px; }
.resena-form .form-row { margin-bottom: 10px; }
.resena-form .form-row-2 { gap: 10px; }
.resena-form .form-row label { font-size: 11.5px; margin-bottom: 4px; }
.resena-form .form-row input, .resena-form .form-row select, .resena-form .form-row textarea { padding: 7px 10px; font-size: 13px; }
.resena-form .btn-block { padding: 10px; font-size: 13.5px; }

/* Steps */
.steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: relative; }
.steps-row::before {
  content: '';
  position: absolute;
  top: 38px; left: 10%; right: 10%;
  border-top: 2px dashed rgba(201, 151, 74, .35);
  z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; padding: 10px 6px; border-radius: 14px; transition: transform .25s ease; }
.step-item:hover { transform: translateY(-4px); }
.step-item .step-icon {
  width: 56px; height: 56px; border-radius: 50%; position: relative; overflow: visible;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  color: #1a1410; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 18px rgba(201, 151, 74, .35);
  transition: box-shadow .25s ease;
}
.step-item .step-icon-emoji { font-size: 34px; line-height: 1; display: inline-block; }
.step-item:hover .step-icon { box-shadow: 0 10px 22px rgba(201, 151, 74, .5); }
.step-item .step-num {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--gold);
  color: var(--gold); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-item b { display: block; font-size: 14px; margin-bottom: 4px; }
.step-item span { font-size: 12px; color: var(--text-muted); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.testimonial-card .stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.testimonial-card .author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #333; }
.testimonial-card .author b { display: block; font-size: 13px; }
.testimonial-card .author span { font-size: 12px; color: var(--text-muted); }

/* CTA banner */
.cta-banner {
  position: relative;
  padding: 90px 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #9d7955;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,7,5,.92), rgba(10,7,5,.5)); }
.cta-banner .container { position: relative; }
.cta-banner h2 { font-size: 30px; max-width: 480px; margin-bottom: 22px; }

/* Footer */
.site-footer { background: var(--bg-dark-2); padding: 32px 0 14px; border-top: 1px solid var(--border-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.1fr; gap: 24px; margin-bottom: 18px; }
.footer-grid > div { min-width: 0; }
.footer-grid li, .footer-grid a { overflow-wrap: break-word; }
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; color: var(--gold); }
.footer-grid li { margin-bottom: 8px; font-size: 13px; color: var(--text-muted); }
.footer-grid li a:hover { color: var(--gold); }
.footer-desc { color: var(--text-muted); font-size: 13px; margin: 14px 0; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 32px; height: 32px; border-radius: 6px; background: rgba(201,151,74,.12);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.newsletter-form { display: flex; gap: 0; margin-top: 10px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 6px 0 0 6px; background: #150f0a; color: var(--cream); }
.newsletter-form button { border-radius: 0 6px 6px 0; }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 12px; text-align: center; font-size: 12px; color: var(--text-muted); }

/* WhatsApp float button */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.4); z-index: 60;
}
.wa-float .wa-icon { width: 28px; height: 28px; }
.wa-icon { width: 18px; height: 18px; flex-shrink: 0; }
.social-icons a.wa-social { color: #fff; background: #25D366; }
.social-icons a.wa-social:hover { background: #1fb959; }

/* Generic page (catalog, blog, gallery, contact) */
.page-header { padding: 24px 0 16px; text-align: center; }
.page-header h1 { font-size: 30px; margin: 0 0 8px; }
.page-header p { color: var(--text-muted); }
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding-bottom: 30px; }
.filter-chip { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border-soft); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.filter-chip.active, .filter-chip:hover { background: var(--gold); color: #1a1410; border-color: var(--gold); }
/* Franja de categorías del catálogo: una sola fila deslizable, con flechas y degradado en los bordes */
.cat-strip { position: relative; margin: 0 auto 14px; max-width: 1100px; }
.cat-strip-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 4px; justify-content: safe center; }
.cat-strip-track::-webkit-scrollbar { display: none; }
.cat-strip .filter-chip { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: center; padding: 9px 18px; font-size: 13.5px; background: rgba(255,255,255,.03); transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.cat-strip .filter-chip.active, .cat-strip .filter-chip:hover { background: var(--gold); color: #1a1410; border-color: var(--gold); }
.cat-strip .filter-chip:hover { transform: translateY(-1px); }
.cat-strip .filter-chip.active { font-weight: 700; box-shadow: 0 4px 14px rgba(201,151,74,.28); }
.cat-strip-track { --m-izq: 0px; --m-der: 0px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--m-izq), #000 calc(100% - var(--m-der)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--m-izq), #000 calc(100% - var(--m-der)), transparent 100%); }
.cat-strip.hay-izq .cat-strip-track { --m-izq: 56px; }
.cat-strip.hay-der .cat-strip-track { --m-der: 56px; }
.cat-strip-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); background: #1a1410; color: var(--gold); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.cat-strip-btn[hidden] { display: none; }
.cat-strip-btn:hover { background: var(--gold); color: #1a1410; }
.cat-strip-btn.prev { left: -6px; }
.cat-strip-btn.next { right: -6px; }
.cat-resultado { text-align: center; color: var(--text-muted); font-size: 14px; margin: 0 0 22px; }
.cat-resultado b { color: var(--cream); }
.cat-resultado a { color: var(--gold); }
@media (max-width: 640px) { .cat-strip-btn { display: none !important; } .cat-strip-track { justify-content: flex-start; } }
.chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 20px;
  background: rgba(255,255,255,.12); font-size: 11px; font-weight: 700;
}
.filter-chip.active .chip-count, .filter-chip:hover .chip-count { background: rgba(26,20,16,.18); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.blog-card-thumb { position: relative; }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; display: block; }
.blog-comment-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(26, 20, 16, .78); color: var(--cream);
  font-size: 12px; font-weight: 600; border-radius: 20px; padding: 4px 10px;
  backdrop-filter: blur(2px);
}
.blog-card .info { padding: 16px; }
.blog-card .info .date { font-size: 12px; color: var(--gold); margin-bottom: 6px; }
.blog-card .info h3 { font-size: 16px; margin: 0 0 8px; }
.blog-card .info p { font-size: 13px; color: var(--text-muted); }

#productos-destacados { scroll-margin-top: 110px; }
.back-link { display: inline-block; margin-bottom: 20px; font-size: 13px; color: var(--gold); }
.back-link:hover { color: var(--gold-light); }

.detail-grid { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 40px; }
.detail-grid .thumb {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 1 / 1;
  max-width: 360px;
}
.detail-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.detail-grid .thumb:hover img { transform: scale(1.08); }
.detail-grid h1 { font-size: 26px; margin-bottom: 10px; }
.detail-grid .price { color: var(--gold); font-size: 24px; font-weight: 700; margin: 14px 0; }
.detail-grid .desc { color: var(--text-muted); margin-bottom: 20px; }
.spec-list { display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.spec-list div { font-size: 13px; color: var(--text-muted); }
.spec-list b { display: block; color: var(--cream); }
.views-badge { font-size: 12.5px; color: var(--text-muted); background: rgba(255,255,255,.06); border: 1px solid var(--border-soft); border-radius: 20px; padding: 4px 12px; }
.producto-galeria-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.producto-galeria-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid var(--border-soft); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.producto-galeria-thumbs img:hover { opacity: 1; }
.producto-galeria-thumbs img.active { opacity: 1; border-color: var(--gold); }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: rgba(60,180,90,.15); border: 1px solid rgba(60,180,90,.4); color: #8fe0a8; }
.alert-error { background: rgba(220,80,80,.15); border: 1px solid rgba(220,80,80,.4); color: #f0a8a8; }

.tracker-steps { display: flex; justify-content: space-between; margin: 24px 0 10px; position: relative; }
.tracker-steps::before { content: ''; position: absolute; top: 15px; left: 6%; right: 6%; height: 2px; background: var(--border-soft); z-index: 0; }
.tracker-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.tracker-step .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-dark); border: 2px solid var(--border-soft); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.tracker-step span { font-size: 11.5px; color: var(--text-muted); text-align: center; }
.tracker-step.done .dot { background: var(--gold); border-color: var(--gold); color: #1a1410; }
.tracker-step.done span { color: var(--cream); }
.tracker-step.current .dot { box-shadow: 0 0 0 4px rgba(201,151,74,.25); }

.table-responsive { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; min-width: 480px; }
.cart-table th, .cart-table td { padding: 12px; border-bottom: 1px solid var(--border-soft); text-align: left; font-size: 14px; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }

.nav-ofertas { color: var(--oferta) !important; font-weight: 700; }
.nav-ofertas:hover { opacity: .85; }
.nav-ofertas.ofertas-activas {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  animation: nav-oferta-resplandor 1.4s ease-in-out infinite;
}
@keyframes nav-oferta-resplandor {
  0%, 100% { background: transparent; color: var(--oferta) !important; box-shadow: none; transform: scale(1); }
  50% { background: var(--oferta); color: #fff !important; box-shadow: 0 0 16px 3px var(--oferta); transform: scale(1.1); }
}

.badge-oferta { display: inline-block; background: var(--oferta); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; vertical-align: middle; }
.ofertas-section { background: linear-gradient(135deg, rgba(230,57,70,.09), transparent 60%); }
.ofertas-heading { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ofertas-heading .section-title { margin-bottom: 0; }
.ofertas-fire { font-size: 26px; display: inline-block; animation: oferta-flicker 1.6s ease-in-out infinite; }
@keyframes oferta-flicker { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(-4deg); } }

.sin-ofertas { max-width: 520px; margin: 0 auto; text-align: center; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 36px 28px; }
.sin-ofertas-icono { font-size: 44px; margin-bottom: 8px; }
.sin-ofertas h2 { font-size: 22px; margin: 0 0 10px; }
.sin-ofertas p { color: var(--text-muted); margin: 0 0 18px; line-height: 1.6; }
.sin-ofertas .sin-ofertas-nota { font-size: 13px; margin: 14px 0 0; }
.sin-ofertas .sin-ofertas-nota a { color: var(--gold); font-weight: 600; }
.sin-ofertas-o { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--text-muted); font-size: 12.5px; }
.sin-ofertas-o::before, .sin-ofertas-o::after { content: ""; flex: 1; border-top: 1px solid var(--border-soft); }
.sin-ofertas-sub { font-size: 17px; margin: 0 0 2px; }
.ofertas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 16px; }
.oferta-card { position: relative; background: var(--bg-card); border: 2px solid var(--oferta); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; height: 100%; max-width: 240px; }
.oferta-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(230,57,70,.28); }
.oferta-ribbon { position: absolute; top: 10px; left: -8px; background: var(--oferta); color: #fff; font-weight: 700; font-size: 11px; padding: 4px 12px; border-radius: 0 4px 4px 0; z-index: 2; animation: oferta-ribbon-pulso 1.8s ease-in-out infinite; }
@keyframes oferta-ribbon-pulso {
  0%, 100% { box-shadow: 2px 3px 6px rgba(0,0,0,.35); }
  50% { box-shadow: 2px 3px 6px rgba(0,0,0,.35), 0 0 12px 3px var(--oferta); }
}
.oferta-card-img { aspect-ratio: 1/1; display: block; overflow: hidden; flex-shrink: 0; }
.oferta-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oferta-card-body { padding: 10px 12px; display: flex; flex-direction: column; flex: 1; }
.oferta-card-body h3 { font-size: 13px; margin: 0 0 3px; line-height: 1.25; }
.oferta-card-body p { font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oferta-card-footer { margin-top: auto; }
.oferta-precios { display: flex; align-items: baseline; gap: 6px; margin-bottom: 5px; flex-wrap: wrap; }
.oferta-precios .antes { text-decoration: line-through; color: var(--text-muted); font-size: 11px; }
.oferta-precios .ahora { color: var(--oferta); font-weight: 700; font-size: 15.5px; }
.oferta-card-actions { display: flex; flex-direction: column; gap: 8px; }
.oferta-card-actions .btn { padding: 8px 10px; font-size: 12.5px; }
.oferta-vence { font-size: 10.5px; color: var(--oferta); font-weight: 600; margin-bottom: 6px; }

@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .header-search input { width: 110px; }
  .header-search-results { width: 260px; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 92px; left: 0; right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 24px 20px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav .dropdown-menu { display: none; position: static; border: none; padding: 0 0 0 14px; background: transparent; }
  .main-nav .dropdown:hover .dropdown-menu { display: none; }
  .main-nav .dropdown.open .dropdown-menu { display: block; }
  .hero-carousel { min-height: 380px; max-height: none; }
  .hero-slide { padding: 50px 0; background-position: right center; }
  .hero-text { max-width: 480px; }
  .features-bar .container { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .feature-item { padding: 6px 12px; }
  .feature-item:nth-child(odd)::before { display: none; }
  .category-grid, .category-grid.row-2 { grid-template-columns: repeat(2, 1fr); }
  .personaliza-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .steps-row::before { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .ofertas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .thumb { max-width: 100%; }
}

@media (max-width: 650px) {
  .hero-slide::before { background: linear-gradient(to bottom, rgba(6,4,2,.55) 0%, rgba(6,4,2,.85) 55%, rgba(6,4,2,.97) 100%); }
  /* Con video de fondo, el degradado es más suave para que el video se alcance a ver. */
  .hero-slide.has-video::before { background: linear-gradient(to bottom, rgba(6,4,2,.25) 0%, rgba(6,4,2,.45) 55%, rgba(6,4,2,.75) 100%); }
  .hero-text { max-width: 100%; }
}

/* Animación de producto volando al carrito */
.cart-flyer {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; border: 2px solid var(--gold); background: var(--bg-card) center/cover no-repeat;
  box-shadow: 0 6px 18px rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.cart-link.cart-bump { animation: cart-bump .45s ease-out; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: var(--gold); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cart-flyer { display: none; }
  .cart-link.cart-bump { animation: none; }
}

/* Hero con video vertical (TikTok, Reels): se ve completo a la derecha, dentro de un marco de celular. */
.hero-slide.hero-vertical { padding: 22px 0 42px; }
.hero-slide.hero-vertical::before { background: linear-gradient(to right, rgba(6,4,2,.9) 0%, rgba(6,4,2,.55) 55%, rgba(6,4,2,.8) 100%); }
.hero-slide.hero-vertical .hero-bg { filter: blur(26px) brightness(.55) saturate(1.1); transform: scale(1.12); animation: none !important; }
.hero-slide.hero-vertical .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-slide.hero-vertical .hero-text { flex: 1 1 auto; }
.hero-phone {
  position: relative; flex: 0 0 auto; height: 410px; aspect-ratio: 9 / 16;
  border-radius: 30px; padding: 7px; background: #0b0907;
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.6), 0 0 38px rgba(210,150,60,.18);
  margin-right: 24px;
}
.hero-phone::before { /* "isla" de la cámara */
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 6px; border-radius: 6px; background: rgba(0,0,0,.7); z-index: 3;
}
.hero-slide.hero-vertical .hero-phone .hero-video {
  position: static; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
  border-radius: 23px; background: #000;
}
@media (max-width: 900px) {
  .hero-carousel.hero-tiene-vertical { min-height: 640px; }
  .hero-slide.hero-vertical { padding: 28px 0 46px; align-items: flex-start; }
  .hero-slide.hero-vertical .container { flex-direction: column; gap: 18px; align-items: center; text-align: center; }
  .hero-slide.hero-vertical .hero-text { max-width: 100%; }
  .hero-slide.hero-vertical .hero-text h1 { font-size: 30px; margin-bottom: 8px; }
  .hero-slide.hero-vertical .hero-text p { display: none; }
  .hero-slide.hero-vertical .hero-actions { justify-content: center; }
  .hero-phone { height: 340px; margin-right: 0; }
}

/* Precio estándar de la categoría en las tarjetas del inicio */
.category-card .label .cat-desde { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .2px; }

/* Foto del producto ampliada (efecto envolvente): fondo desenfocado, la foto vuela al centro, se inclina con el mouse y se acerca con un clic */
.detail-grid .thumb.thumb-ampliable { position: relative; cursor: zoom-in; }
.detail-grid .thumb.thumb-ampliable:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.thumb-pista { position: absolute; right: 10px; bottom: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(16,12,9,.72); color: var(--cream); font-size: 12px; font-weight: 600; backdrop-filter: blur(3px); opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.thumb-ampliable:hover .thumb-pista, .thumb-ampliable:focus-visible .thumb-pista { opacity: 1; transform: none; }
@media (hover: none) { .thumb-pista { opacity: 1; transform: none; } }
body.lb-abierto { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.lb-fondo { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(40,28,18,.86), rgba(8,5,3,.96)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .35s ease; }
.lb.visible .lb-fondo { opacity: 1; }
.lb-escena { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 64px; perspective: 1200px; }
.lb-tilt { display: inline-block; line-height: 0; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .15s ease-out; --rx: 0deg; --ry: 0deg; }
.lb-img { display: block; max-width: min(92vw, 1100px); max-height: calc(100vh - 130px); min-height: min(68vh, 560px); width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(201,151,74,.35), 0 0 60px rgba(201,151,74,.18);
  will-change: transform; cursor: zoom-in; user-select: none; -webkit-user-drag: none; opacity: 0; }
.lb.abierto .lb-img { opacity: 1; }
.lb.zoom .lb-img { cursor: zoom-out; transform: scale(2.1) !important; transition: transform .35s cubic-bezier(.2,.8,.2,1) !important; }
.lb-cerrar, .lb-nav { position: absolute; z-index: 3; border: 1px solid rgba(201,151,74,.6); background: rgba(16,12,9,.7); color: var(--gold); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .15s ease, color .15s ease, transform .15s ease; opacity: 0; }
.lb.visible .lb-cerrar, .lb.visible .lb-nav { opacity: 1; transition-delay: .15s; }
.lb-cerrar { top: 18px; right: 20px; width: 42px; height: 42px; font-size: 18px; }
.lb-nav { top: 50%; width: 46px; height: 46px; margin-top: -23px; font-size: 28px; line-height: 1; padding-bottom: 3px; display: none; }
.lb.lb-varias .lb-nav { display: flex; }
.lb-ant { left: 18px; } .lb-sig { right: 18px; }
.lb-cerrar:hover, .lb-nav:hover { background: var(--gold); color: #1a1410; transform: scale(1.08); }
.lb-pie { position: absolute; z-index: 2; left: 0; right: 0; bottom: 44px; text-align: center; color: var(--cream); font-size: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.8); pointer-events: none; }
.lb-ayuda { position: absolute; z-index: 2; left: 0; right: 0; bottom: 16px; text-align: center; color: var(--text-muted); font-size: 12px; pointer-events: none; }
@media (max-width: 640px) { .lb-escena { padding: 56px 12px 72px; } .lb-nav { width: 38px; height: 38px; margin-top: -19px; font-size: 24px; } .lb-ant { left: 6px; } .lb-sig { right: 6px; } .lb-ayuda { display: none; } }
@media (prefers-reduced-motion: reduce) { .lb-fondo, .lb-img, .thumb-pista { transition: none !important; } }

/* Tarjetas de producto con efectos: se elevan con un brillo dorado, la foto se acerca, pasa un destello y aparece «Ver detalle» */
.product-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease; will-change: transform; }
.product-card .thumb { position: relative; }
.product-card .thumb img { transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.product-card .thumb::after { /* destello diagonal que cruza la foto */
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg);
}
.product-card .thumb::before { /* «Ver detalle» que sube desde abajo */
  content: "Ver detalle"; position: absolute; left: 50%; bottom: 12px; z-index: 2; pointer-events: none;
  padding: 6px 16px; border-radius: 999px; background: rgba(16,12,9,.78); color: var(--cream); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid rgba(201,151,74,.55); backdrop-filter: blur(3px);
  opacity: 0; transform: translate(-50%, 14px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.product-card .info h3 { transition: color .25s ease; }
.product-card .price { transition: transform .3s ease; transform-origin: left center; }
@media (hover: hover) {
  .product-card:hover { transform: translateY(-7px); border-color: var(--gold); box-shadow: 0 18px 38px rgba(0,0,0,.5), 0 0 0 1px rgba(201,151,74,.45), 0 0 30px rgba(201,151,74,.16); z-index: 2; }
  .product-card.en-oferta:hover { border-color: var(--oferta); box-shadow: 0 18px 38px rgba(0,0,0,.5), 0 0 0 1px rgba(230,57,70,.5), 0 0 30px rgba(230,57,70,.2); }
  .product-card:hover .thumb img { transform: scale(1.1); filter: saturate(1.12) contrast(1.03); }
  .product-card:hover .thumb::after { left: 130%; transition: left .85s ease; }
  .product-card:hover .thumb::before { opacity: 1; transform: translate(-50%, 0); }
  .product-card:hover .info h3 { color: var(--gold-light, var(--gold)); }
  .product-card:hover .price { transform: scale(1.06); }
  .product-card .actions .btn-gold { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
  .product-card:hover .actions .btn-gold { box-shadow: 0 6px 16px rgba(201,151,74,.35); }
  .product-card .actions .icon-btn { transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
  .product-card .actions .icon-btn:hover { transform: translateY(-2px) scale(1.08); }
}
.carousel-track .product-card:hover { transform: translateY(-5px); }

/* Entrada: las tarjetas suben y aparecen (las de más abajo, cuando se llega a ellas al desplazarse) */
@keyframes tarjeta-entra { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.product-card.tarjeta-entra { animation: tarjeta-entra .6s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: var(--retardo, 0ms); }
.product-card.tarjeta-oculta { opacity: 0; transform: translateY(26px) scale(.96); }
@media print { .product-card.tarjeta-oculta { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card .thumb img, .product-card .thumb::before, .product-card .thumb::after { transition: none !important; }
  .product-card.tarjeta-entra { animation: none; }
  .product-card.tarjeta-oculta { opacity: 1; transform: none; }
  .product-card:hover { transform: none; }
}

/* Diapositiva del hero con escena 3D: anillo de fotos que gira, rayo láser, chispas y reacción al mouse */
.hero-slide.hero-escena { padding: 20px 0; }
.hero-slide.hero-escena::before { background: linear-gradient(to right, rgba(6,4,2,.92) 0%, rgba(6,4,2,.62) 55%, rgba(6,4,2,.85) 100%); }
.hero-slide.hero-escena .hero-bg { filter: blur(30px) brightness(.4) saturate(1.25); transform: scale(1.15); animation: none !important; }
.hero-slide.hero-escena .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-slide.hero-escena .hero-text { flex: 1 1 auto; }
.hero-3d { position: relative; flex: none; width: 520px; height: 420px; perspective: 1100px; perspective-origin: 50% 38%; margin-right: 6px; user-select: none; }
.h3d-escena { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; transform: rotateX(var(--tx, -9deg)) rotateY(var(--ty, 0deg)); transition: transform .3s ease-out; }
.h3d-anillo { position: relative; width: 132px; height: 150px; transform-style: preserve-3d; animation: h3d-gira 32s linear infinite; }
.h3d-panel { position: absolute; inset: 0; margin: 0; transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--radio)); border-radius: 10px; overflow: hidden; border: 1px solid rgba(201,151,74,.75); background: #100c09; box-shadow: 0 12px 30px rgba(0,0,0,.6), 0 0 24px rgba(201,151,74,.28); }
.h3d-panel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h3d-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.24), transparent 42%, rgba(0,0,0,.3)); }
@keyframes h3d-gira { to { transform: rotateY(360deg); } }
.h3d-nucleo { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,140,.95) 0%, rgba(201,151,74,.55) 35%, rgba(201,151,74,0) 70%); filter: blur(4px); animation: h3d-pulso 4.5s ease-in-out infinite; transform: translateZ(0); }
@keyframes h3d-pulso { 0%, 100% { transform: scale(.85); opacity: .75; } 50% { transform: scale(1.2); opacity: 1; } }
.h3d-suelo { position: absolute; left: 50%; bottom: 7%; width: 78%; height: 46px; margin-left: -39%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(201,151,74,.5), rgba(201,151,74,0) 70%); filter: blur(7px); transform: translateZ(-120px) rotateX(90deg); }
.h3d-orbe { position: absolute; border-radius: 50%; filter: blur(34px); pointer-events: none; }
.h3d-orbe-1 { width: 190px; height: 190px; left: 4%; top: 6%; background: rgba(230,90,50,.5); animation: h3d-flota 9s ease-in-out infinite alternate; }
.h3d-orbe-2 { width: 230px; height: 230px; right: 0; bottom: 2%; background: rgba(201,151,74,.42); animation: h3d-flota 11s ease-in-out infinite alternate-reverse; }
@keyframes h3d-flota { from { transform: translate(0, 0) scale(1); } to { transform: translate(26px, -30px) scale(1.18); } }
.h3d-chispas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.h3d-laser { position: absolute; left: -4%; right: -4%; top: 8%; height: 2px; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, #ff4a2e 18%, #fff 50%, #ff4a2e 82%, transparent);
  box-shadow: 0 0 10px 2px rgba(255,74,46,.8), 0 0 28px 6px rgba(255,74,46,.35); animation: h3d-barrido 7s ease-in-out infinite; }
@keyframes h3d-barrido { 0% { top: 8%; opacity: 0; } 8% { opacity: .95; } 50% { top: 90%; opacity: .95; } 92% { opacity: .95; } 100% { top: 8%; opacity: 0; } }
.hero-slide:not(.active) .h3d-anillo, .hero-slide:not(.active) .h3d-nucleo, .hero-slide:not(.active) .h3d-laser, .hero-slide:not(.active) .h3d-orbe { animation-play-state: paused; }
@media (max-width: 900px) {
  .hero-carousel.hero-tiene-escena { min-height: 660px; }
  .hero-slide.hero-escena { padding: 26px 0 30px; align-items: flex-start; }
  .hero-slide.hero-escena .container { flex-direction: column; gap: 0; align-items: center; text-align: center; }
  .hero-slide.hero-escena .hero-text { max-width: 100%; }
  .hero-slide.hero-escena .hero-text h1 { font-size: 30px; margin-bottom: 8px; }
  .hero-slide.hero-escena .hero-text p { display: none; }
  .hero-slide.hero-escena .hero-actions { justify-content: center; }
  .hero-3d { width: 520px; height: 420px; margin: 0 0 -120px; align-self: center; transform: scale(.72); transform-origin: top center; } /* sin márgenes automáticos: así se centra aunque sea más ancho que la pantalla */
}
@media (max-width: 520px) { .hero-3d { transform: scale(.6); margin-bottom: -165px; } }
@media (prefers-reduced-motion: reduce) { .h3d-anillo, .h3d-nucleo, .h3d-laser, .h3d-orbe { animation: none !important; } .h3d-laser { display: none; } .h3d-escena { transition: none; } }

/* Escenas 3D del hero — estilos extra: cubo con órbita, hélice y galería flotante */
.h3d-escena figure { margin: 0; }
.h3d-escena figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h3d-cara, .h3d-mini, .h3d-hoja, .h3d-suelta { overflow: hidden; border: 1px solid rgba(201,151,74,.75); background: #100c09; box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 22px rgba(201,151,74,.28); }
.h3d-cara::after, .h3d-mini::after, .h3d-hoja::after, .h3d-suelta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 42%, rgba(0,0,0,.28)); }

/* --- Cubo con órbita --- */
.h3d-cubo-giro { position: relative; width: 170px; height: 170px; transform-style: preserve-3d; animation: h3d-cubo-y 26s linear infinite; }
.h3d-cubo-vaiven { position: absolute; inset: 0; transform-style: preserve-3d; animation: h3d-cubo-x 11s ease-in-out infinite alternate; }
.h3d-cubo { position: absolute; inset: 0; transform-style: preserve-3d; }
.h3d-cara { position: absolute; inset: 0; border-radius: 6px; }
.h3d-cara-0 { transform: translateZ(85px); }
.h3d-cara-1 { transform: rotateY(90deg) translateZ(85px); }
.h3d-cara-2 { transform: rotateY(180deg) translateZ(85px); }
.h3d-cara-3 { transform: rotateY(270deg) translateZ(85px); }
.h3d-cara-4 { transform: rotateX(90deg) translateZ(85px); }
.h3d-cara-5 { transform: rotateX(-90deg) translateZ(85px); }
@keyframes h3d-cubo-y { to { transform: rotateY(360deg); } }
@keyframes h3d-cubo-x { from { transform: rotateX(-26deg) rotateZ(-4deg); } to { transform: rotateX(26deg) rotateZ(5deg); } }
.h3d-orbita { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(74deg) rotateZ(-12deg); }
.h3d-orbita-gira { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; animation: h3d-orbita-gira 21s linear infinite reverse; }
.h3d-mini { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 8px; transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--radio)) rotateX(-74deg); }
@keyframes h3d-orbita-gira { to { transform: rotateZ(360deg); } }

/* --- Hélice (espiral) --- */
.h3d-helice { position: relative; width: 96px; height: 96px; transform-style: preserve-3d; animation: h3d-gira 30s linear infinite; }
.h3d-hoja { position: absolute; inset: 0; border-radius: 8px; transform: rotateY(calc(var(--i) * 360deg / 7)) translateY(calc((var(--i) - 5.5) * 25px)) translateZ(140px); }
.h3d-eje { position: absolute; left: 50%; top: 4%; bottom: 4%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: linear-gradient(to bottom, transparent, rgba(255,214,140,.95), transparent); box-shadow: 0 0 18px 4px rgba(201,151,74,.55); animation: h3d-pulso-eje 4s ease-in-out infinite; }
@keyframes h3d-pulso-eje { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* --- Galería flotante --- */
.h3d-flota { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; animation: h3d-flota-vaiven 16s ease-in-out infinite alternate; }
.h3d-suelta { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 10px; transform: translate3d(var(--x), var(--y), var(--z)) rotateZ(var(--r)); animation: h3d-deriva 7s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes h3d-flota-vaiven { from { transform: rotateY(-16deg); } to { transform: rotateY(16deg); } }
@keyframes h3d-deriva { from { transform: translate3d(var(--x), calc(var(--y) - 12px), var(--z)) rotateZ(var(--r)); } to { transform: translate3d(var(--x), calc(var(--y) + 14px), var(--z)) rotateZ(calc(var(--r) * -1)); } }

.hero-slide:not(.active) .h3d-cubo-giro, .hero-slide:not(.active) .h3d-cubo-vaiven, .hero-slide:not(.active) .h3d-orbita-gira, .hero-slide:not(.active) .h3d-helice, .hero-slide:not(.active) .h3d-eje, .hero-slide:not(.active) .h3d-flota, .hero-slide:not(.active) .h3d-suelta { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .h3d-cubo-giro, .h3d-cubo-vaiven, .h3d-orbita-gira, .h3d-helice, .h3d-eje, .h3d-flota, .h3d-suelta { animation: none !important; } }

/* Rayo láser VERTICAL que recorre la pantalla principal del hero de lado a lado (en las diapositivas sin escena 3D) */
.hero-laser { position: absolute; top: 0; bottom: 0; left: 4%; width: 2px; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, #ff4a2e 14%, #fff 50%, #ff4a2e 86%, transparent);
  box-shadow: 0 0 12px 2px rgba(255,74,46,.8), 0 0 34px 8px rgba(255,74,46,.32); animation: hero-laser-barrido 8s ease-in-out infinite; }
.hero-laser::after { /* destello que sube y baja por el rayo, como el punto donde corta el láser */
  content: ""; position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 14px 6px rgba(255,170,90,.95), 0 0 34px 12px rgba(255,74,46,.55); animation: hero-laser-punto 3.2s ease-in-out infinite alternate; }
@keyframes hero-laser-barrido { 0% { left: 4%; opacity: 0; } 8% { opacity: .9; } 50% { left: 96%; opacity: .9; } 92% { opacity: .9; } 100% { left: 4%; opacity: 0; } }
@keyframes hero-laser-punto { from { top: 4%; } to { top: 96%; } }
.hero-slide:not(.active) .hero-laser, .hero-slide:not(.active) .hero-laser::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero-laser { display: none; } }

/* ===== Escenas 3D sin fotos: láser cortando en vivo, tu nombre en 3D, logo de partículas ===== */
.h3d-estilo-laser .h3d-laser, .h3d-estilo-particulas .h3d-laser, .h3d-estilo-nombre .h3d-laser { display: none; } /* tienen su propio efecto de luz */

/* --- Láser cortando en vivo --- */
.h3d-laser-escena { position: relative; width: 330px; height: 330px; transform-style: preserve-3d; transform: rotateX(8deg) rotateZ(-4deg); }
.ls-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 22px 26px rgba(0,0,0,.65)); }
.ls-plancha { stroke: rgba(70,40,15,.8); stroke-width: 2; }
.ls-hueco { fill: #0c0704; opacity: 0; transition: opacity .5s ease; }
.ls-pieza { transform-box: fill-box; transform-origin: center; transition: transform 1s cubic-bezier(.2,.8,.2,1), filter 1s ease; }
.ls-relleno { opacity: 0; transition: opacity .6s ease; }
.ls-relleno-grabado { fill: rgba(70,35,12,.55); opacity: 0; transition: opacity .8s ease .15s; }
.ls-relleno-agujero { fill: #0c0704; opacity: 0; transition: opacity .6s ease .1s; }
.ls-trazo { fill: none; stroke: #ff7a45; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke .9s ease, stroke-width .9s ease; }
.ls-rayo { stroke: #ff5a36; stroke-width: 2.4; opacity: .9; }
.ls-punto { fill: #fff; }
.ls-svg.cortada .ls-hueco { opacity: 1; }
.ls-svg.cortada .ls-pieza { transform: translate(-9px,-16px) scale(1.05); filter: drop-shadow(0 20px 14px rgba(0,0,0,.7)); }
.ls-svg.cortada .ls-relleno, .ls-svg.cortada .ls-relleno-grabado, .ls-svg.cortada .ls-relleno-agujero { opacity: 1; }
.ls-svg.cortada .ls-trazo { stroke: #4a2610; stroke-width: 1.8; }
.ls-chispas { position: absolute; pointer-events: none; z-index: 3; }

/* --- Tu nombre en 3D --- */
.h3d-nombre { position: relative; width: 480px; height: 220px; transform-style: preserve-3d; display: flex; align-items: center; justify-content: center; margin-top: -40px; }
.nm-giro { transform-style: preserve-3d; animation: nm-vaiven 7s ease-in-out infinite alternate; }
.nm-letras { position: relative; transform-style: preserve-3d; font: 900 100px/1.15 Georgia, 'Times New Roman', serif; letter-spacing: .015em; white-space: nowrap; }
.nm-letras span { display: block; }
.nm-capa { position: absolute; left: 0; top: 0; }
.nm-frente { position: relative; background: linear-gradient(105deg, #d9a566 0%, #d9a566 38%, #fff3d6 50%, #d9a566 62%, #a8743a 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: nm-brillo 4.5s linear infinite; filter: drop-shadow(0 0 10px rgba(255,150,70,.6)); }
@keyframes nm-vaiven { from { transform: rotateX(-7deg) rotateY(-34deg); } to { transform: rotateX(-4deg) rotateY(34deg); } }
@keyframes nm-brillo { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.nm-suelo { position: absolute; left: 50%; bottom: -18px; width: 70%; height: 36px; margin-left: -35%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,150,70,.4), rgba(255,150,70,0) 70%); filter: blur(8px); }
.nm-form { position: absolute; left: 50%; bottom: 8px; width: 330px; margin-left: -165px; z-index: 6; text-align: center; user-select: text; }
.nm-form label { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 5px; }
.nm-fila { display: flex; gap: 8px; align-items: stretch; }
.nm-fila input { flex: 1; min-width: 0; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(201,151,74,.7); background: rgba(16,12,9,.78); color: var(--cream); font-size: 16px; text-align: center; backdrop-filter: blur(4px); }
.nm-fila input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,74,.3); }
.nm-fila .btn { white-space: nowrap; }

/* --- Logo de partículas --- */
.h3d-estilo-particulas .h3d-escena { transform: none !important; }
.h3d-particulas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-slide:not(.active) .nm-giro, .hero-slide:not(.active) .nm-frente { animation-play-state: paused; }
@media (max-width: 900px) {
  .h3d-estilo-nombre .nm-form { transform: scale(1.38); transform-origin: bottom center; }
  .hero-slide.hero-escena:has(.h3d-estilo-nombre) .hero-text p { display: none; }
}
@media (max-width: 520px) { .h3d-estilo-nombre .nm-form { transform: scale(1.62); } }
@media (prefers-reduced-motion: reduce) { .nm-giro, .nm-frente { animation: none !important; } .nm-giro { transform: rotateY(-18deg); } }

/* Aviso de precio al por mayor (inicio) */
.mayorista-banner { padding: 18px 0; background: #120d09; }
.mayorista-caja { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-radius: 14px; border: 1px solid rgba(201,151,74,.55); background: linear-gradient(100deg, rgba(201,151,74,.18), rgba(201,151,74,.05) 55%, rgba(201,151,74,.14)); box-shadow: 0 8px 26px rgba(0,0,0,.35), 0 0 30px rgba(201,151,74,.1); }
.mayorista-icono { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(201,151,74,.2); border: 1px solid rgba(201,151,74,.6); }
.mayorista-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mayorista-texto b { font-size: 17px; color: var(--gold); }
.mayorista-texto span { color: var(--cream); font-size: 14.5px; line-height: 1.45; }
.mayorista-caja .btn { flex: none; white-space: nowrap; }
@media (max-width: 720px) { .mayorista-caja { flex-direction: column; text-align: center; gap: 12px; padding: 18px 16px; } .mayorista-caja .btn { width: 100%; justify-content: center; } }

/* Carrito: cantidad editable y aviso de precio al por mayor */
.cant-form { position: relative; display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.cant-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cant-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-soft); background: transparent; color: var(--cream); font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.cant-btn:hover { background: rgba(201,151,74,.2); border-color: var(--gold); }
.cant-input { width: 54px; height: 30px; text-align: center; border-radius: 8px; border: 1px solid var(--border-soft); background: #150f0a; color: var(--cream); font-size: 14px; -moz-appearance: textfield; }
.cant-input::-webkit-outer-spin-button, .cant-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cant-mayor { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(201,151,74,.18); border: 1px solid var(--gold); color: var(--cream); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.aviso-mayorista-carrito { display: flex; flex-direction: column; gap: 3px; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(201,151,74,.6); background: linear-gradient(100deg, rgba(201,151,74,.2), rgba(201,151,74,.06)); }
.aviso-mayorista-carrito b { color: var(--gold); }
.aviso-mayorista-carrito span { font-size: 13.5px; color: var(--cream); }

/* Casilla de ofertas y novedades en el formulario del pedido */
.check-novedades { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(201,151,74,.45); background: rgba(201,151,74,.07); cursor: pointer; font-size: 13px; line-height: 1.45; color: var(--cream); }
.check-novedades input { margin-top: 3px; flex: none; accent-color: var(--gold); }
.check-novedades span { color: var(--text-muted); }
.check-novedades b { color: var(--cream); }

/* Aviso «ya estás registrado / suscrito» en el formulario del pedido */
.estado-cliente { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.estado-cliente.estado-ok { border: 1px solid rgba(47,158,90,.55); background: rgba(47,158,90,.1); color: var(--cream); }
.estado-cliente b { color: var(--cream); }

/* Seguimiento del pedido: cada estado con su icono, color y animación; la línea se llena hasta el estado actual */
.seg-ruta { position: relative; margin: 30px 0 14px; }
.seg-linea { position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 6px; border-radius: 6px; background: rgba(255,255,255,.09); overflow: hidden; z-index: 0; }
.seg-linea-llena { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #e6a23c, #4e8cff, #9b6bff, #2f9e5a); box-shadow: 0 0 14px rgba(255,255,255,.25);
  clip-path: inset(0 100% 0 0); animation: seg-llenar 1.8s .35s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes seg-llenar { to { clip-path: inset(0 calc(100% - var(--llena)) 0 0); } }
.seg-pasos { position: relative; z-index: 1; display: flex; }
.seg-paso { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: 0; transform: translateY(16px); animation: seg-entra .6s calc(var(--i) * .2s + .1s) cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes seg-entra { to { opacity: 1; transform: none; } }
.seg-icono { position: relative; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; background: #17110d; border: 3px solid rgba(255,255,255,.14); transition: all .3s ease; }
.seg-icono span { display: inline-block; line-height: 1; }
.seg-paso b { font-size: 13px; color: var(--text-muted); }
.seg-paso small { font-size: 11px; color: var(--text-muted); min-height: 14px; }
.seg-paso.futuro .seg-icono span { filter: grayscale(1); opacity: .45; }
.seg-paso.hecho .seg-icono { background: color-mix(in srgb, var(--c) 22%, #17110d); border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 40%, transparent); }
.seg-paso.hecho b { color: var(--cream); }
.seg-ok { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; animation: seg-pop .5s calc(var(--i) * .2s + 1.3s) cubic-bezier(.3,1.6,.5,1) both; }
@keyframes seg-pop { from { transform: scale(0); } to { transform: scale(1); } }
/* el estado actual late y su icono tiene su propio movimiento */
.seg-paso.actual .seg-icono { animation: seg-late 1.8s ease-in-out infinite; }
@keyframes seg-late { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent), 0 0 16px color-mix(in srgb, var(--c) 40%, transparent); } 50% { box-shadow: 0 0 0 12px transparent, 0 0 24px color-mix(in srgb, var(--c) 60%, transparent); } }
.seg-paso.actual b { color: var(--c); }
.paso-pendiente.actual .seg-icono span { animation: seg-reloj 2.2s ease-in-out infinite; transform-origin: 50% 50%; }
.paso-en_proceso.actual .seg-icono span { animation: seg-gira 3s linear infinite; }
.paso-enviado.actual .seg-icono span { animation: seg-camion 1s ease-in-out infinite; }
.paso-entregado.actual .seg-icono span { animation: seg-fiesta 1.3s ease-in-out infinite; }
@keyframes seg-reloj { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes seg-gira { to { transform: rotate(360deg); } }
@keyframes seg-camion { 0%, 100% { transform: translateX(-5px) translateY(0); } 50% { transform: translateX(5px) translateY(-3px); } }
@keyframes seg-fiesta { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.25) rotate(-12deg); } 60% { transform: scale(1.1) rotate(10deg); } }
.paso-enviado.actual .seg-icono::after { content: "💨"; position: absolute; left: -22px; top: 50%; margin-top: -10px; font-size: 16px; opacity: 0; animation: seg-polvo 1s ease-in-out infinite; }
@keyframes seg-polvo { 0% { opacity: 0; transform: translateX(10px); } 50% { opacity: .9; } 100% { opacity: 0; transform: translateX(-8px); } }
.paso-entregado.actual .seg-icono::before { content: "✨"; position: absolute; right: -10px; top: -10px; font-size: 18px; animation: seg-brilla 1.3s ease-in-out infinite; }
@keyframes seg-brilla { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }
/* mensaje del estado actual */
.seg-mensaje { display: flex; align-items: center; gap: 14px; margin: 18px 0 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: linear-gradient(100deg, color-mix(in srgb, var(--c) 20%, transparent), color-mix(in srgb, var(--c) 5%, transparent)); opacity: 0; transform: translateY(10px); animation: seg-entra .6s 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.seg-mensaje-icono { flex: none; font-size: 30px; line-height: 1; }
.seg-mensaje p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cream); }
.seg-mensaje p b { color: var(--c); }
@media (max-width: 520px) { .seg-icono { width: 50px; height: 50px; font-size: 23px; } .seg-linea { top: 22px; } .seg-paso b { font-size: 12px; } .seg-paso small { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .seg-linea-llena { animation: none; clip-path: inset(0 calc(100% - var(--llena)) 0 0); } .seg-paso, .seg-mensaje { animation: none; opacity: 1; transform: none; } .seg-paso.actual .seg-icono, .seg-paso.actual .seg-icono span, .seg-ok, .seg-icono::before, .seg-icono::after { animation: none !important; } }

/* Confirmar el recibido y calificar (seguimiento del pedido) */
.seg-confirmar { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(201,151,74,.5); background: rgba(201,151,74,.07); text-align: left; }
.seg-confirmar.obligatorio { border-color: rgba(230,57,70,.7); background: linear-gradient(100deg, rgba(230,57,70,.14), rgba(201,151,74,.06)); animation: seg-obliga 2.2s ease-in-out infinite; }
@keyframes seg-obliga { 0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,.0); } 50% { box-shadow: 0 0 0 6px rgba(230,57,70,.18); } }
.seg-confirmar h4 { margin: 0 0 6px; font-size: 16px; }
.seg-confirmar p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-muted); }
.seg-confirmar details > summary { display: inline-block; list-style: none; cursor: pointer; margin-bottom: 12px; }
.seg-confirmar details > summary::-webkit-details-marker { display: none; }
.seg-confirmar form { display: flex; flex-direction: column; gap: 12px; }
.seg-confirmar textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-soft); background: #150f0a; color: var(--cream); font-size: 14px; resize: vertical; }
.seg-confirmar small { color: var(--text-muted); font-size: 12px; text-align: center; }
.seg-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.seg-estrellas { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.seg-estrellas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-estrellas label { font-size: 34px; line-height: 1; color: rgba(255,255,255,.2); cursor: pointer; transition: color .15s ease, transform .15s ease; }
.seg-estrellas label:hover, .seg-estrellas label:hover ~ label, .seg-estrellas input:checked ~ label { color: #f5b942; }
.seg-estrellas label:hover { transform: scale(1.2); }
.seg-estrellas input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }
.seg-estrellas-txt { order: 99; margin-right: 10px; font-size: 13px; color: var(--text-muted); }
.seg-gracias { text-align: center; border-color: rgba(47,158,90,.6); background: rgba(47,158,90,.1); }
.seg-gracias h4 { color: #2f9e5a; }
@media (prefers-reduced-motion: reduce) { .seg-confirmar.obligatorio { animation: none; } }
/* Fotos que el cliente tomó de su producto al recibirlo */
.testi-fotos { display: grid; gap: 6px; margin: 0 0 14px; grid-template-columns: repeat(3, 1fr); }
.testi-fotos.n1 { grid-template-columns: 1fr; }
.testi-fotos.n2 { grid-template-columns: repeat(2, 1fr); }
.testi-foto { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #222; cursor: zoom-in; }
.testi-fotos:not(.n1) .testi-foto { aspect-ratio: 1; }
.testi-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.testi-foto:hover img { transform: scale(1.06); }
.testi-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; animation: testi-lb-in .25s ease; }
.testi-lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 10px 50px rgba(0,0,0,.6); }
@keyframes testi-lb-in { from { opacity: 0; } to { opacity: 1; } }

/* ¿Cómo trabajamos?: la línea se dibuja, cada paso aparece uno tras otro y los iconos tienen vida propia */
.steps-row::after {
  content: ''; position: absolute; top: 37px; left: 10%; right: 10%; height: 3px; border-radius: 3px; z-index: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  box-shadow: 0 0 12px rgba(232, 184, 109, .7);
  transform: scaleX(0); transform-origin: left center;
}
.steps-dot { position: absolute; top: 31px; left: 10%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; z-index: 2; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #fff 0%, var(--gold-light) 45%, rgba(232,184,109,0) 72%); box-shadow: 0 0 16px 4px rgba(232, 184, 109, .85); }
.steps-pre .step-item { opacity: 0; transform: translateY(28px) scale(.85); }
.steps-vista::after { animation: steps-linea 1.5s .15s cubic-bezier(.45,.05,.2,1) forwards; }
.steps-vista .steps-dot { animation: steps-viaja 4.5s 1.8s ease-in-out infinite; }
.steps-vista .step-item { animation: step-entra .7s calc(var(--i) * .28s + .2s) cubic-bezier(.2,.9,.3,1.25) backwards; }
.steps-vista .step-item .step-num { animation: step-num-pop .5s calc(var(--i) * .28s + .75s) cubic-bezier(.3,1.7,.5,1) backwards; }
.steps-vista .step-icon::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--gold-light); opacity: 0; pointer-events: none;
  animation: step-onda 3.2s calc(var(--i) * .5s + 2s) ease-out infinite;
}
@keyframes steps-linea { to { transform: scaleX(1); } }
@keyframes steps-viaja { 0% { left: 10%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 90%; opacity: 0; } }
@keyframes step-entra { from { opacity: 0; transform: translateY(28px) scale(.85); } }
@keyframes step-num-pop { from { transform: scale(0) rotate(-90deg); } }
@keyframes step-onda { 0% { opacity: .75; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.55); } }
/* cada icono se mueve a su manera */
.steps-vista .step-item:nth-of-type(1) .step-icon-emoji { animation: ico-habla 2.6s 2s ease-in-out infinite; }
.steps-vista .step-item:nth-of-type(2) .step-icon-emoji { animation: ico-lapiz 2.4s 2.2s ease-in-out infinite; transform-origin: 20% 90%; }
.steps-vista .step-item:nth-of-type(3) .step-icon-emoji { animation: ico-sobre 2.8s 2.4s ease-in-out infinite; }
.steps-vista .step-item:nth-of-type(4) .step-icon-emoji { animation: ico-martillo 1.6s 2.6s ease-in-out infinite; transform-origin: 80% 90%; }
.steps-vista .step-item:nth-of-type(5) .step-icon-emoji { animation: ico-camion 2.2s 2.8s ease-in-out infinite; }
@keyframes ico-habla { 0%, 60%, 100% { transform: scale(1) rotate(0); } 15% { transform: scale(1.18) rotate(-8deg); } 30% { transform: scale(1) rotate(6deg); } 45% { transform: scale(1.1) rotate(-3deg); } }
@keyframes ico-lapiz { 0%, 100% { transform: rotate(0) translateX(0); } 25% { transform: rotate(-14deg) translateX(-3px); } 50% { transform: rotate(8deg) translateX(3px); } 75% { transform: rotate(-8deg) translateX(-1px); } }
@keyframes ico-sobre { 0%, 55%, 100% { transform: translateY(0); } 15% { transform: translateY(-7px); } 30% { transform: translateY(0); } 40% { transform: translateY(-3px); } }
@keyframes ico-martillo { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-24deg); } 55% { transform: rotate(14deg); } 70% { transform: rotate(0); } }
@keyframes ico-camion { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(6px) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .steps-pre .step-item { opacity: 1; transform: none; }
  .steps-row::after { transform: scaleX(1); animation: none !important; }
  .steps-dot, .steps-vista .step-item, .steps-vista .step-num, .steps-vista .step-icon::after, .steps-vista .step-icon-emoji { animation: none !important; }
}
@media (max-width: 900px) { .steps-row::after, .steps-dot { display: none; } }
