/* ============================================
   DAVDS3D — Fabricamos tu imaginación
   ============================================ */

:root {
  --bg: #0b0d12;
  --bg-soft: #11141c;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eef1f7;
  --text-dim: #9aa3b5;
  --cyan: #4cf5e0;
  --magenta: #ff5fb8;
  --amber: #ffb454;
  --radius: 18px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Background ambience */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px circle at 12% 18%, rgba(76, 245, 224, 0.14), transparent 60%),
    radial-gradient(720px circle at 88% 12%, rgba(255, 95, 184, 0.12), transparent 60%),
    radial-gradient(900px circle at 50% 100%, rgba(255, 180, 84, 0.07), transparent 60%),
    var(--bg);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, 0.72);
  border-bottom: 1px solid var(--panel-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img { height: 42px; width: 42px; border-radius: 10px; object-fit: cover; }
.brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--cyan); }

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

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box input {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 16px 10px 38px;
  font-size: 0.88rem;
  width: 190px;
  transition: width 0.25s ease, border-color 0.2s ease;
}
.search-box input:focus {
  outline: none;
  border-color: var(--cyan);
  width: 240px;
}
.search-box svg {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  stroke: var(--text-dim);
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  display: none;
  z-index: 220;
}
.search-results.open { display: block; }
.search-results .sr-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
  transition: background 0.15s ease;
}
.search-results .sr-item:last-child { border-bottom: none; }
.search-results .sr-item:hover { background: rgba(255,255,255,0.04); cursor: pointer; }
.search-results img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.search-results .sr-name { font-size: 0.86rem; font-weight: 600; }
.search-results .sr-price { font-size: 0.76rem; color: var(--cyan); }
.search-empty { padding: 16px; font-size: 0.85rem; color: var(--text-dim); text-align: center; }
.search-toggle { display: none; }
.search-close {
  display: none;
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-dim);
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.search-close svg { width: 16px; height: 16px; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { border-color: var(--cyan); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--magenta);
  color: #1a0312;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.btn-wsp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #128c4a);
  color: #07210f;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-wsp:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37, 211, 102, 0.35); }
.btn-wsp svg { width: 18px; height: 18px; fill: currentColor; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.04;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--cyan), var(--magenta) 60%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  color: #0a0710;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  font-size: 0.96rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 14px 40px rgba(76, 245, 224, 0.18);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(255, 95, 184, 0.28); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 50px;
}
.hero-stats div strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  background: linear-gradient(120deg, var(--cyan), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats div span { font-size: 0.8rem; color: var(--text-dim); }

/* Hero visual: layered floating "print" shapes */
.hero-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.08);
}
.orbit.o1 { width: 360px; height: 360px; animation: spin 38s linear infinite; }
.orbit.o2 { width: 460px; height: 460px; animation: spin 56s linear infinite reverse; }
.orbit.o3 { width: 250px; height: 250px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.print-core {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(76,245,224,0.18), rgba(255,95,184,0.14));
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 90px rgba(76, 245, 224, 0.2);
  animation: float 7s ease-in-out infinite;
}
.print-core img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
  mix-blend-mode: luminosity;
  opacity: 0.75;
}
.print-core::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  z-index: 2;
}
.print-core .core-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(76,245,224,0.35), transparent 55%),
    linear-gradient(-20deg, rgba(255,95,184,0.3), transparent 50%);
  mix-blend-mode: screen;
  z-index: 1;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(3deg); } }

.chip-float {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 6s ease-in-out infinite;
}
.chip-float.c1 { top: 14%; left: -4%; animation-delay: 0.4s; }
.chip-float.c2 { bottom: 12%; right: -6%; animation-delay: 1.2s; color: var(--cyan); }
.chip-float.c3 { bottom: 30%; left: -10%; animation-delay: 2s; color: var(--magenta); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }

/* ===== Section heading ===== */
.section-head {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 1.02rem; }

section { padding: 90px 0; }

/* ===== About / quienes somos ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 34px;
  backdrop-filter: blur(10px);
}
.about-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.about-card p { color: var(--text-dim); }
.feature-list { display: grid; gap: 16px; margin-top: 28px; }
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--text-dim);
}
.feature-list .ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(76,245,224,0.18), rgba(255,95,184,0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.feature-list strong { color: var(--text); display: block; font-size: 0.98rem; }

/* ===== Filters / catalog ===== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 44px;
}
.filter-chip {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--cyan); }
.filter-chip.active {
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  color: #0a0710;
  border-color: transparent;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 245, 224, 0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, rgba(76,245,224,0.08), rgba(255,95,184,0.06));
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-media img { transform: scale(1.07); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11,13,18,0.7);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(6px);
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.product-name { font-family: "Space Grotesk", sans-serif; font-size: 1.12rem; font-weight: 700; }
.product-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}
.product-price { font-family: "Space Grotesk", sans-serif; font-size: 1.18rem; font-weight: 700; color: var(--cyan); }
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #0a0710;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-add:hover { background: var(--cyan); transform: translateY(-2px); }
.btn-add svg { width: 15px; height: 15px; stroke: currentColor; }

.catalog-empty, .catalog-loading {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-dim);
}
.spinner {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid var(--panel-border);
  border-top-color: var(--cyan);
  margin: 0 auto 18px;
  animation: spin 1s linear infinite;
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.process-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.process-card .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  display: block;
}
.process-card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.process-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ===== Social / contact CTA ===== */
.contact-cta {
  background: linear-gradient(135deg, rgba(76,245,224,0.1), rgba(255,95,184,0.08));
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
}
.contact-cta h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); max-width: 480px; }
.contact-cta p { color: var(--text-dim); margin-top: 12px; max-width: 460px; }
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.social-row a:hover { border-color: var(--cyan); transform: translateY(-3px); }
.social-row svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 44px 0 30px;
  color: var(--text-dim);
  font-size: 0.86rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--cyan); }
.admin-link { opacity: 0.4; font-size: 0.78rem; }
.admin-link:hover { opacity: 1; color: var(--cyan); }

/* ===== Cart drawer ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,6,10,0.6);
  backdrop-filter: blur(3px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--bg-soft);
  border-left: 1px solid var(--panel-border);
  z-index: 310;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.2,.9,.25,1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--panel-border);
}
.cart-head h3 { font-size: 1.2rem; }
.cart-close {
  background: var(--panel); border: 1px solid var(--panel-border);
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cart-close svg { width: 16px; height: 16px; stroke: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 24px; display: grid; gap: 16px; }
.cart-item {
  display: flex; gap: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px;
}
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .ci-name { font-weight: 700; font-size: 0.92rem; }
.cart-item-info .ci-price { color: var(--cyan); font-size: 0.85rem; margin-top: 2px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--panel-border); border: none; color: var(--text);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.qty-row span { font-size: 0.88rem; min-width: 18px; text-align: center; }
.ci-remove { margin-left: auto; color: var(--text-dim); font-size: 0.78rem; }
.ci-remove:hover { color: var(--magenta); }
.cart-empty { text-align: center; color: var(--text-dim); padding: 60px 20px; }
.cart-foot { padding: 22px 24px; border-top: 1px solid var(--panel-border); }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; font-weight: 700;
  margin-bottom: 16px;
}
.cart-total span:last-child { color: var(--cyan); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 120%);
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 400;
  transition: transform 0.35s cubic-bezier(.2,.9,.25,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translate(-50%, 0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* ===== WhatsApp floating button ===== */
.wsp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 250;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c4a);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.4);
  animation: pulse 2.6s ease-in-out infinite;
}
.wsp-float svg { width: 30px; height: 30px; fill: #07210f; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 16px 56px rgba(37, 211, 102, 0.65); }
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; order: -1; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .search-box input { width: 150px; }
  .search-box input:focus { width: 190px; }
  .contact-cta { padding: 36px; }
}
@media (max-width: 600px) {
  .hero { padding: 80px 0 60px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  section { padding: 64px 0; }

  /* Buscador como panel desplegable bajo el header en móvil */
  .search-toggle { display: inline-flex; }
  .search-box {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    z-index: 230;
    background: var(--bg-soft);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .search-box.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .search-box input,
  .search-box input:focus { width: 100%; }
  .search-close { display: inline-flex; }
  .search-results { left: 0; right: 0; width: auto; }
}

/* ===== Modal: detalle de producto ===== */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5,6,10,0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.product-modal.open { opacity: 1; visibility: visible; }
.product-modal[hidden] { display: flex; }

.pm-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s cubic-bezier(.2,.9,.25,1);
}
.product-modal.open .pm-card { transform: scale(1) translateY(0); }

.pm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(11,13,18,0.6);
}

.pm-media {
  position: relative;
  min-height: 320px;
  background: var(--panel);
}
.pm-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-media .product-badge { position: absolute; top: 18px; left: 18px; }

.pm-body {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pm-name { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; font-weight: 700; }
.pm-desc { color: var(--text-dim); line-height: 1.65; flex: 1; }
.pm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--panel-border);
}
.pm-price { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--cyan); }

@media (max-width: 720px) {
  .pm-card { grid-template-columns: 1fr; }
  .pm-media { min-height: 240px; }
}

/* ===== Tendencias (banner rotativo) ===== */
.trends-section { padding-top: 0; }
.trends-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
}
.trends-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.2,.9,.25,1);
}
.trend-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 0;
  min-height: 320px;
}
.trend-media {
  position: relative;
  height: 100%;
  min-height: 320px;
  background: var(--bg);
}
.trend-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trend-media .product-badge { position: absolute; top: 18px; left: 18px; }
.trend-info {
  padding: 38px 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trend-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.trend-name { font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; font-weight: 700; }
.trend-desc { color: var(--text-dim); line-height: 1.6; max-width: 460px; }
.trend-foot { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.trend-price { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--cyan); }

.trends-dots {
  position: absolute;
  bottom: 18px;
  right: 26px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.trends-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.25);
  transition: background 0.25s ease, width 0.25s ease;
  cursor: pointer;
}
.trends-dots button.active { background: var(--cyan); width: 26px; }

@media (max-width: 720px) {
  .trend-slide { grid-template-columns: 1fr; min-height: auto; }
  .trend-media { min-height: 220px; }
  .trend-info { padding: 26px 24px 50px; }
  .trends-dots { right: 24px; bottom: 16px; }
}
