/* =========================================================
   HOLY3D — hoja de estilos (versión clara, a tono con el logo)
   Identidad: "reliquia iluminada" — fondo blanco/marfil como
   la propia luz, con el negro y dorado del logo como acento.
   El halo dorado detrás de cada producto sigue siendo la firma.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:ital,wght@1,500;1,600&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper: #FFFFFF;
  --paper-alt: #F7F4EA;
  --card: #FFFFFF;
  --card-line: #E7E1D0;
  --ink: #17140F;
  --ink-soft: #726A5B;
  --gold: #E5AE33;
  --gold-deep: #B8862E;
  --gold-dim: rgba(229, 174, 51, 0.14);
  --new-glow: #2E6B8A;
  --out: #A9432F;
  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  border-bottom: 1px solid var(--card-line);
  padding: 32px 0 22px;
}

.brand-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.ustedes-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--card-line);
  background: var(--paper-alt);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ustedes-btn svg { width: 16px; height: 16px; color: #C13584; }

.ustedes-btn:hover {
  border-color: #C13584;
  box-shadow: 0 0 0 3px rgba(193, 53, 132, 0.12);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .brand-row { grid-template-columns: 1fr auto; }
  .brand-tagline { display: none; }
}

/* En pantallas bien angostas no entra todo en una sola fila (logo + botón
   Ustedes + 3 íconos de redes) — se pasa a 2 filas, todo centrado, en vez
   de recortar íconos o forzar el ancho de la página */
@media (max-width: 480px) {
  .brand-row {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 14px;
  }
  .header-right {
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%; /* clave: sin esto no "sabe" cuándo pasar a la siguiente línea */
  }
  .ustedes-btn span { display: inline; } /* acá tiene su propia fila, sobra lugar para el texto */
}

@media (max-width: 520px) {
  .ustedes-btn span { display: none; }
}

.brand-logo-wrap {
  display: none;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap.has-logo { display: flex; }

.brand-logo {
  height: 104px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  text-align: center;
  margin: 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--gold-deep); /* respaldo por si el navegador no soporta el degradé de texto */
  background: linear-gradient(180deg, #FFEBB0 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.6px rgba(23, 20, 15, 0.22);
  filter:
    drop-shadow(1.5px 2.5px 0 rgba(184, 134, 46, 0.55))
    drop-shadow(0 10px 18px rgba(23, 20, 15, 0.18));
}

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

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--card-line);
  background: var(--paper-alt);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn svg { width: 23px; height: 23px; }

.social-btn--whatsapp {
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.35);
}
.social-btn--whatsapp:hover {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.social-btn--instagram {
  color: #C13584;
  border-color: rgba(193, 53, 132, 0.3);
}
.social-btn--instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #FFFFFF;
  border-color: transparent;
}

.social-btn--tiktok {
  color: var(--ink);
  border-color: var(--card-line);
}
.social-btn--tiktok:hover {
  background: #010101;
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.25);
}

.catalog-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ---------- Shipping banner ---------- */

.shipping-banner {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-bottom: 1px solid var(--card-line);
}

.shipping-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 11px 24px;
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.banner-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-divider {
  width: 1px;
  height: 16px;
  background: rgba(23, 20, 15, 0.35);
}

@media (max-width: 620px) {
  .banner-divider { display: none; }
  .shipping-banner-inner { gap: 6px 20px; padding: 10px 20px; }
}

.banner-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Controls: search + tabs ---------- */

.controls {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--card-line);
  padding: 18px 0;
}

.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.search-input {
  flex: 1;
  min-width: 0;
  background: var(--paper-alt);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
}

.search-input::placeholder { color: var(--ink-soft); }

.search-input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

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

.tab {
  position: relative;
  overflow: hidden;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--card);
  border: 1.5px solid var(--card-line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color 0.25s ease, border-color 0.25s ease,
    transform 0.2s ease, letter-spacing 0.25s ease, box-shadow 0.25s ease;
}

/* Brillo diagonal que "barre" el botón al pasar el mouse */
.tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.tab:hover::after { left: 130%; }

.tab:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-2px) scale(1.05);
  letter-spacing: 0.06em;
  box-shadow: 0 8px 18px -8px rgba(184, 134, 46, 0.55), 0 0 0 1px rgba(229, 174, 51, 0.3);
}

.tab[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: var(--gold-deep);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(184, 134, 46, 0.65);
}

.tab[aria-pressed="true"]:hover {
  transform: translateY(-2px) scale(1.03);
  letter-spacing: 0.04em;
}


.tab:focus-visible,
.search-input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ---------- Grid ---------- */

.grid-section {
  padding: 32px 0 64px;
}

.result-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

/* ---------- Product card ("ficha iluminada") ---------- */

.product-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow:
    0 18px 36px -16px rgba(184, 134, 46, 0.5),
    0 0 0 1px rgba(229, 174, 51, 0.35),
    0 0 26px rgba(229, 174, 51, 0.28);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.corner-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.product-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  background: var(--ink);
  color: var(--gold);
  padding: 3px 7px;
  border-radius: 2px;
  letter-spacing: 0.03em;
}

.product-price-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.72rem;
  background: var(--gold);
  color: var(--ink);
  padding: 3px 7px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(23, 20, 15, 0.15);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 2px;
  color: var(--paper);
}

.product-badge.nuevo { background: var(--new-glow); }
.product-badge.agotado { background: var(--out); }

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 45%, var(--gold-dim), transparent 65%),
    var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Destello: rayos de luz irradiando desde atrás de la foto, al estilo del
   logo (como si la luz saliera del propio producto), no una barra cruzando */
.product-image::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 0;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 224, 150, 0.65) 0deg 3deg,
    transparent 3deg 16deg
  );
  opacity: 0;
  transform: scale(0.55) rotate(0deg);
  transition: opacity 0.6s ease, transform 1.1s ease;
  transition-timing-function: ease-out;
  pointer-events: none;
}

.product-card:hover .product-image::before {
  opacity: 0.85;
  transform: scale(1.05) rotate(35deg);
}

.product-image img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(23, 20, 15, 0.15));
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.product-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--ink);
  position: relative;
  z-index: 1;
}

.img-dot--video {
  border-radius: 2px;
  width: 8px;
}

.product-image .no-image {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

/* ---------- Carrusel de imágenes por producto ---------- */

.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(23, 20, 15, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}

.img-nav:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

.img-nav-prev { left: 8px; }
.img-nav-next { right: 8px; }

.img-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.img-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 20, 15, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.img-dot.active {
  background: var(--gold);
  border-color: var(--gold-deep);
  transform: scale(1.25);
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}

.product-name {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  color: var(--ink-soft);
  font-size: 0.87rem;
  margin: 0;
  line-height: 1.45;
}

.wholesale-note {
  color: var(--gold-deep);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  margin: 2px 0 0;
  line-height: 1.4;
}

.wholesale-cta {
  display: inline-block;
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-deep);
}

.wholesale-cta:hover { color: var(--ink); border-color: var(--ink); }

.product-actions {
  margin-top: auto;
  padding-top: 10px;
}

.consult-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.consult-btn:hover {
  background: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.consult-btn svg { width: 15px; height: 15px; }

/* ---------- Sección de reparaciones ---------- */

.repair-section {
  background: var(--paper-alt);
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
  padding: 56px 0;
}

.repair-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.repair-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-line);
  aspect-ratio: 4 / 3;
  background: var(--card);
}

.repair-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.repair-eyebrow, .section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin: 0 0 8px;
  font-weight: 600;
}

.repair-title, .section-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 16px;
  line-height: 1.25;
  color: var(--ink);
}

/* ---------- Sección "Ustedes ❤" ---------- */

/* ---------- Modal "Ustedes ❤" ---------- */

.testimonials-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 13, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.testimonials-modal[hidden] { display: none; }

.testimonials-modal-panel {
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 32px;
  text-align: center;
}

.testimonials-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
}

.testimonials-modal-close:hover { color: var(--ink); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 24px;
  text-align: left;
}

.testimonial-item {
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  aspect-ratio: 3 / 4;
}

.testimonial-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.testimonial-item img:hover { transform: scale(1.03); }

.testimonials-empty {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 20px;
}

.repair-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 22px;
}

.repair-desc strong { color: var(--ink); }

.repair-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 12px 22px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.repair-cta:hover { background: var(--gold-deep); }

@media (max-width: 780px) {
  .repair-inner { grid-template-columns: 1fr; gap: 24px; }
  .repair-section { padding: 40px 0; }
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

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

.site-footer {
  border-top: 1px solid var(--card-line);
  padding: 26px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Páginas legales (privacidad, cookies, términos) ---------- */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--gold-deep);
  text-decoration: none;
  margin-bottom: 28px;
}

.legal-page .back-link:hover { text-decoration: underline; }

.legal-page h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 6px;
  color: var(--ink);
}

.legal-page .legal-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.legal-page h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 32px 0 10px;
}

.legal-page p, .legal-page li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-page a { color: var(--gold-deep); }

.legal-page ul { padding-left: 20px; }

.legal-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--card-line);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
}

.legal-nav a { color: var(--ink-soft); }
.legal-nav a:hover { color: var(--gold-deep); }

.footer-legal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-legal-links a { color: var(--ink-soft); text-decoration: none; }
.footer-legal-links a:hover { color: var(--gold-deep); }

.zoomable-image { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 13, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 620px) {
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 40px; height: 40px; }
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 8px 14px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.qty-btn:hover { background: var(--gold-deep); }

.qty-input {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--paper);
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(244, 239, 228, 0.4);
  width: 44px;
  text-align: center;
  padding: 2px 0;
}

.qty-input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

/* Ocultar las flechitas nativas del navegador para que se vea más limpio */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input[type="number"] { -moz-appearance: textfield; }

.qty-subtotal {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--gold-deep);
  margin: 6px 0 0;
}

/* ---------- Barra flotante "Pedirlo!" ---------- */

.order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--ink);
  border-top: 1px solid var(--gold);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
}

.order-bar[hidden] { display: none; }

.order-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 24px;
  flex-wrap: wrap;
}

.order-bar-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.order-bar-count {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--paper);
}

.order-bar-total {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold);
}

.order-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-bar-clear {
  background: transparent;
  border: 1px solid rgba(244, 239, 228, 0.35);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
}

.order-bar-clear:hover { border-color: var(--paper); }

.order-bar-cta {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.order-bar-cta:hover { background: var(--gold-deep); }

body.has-order-bar { padding-bottom: 64px; }

@media (max-width: 560px) {
  .order-bar-inner { justify-content: center; text-align: center; }
  body.has-order-bar { padding-bottom: 90px; }
}

/* ---------- Partículas doradas flotando ---------- */

.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .particles-canvas { display: none; }
}

/* ---------- Marcos dorados en las esquinas de las tarjetas ---------- */

.product-card::before,
.product-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(229, 174, 51, 0.8));
}

.product-card::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.product-card::after {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.product-card:hover::before,
.product-card:hover::after {
  opacity: 1;
  width: 26px;
  height: 26px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

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

@media (max-width: 560px) {
  .site-header { padding: 24px 0 18px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-name { font-size: 0.92rem; }
  .brand-logo { height: 74px; }
}
