/*!
 * IDEA STUDIO — styles.css
 * Estudio mexicano de impresión 3D · interiorismo + manufactura a la medida
 * Tú imaginas el futuro. Nosotros lo imprimimos.
 *
 * Organización del archivo:
 *   1. Variables de marca (tokens)
 *   2. Reset + base
 *   3. Tipografía utilitaria
 *   4. Header / navegación
 *   5. Hero
 *   6. Barra de beneficios
 *   7. Destacado de colección
 *   8. Categorías (cards)
 *   9. Nosotros
 *   10. Servicios
 *   11. Proceso
 *   12. Newsletter
 *   13. Instagram
 *   14. Footer
 *   15. Placeholder low-poly (genérico, reutilizado en tienda/producto)
 *   16. Tienda (catálogo)
 *   17. Producto (detalle)
 *   18. Carrito (drawer + página)
 *   19. Utilidades de animación / reveal
 *   20. Responsive
 * ------------------------------------------------------------------ */

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

/* ============ 1. VARIABLES DE MARCA ============ */
:root {
  /* Paleta oficial IDEA STUDIO */
  --negro-studio: #000000;
  --amarillo-idea: #FBDC5D;
  --dorado-studio: #F6BF48;
  --cobre-claro: #DBBB4E;
  --bronce-3d: #7C612C;
  --blanco: #FFFFFF;
  --gris-neutro: #4A4A4A;

  /* Tokens semánticos construidos sobre la paleta */
  --bg: var(--negro-studio);
  --bg-raised: #0b0b0b;
  --bg-card: #121212;
  --bg-card-hover: #171410;
  --text: var(--blanco);
  --text-mute: #c9c6bd;
  --text-dim: #8a8780;
  --accent: var(--amarillo-idea);
  --accent-hover: var(--dorado-studio);
  --accent-soft: var(--cobre-claro);
  --accent-deep: var(--bronce-3d);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(251, 220, 93, 0.35);
  --shadow-gold: 0 20px 60px -20px rgba(246, 191, 72, 0.35);

  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --nav-h: 84px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

/* ============ 2. RESET + BASE ============ */
* { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
section { position: relative; }
.section-pad { padding-block: clamp(4rem, 9vw, 7rem); }

/* Franja low-poly decorativa entre secciones */
.facet-divider {
  height: 46px;
  width: 100%;
  display: block;
  color: var(--bg-raised);
}
.facet-divider path { fill: currentColor; }

/* ============ 3. TIPOGRAFÍA UTILITARIA ============ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow-diamond::before {
  content: "◆";
  color: var(--accent);
  font-size: 0.6em;
  margin-right: 0.4em;
}
.h-xl { font-size: clamp(2.6rem, 6.6vw, 5.4rem); text-wrap: balance; }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.4rem); text-wrap: balance; }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.text-mute { color: var(--text-mute); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.max-measure { max-width: 62ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 2em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s var(--ease-soft), color 0.25s var(--ease-soft), border-color .25s var(--ease-soft);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #171204;
  box-shadow: 0 10px 30px -8px rgba(251, 220, 93, 0.55);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(246, 191, 72, 0.65);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.7em 1.4em; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============ 4. HEADER / NAV ============ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft), height 0.3s var(--ease-soft);
}
.site-header.is-solid {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: rgba(0,0,0,0.97); }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
}
.brand-logo-img {
  display: block;
  height: 38px;
  width: auto;
}
.footer-brand .brand-logo-img { height: 68px; }

.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.main-nav > ul { display: flex; align-items: center; gap: 2.1rem; }
.nav-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mute);
  padding-block: 0.4em;
  transition: color 0.25s var(--ease-soft);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after { right: 0; }

.nav-item-has-children { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.6);
}
.nav-item-has-children:hover .nav-dropdown,
.nav-item-has-children:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-mute);
  font-weight: 500;
}
.nav-dropdown a:hover { background: rgba(251,220,93,0.08); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(251,220,93,0.08); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 19px; height: 19px;
  border-radius: 999px;
  background: var(--accent);
  color: #171204;
  font-size: 0.66rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}
.cart-badge.is-visible { transform: scale(1); }

.hamburger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  position: relative;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-soft), opacity 0.2s var(--ease-soft), top .3s var(--ease-soft);
}
.hamburger span { top: 50%; transform: translateY(-50%); }
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
.hamburger.is-open span { background: transparent; }
.hamburger.is-open span::before { top: 0; transform: rotate(45deg); }
.hamburger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Menú móvil */
.mobile-nav {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 90;
  background: rgba(0,0,0,0.98);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav .container { padding-block: 2rem; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav > .container > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav a.nav-link { display: block; padding: 1.1rem 0; font-size: 1.05rem; }
.mobile-nav .nav-dropdown-mobile { padding-left: 1rem; padding-bottom: 0.8rem; display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-nav .nav-dropdown-mobile a { font-size: 0.9rem; color: var(--text-dim); padding: 0.5rem 0; }

/* ============ 5. HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: clip;
  background: radial-gradient(120% 90% at 50% 0%, #141008 0%, #000 62%);
}
.hero-facets {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.62;
}
.hero-facets svg { width: 100%; height: 100%; display: block; }
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 46%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.4) 45%, transparent 75%),
    radial-gradient(ellipse at 50% 40%, transparent 8%, rgba(0,0,0,0.6) 65%, rgba(0,0,0,0.94) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 30%, transparent 66%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.hero-content .kicker { justify-content: center; margin-bottom: 1.4rem; }
/* Encabezado-marca a pantalla completa: "IDEA STUDIO" como wordmark dorado. */
.hero-mega-clip {
  overflow: hidden;
  margin-top: 0.4rem;
}
.hero-mega-heading {
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  white-space: nowrap;
  text-align: center;
  font-size: clamp(3rem, 13vw, 12rem);
  text-wrap: balance;
  background: linear-gradient(100deg, var(--dorado-studio), var(--amarillo-idea) 45%, var(--cobre-claro));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
}

/* Retrato de producto con efecto magnético (sigue el cursor — ver initMagnet en main.js).
   Dos capas separadas a propósito: `.hero-portrait` centra/posiciona el bloque;
   `.hero-portrait-magnet` es el elemento que initMagnet mueve con transform inline,
   así los dos transforms nunca se pisan entre sí. */
.hero-portrait {
  position: absolute;
  left: 50%;
  bottom: clamp(64px, 10vh, 100px); /* despeja el "Descubre más" del pie del hero */
  transform: translateX(-50%);
  z-index: 3;
  width: min(46vw, 200px);
}
@media (min-width: 640px) { .hero-portrait { width: min(30vw, 250px); } }
@media (min-width: 1024px) { .hero-portrait { width: 300px; } }
.hero-portrait-magnet {
  display: block;
  will-change: transform;
  transition: transform 0.6s ease-in-out;
}
.hero-portrait-magnet.is-active { transition: transform 0.3s ease-out; }
.hero-portrait-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65));
}
.hero-scroll-cue {
  position: absolute;
  bottom: clamp(1.4rem, 3vw, 2.4rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-scroll-cue .stick {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: scaleY(0.3); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.3); opacity: 0.3; transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue .stick { animation: none; opacity: 0.6; }
}

/* ============ 6. BARRA DE BENEFICIOS ============ */
.benefits-bar {
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}
.benefits-bar ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mute);
  text-align: left;
}
.benefit-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

/* ============ 7. DESTACADO DE COLECCIÓN ============ */
.showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.showcase-figure { position: relative; }
.showcase-copy .h-xl { margin-bottom: 1.2rem; }
.showcase-copy p { margin-bottom: 2rem; }
.showcase.is-reverse { grid-template-columns: 1fr 1.1fr; }
.showcase.is-reverse .showcase-figure { order: 2; }

/* ============ 8. CATEGORÍAS ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.category-card {
  position: relative;
  border-radius: 22px;
  overflow: clip;
  border: 1px solid var(--line);
  background: var(--bg-card);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-soft);
}
.category-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.category-card .ph-wrap { position: absolute; inset: 0; z-index: 0; }
.category-card .card-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 68%, rgba(0,0,0,0.92) 100%);
}
.category-card .card-body {
  position: relative; z-index: 2;
  padding: 1.9rem 2rem 2.2rem;
}
.category-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.category-card p { color: var(--text-mute); margin-bottom: 1.3rem; max-width: 32ch; }

/* ============ 9. NOSOTROS ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-figure { position: relative; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.2rem;
}
.stat-row .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--accent);
  font-weight: 800;
}
.stat-row .stat span { font-size: 0.8rem; color: var(--text-dim); }

/* ============ 10. SERVICIOS ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  padding: 1.9rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--bg-card-hover); }
.service-card .service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251, 220, 93, 0.1);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.service-card .service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.86rem; color: var(--text-mute); }
.service-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(155deg, #1a1509, #0d0b05 60%);
  border-color: var(--line-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: clip;
}
.service-card.is-featured::before {
  content: "";
  position: absolute; inset: -40% -20% auto auto;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(246,191,72,0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.service-card.is-featured .service-icon { width: 58px; height: 58px; background: rgba(251,220,93,0.16); }
.service-card.is-featured .service-icon svg { width: 30px; height: 30px; }
.service-card.is-featured h3 { font-size: 1.3rem; }
.service-card.is-featured p { font-size: 0.95rem; max-width: 32ch; }
.service-card.is-featured .tag-featured {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* ============ 11. PROCESO — tarjetas con resplandor y borde degradado ============ */
.glow-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.glow-card {
  position: relative;
  height: 300px;
}
/* Resplandor: copia borrosa del degradado, detrás de la tarjeta */
.glow-card-bg {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  opacity: 0.45;
  filter: blur(45px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-soft);
}
.glow-card:hover .glow-card-bg { opacity: 0.7; }
/* Primer plano: borde degradado real vía el truco padding-box/border-box */
.glow-card-fg {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 40px;
  border: 2px solid transparent;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: clip;
  transition: transform 0.4s var(--ease-out);
}
.glow-card:hover .glow-card-fg { transform: translateY(-4px); }
.glow-card-icon {
  width: 44px; height: 44px;
  color: rgba(255, 255, 255, 0.92);
}
.glow-card-icon svg { width: 100%; height: 100%; }
.glow-card-step {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.glow-card-fg h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.glow-card-fg p { font-size: 0.86rem; color: var(--text-mute); line-height: 1.6; }

/* ============ 12. NEWSLETTER ============ */
.newsletter-section {
  background: linear-gradient(155deg, #171204 0%, #000 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.newsletter-form {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin-inline: auto;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1 1 240px;
  padding: 0.95em 1.3em;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s var(--ease-soft);
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-note { margin-top: 0.9rem; font-size: 0.78rem; color: var(--text-dim); min-height: 1.2em; }

/* ============ 13. INSTAGRAM ============ */
.insta-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.insta-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: clip;
  border: 1px solid var(--line);
}
.insta-item .ph-wrap { position: absolute; inset: 0; }
.insta-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s var(--ease-soft);
}
.insta-item:hover::after { background: rgba(0,0,0,0.15); }
.insta-item svg.insta-mark {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 18px; height: 18px; color: rgba(255,255,255,0.85);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

/* ============ 14. FOOTER ============ */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand p { color: var(--text-dim); font-size: 0.88rem; margin-top: 1rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-mute); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.social-row { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom a:hover { color: var(--accent); }

/* ============ 15. PLACEHOLDER LOW-POLY ============ */
/* Contenedor base — se hidrata vía JS con un SVG facetado procedural.
   Si JS falla, el degradado + icono de respaldo definidos aquí ya comunican
   la categoría del producto, así el contenido nunca queda vacío (D.3). */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: clip;
  background: linear-gradient(145deg, #1c1508 0%, #0a0805 55%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
}
.ph svg.ph-fallback-icon { width: 34%; height: 34%; opacity: 0.5; }
.ph svg.ph-lowpoly { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph .ph-tag {
  position: absolute;
  bottom: 10px; left: 10px;
  z-index: 3;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.3em 0.6em;
  border-radius: 999px;
  pointer-events: none;
}
.ph-square { aspect-ratio: 1; }
.ph-portrait { aspect-ratio: 4/5; }
.ph-wide { aspect-ratio: 16/9; }

/* Fotografía real de producto — mismo marco/recorte que .ph (comparte los
   modificadores ph-square/ph-portrait/ph-wide de arriba) pero sin el
   degradado ni el ícono, porque aquí ya hay una foto real que mostrar. */
.ph-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: clip;
  background: #0a0805;
}
.ph-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ 16. TIENDA ============ */
.shop-header {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4rem));
  padding-bottom: 2.5rem;
  text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, #141008 0%, #000 60%);
  border-bottom: 1px solid var(--line);
}
.shop-header .h-xl { margin-top: 1rem; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.55em 1.2em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mute);
  background: transparent;
  transition: all 0.25s var(--ease-soft);
}
.filter-tab:hover { border-color: var(--accent); color: var(--text); }
.filter-tab.is-active { background: var(--accent); border-color: var(--accent); color: #171204; }
.sort-select {
  padding: 0.6em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}
.result-count { font-size: 0.82rem; color: var(--text-dim); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: clip;
  background: var(--bg-card);
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease-soft);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.product-card .ph-wrap { position: relative; }
.product-card .new-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--accent);
  color: #171204;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: 999px;
}
.product-card .quick-add {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), background 0.2s, color 0.2s, border-color .2s;
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.product-card .quick-add:hover { background: var(--accent); color: #171204; border-color: var(--accent); }
.product-card .quick-add svg { width: 18px; height: 18px; }
.product-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-card-body .cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.product-card-body h3 { font-size: 1rem; font-weight: 700; }
.product-card-body .price { font-family: var(--font-display); color: var(--accent); font-weight: 700; margin-top: 0.3rem; }
.product-card-link { display: block; }
.empty-state { padding: 4rem 1rem; text-align: center; color: var(--text-dim); }

/* ============ 17. PRODUCTO (detalle) ============ */
.pdp {
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 2.5rem));
}
.breadcrumbs { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1.6rem; }
.breadcrumbs a:hover { color: var(--accent); }
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.pdp-gallery { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.pdp-gallery .ph { border-radius: 20px; border: 1px solid var(--line); }
.pdp-info .cat-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pdp-info h1 { margin-top: 0.6rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pdp-info .tagline { color: var(--text-mute); margin-top: 0.6rem; font-size: 1.02rem; }
.pdp-price { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); font-weight: 800; margin-top: 1.2rem; }
.pdp-desc { margin-top: 1.4rem; color: var(--text-mute); line-height: 1.75; }
.pdp-details { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
.pdp-details li { font-size: 0.88rem; color: var(--text-mute); display: flex; gap: 0.6em; align-items: baseline; }
.pdp-details li::before { content: "—"; color: var(--accent); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.qty-stepper { display: flex; align-items: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; overflow: clip; }
.qty-stepper button { width: 40px; height: 40px; background: transparent; color: var(--text); font-size: 1.1rem; }
.qty-stepper button:hover { background: rgba(251,220,93,0.1); color: var(--accent); }
.qty-stepper input { width: 44px; text-align: center; background: transparent; border: none; color: var(--text); font-weight: 700; }
.pdp-actions { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.pdp-note { margin-top: 1.6rem; font-size: 0.78rem; color: var(--text-dim); border-top: 1px solid var(--line); padding-top: 1.2rem; }
.related-heading { margin-top: clamp(4rem, 8vw, 6rem); margin-bottom: 1.8rem; }

/* ============ 18. CARRITO ============ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-soft);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(420px, 92vw);
  background: var(--bg-raised);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 { font-size: 1.1rem; }
.cart-drawer-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; }
.cart-drawer-close:hover { border-color: var(--accent); color: var(--accent); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-line { display: flex; gap: 0.9rem; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
.cart-line .ph-wrap { width: 74px; height: 74px; border-radius: 12px; overflow: clip; flex-shrink: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.cart-line-info .cat { font-size: 0.72rem; color: var(--text-dim); }
.cart-line-info .price { color: var(--accent); font-weight: 700; font-size: 0.88rem; margin-top: 0.3rem; }
.cart-line-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.cart-line-actions .qty-stepper { transform: scale(0.85); transform-origin: left center; }
.cart-line-remove { font-size: 0.75rem; color: var(--text-dim); text-decoration: underline; }
.cart-line-remove:hover { color: var(--accent); }
.cart-drawer-foot { padding: 1.3rem 1.5rem 1.6rem; border-top: 1px solid var(--line); }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 1rem; }
.cart-subtotal-row b { color: var(--accent); font-family: var(--font-display); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-dim); }
.cart-empty svg { width: 46px; height: 46px; margin-bottom: 1rem; opacity: 0.4; }

/* Página carrito completa */
.cart-page { padding-top: calc(var(--nav-h) + 3rem); min-height: 70vh; }
.cart-page-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.cart-page-list { display: flex; flex-direction: column; }
.cart-page-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); align-items: center; }
.cart-page-line .ph-wrap { width: 96px; height: 96px; border-radius: 14px; overflow: clip; }
.summary-card { border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; background: var(--bg-card); position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.summary-card h3 { margin-bottom: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--text-mute); margin-bottom: 0.7rem; }
.summary-row.total { color: var(--text); font-weight: 700; font-size: 1.05rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.summary-row.total b { color: var(--accent); font-family: var(--font-display); }

/* ============ 19. UTILIDADES DE ANIMACIÓN ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; } /* defensivo: ver gotcha A.4.5 */
.reveal-stagger.is-visible .stagger-child {
  animation: staggerIn 0.7s var(--ease-out) forwards;
}
@keyframes staggerIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 300;
  background: var(--accent);
  color: #171204;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.9em 1.4em;
  border-radius: 999px;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 999;
  background: var(--accent); color: #171204; padding: 0.7em 1.2em; border-radius: 8px; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ============ 20. RESPONSIVE ============ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.is-featured { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }
  .showcase, .showcase.is-reverse { grid-template-columns: 1fr; }
  .showcase.is-reverse .showcase-figure { order: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .benefits-bar ul { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
  .glow-card-grid { grid-template-columns: repeat(2, 1fr); }
  .glow-card { height: 260px; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-page-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
@media (max-width: 560px) {
  :root { --nav-h: 70px; }
  .benefits-bar ul { grid-template-columns: 1fr 1fr; }
  .benefit-item { font-size: 0.74rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.is-featured { grid-column: span 1; }
  .glow-card-grid { grid-template-columns: 1fr; }
  .glow-card { height: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-page-line { grid-template-columns: 72px 1fr; }
  .cart-page-line .ph-wrap { width: 72px; height: 72px; }
}

/* ============ BOTÓN FLOTANTE DE WHATSAPP ============ */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 0 0 rgba(37,211,102,0.5);
  animation: wa-pulse 2.6s ease-out infinite;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse { 70% { box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
@media (max-width: 640px) { .wa-float { right: 1rem; bottom: 1rem; width: 54px; height: 54px; } }

/* ============ CTA DE TERMOS PERSONALIZADOS ============ */
.custom-cta {
  grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem;
  border: 1px solid var(--line-strong); border-radius: 22px;
  background: linear-gradient(155deg, #1a1509, #0d0b05 70%);
}
.custom-cta h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.custom-cta p { max-width: 52ch; margin: 0 auto 1.6rem; color: var(--text-mute); line-height: 1.6; }

/* Logotipo como encabezado del hero (reemplaza el texto "IDEA STUDIO") */
.hero-mega-heading .hero-mega-logo {
  display: block;
  margin: 0 auto;
  width: clamp(300px, min(82vw, 98vh), 1000px);
  height: auto;
  filter: drop-shadow(0 12px 50px rgba(0, 0, 0, 0.55));
}
.hero-mega-clip { overflow: visible; transform: translateY(-4vh); }
