/* ===========================================================
   ACRILIK VERSE — hoja de estilos
   Paleta: azul espacial, rosa neón, morado galáctico
   =========================================================== */

:root {
  --bg: #05060f;
  --bg-2: #0a0b1e;
  --bg-3: #0b0c20;
  --pink: #ff3d9a;
  --pink-soft: #ff5ec4;
  --pink-light: #ff8fcb;
  --purple: #7b2ff7;
  --purple-2: #9b2ff7;
  --warm: #ffb347;
  --cream: #f3eee9;
  --muted: #cfc4d8;
  --muted-2: #8f83a0;
  --line: rgba(243, 238, 233, 0.09);
  --line-pink: rgba(255, 94, 196, 0.22);
  --display: "Orbitron", "Trebuchet MS", sans-serif;
  --text: "Manrope", system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink-soft); text-decoration: none; transition: color .25s; }
a:hover { color: #ffb0dd; }
img { max-width: 100%; display: block; }
button { font-family: var(--text); }
::selection { background: var(--pink); color: var(--bg); }

h1, h2, h3 { font-family: var(--display); margin: 0; }
.center { text-align: center; }

/* ---------- Estrellas y nebulosas ---------- */
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 21% 64%, #ffd6ef, transparent),
    radial-gradient(1.8px 1.8px at 34% 12%, var(--warm), transparent),
    radial-gradient(1.1px 1.1px at 46% 82%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 34%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 69% 72%, var(--warm), transparent),
    radial-gradient(1.7px 1.7px at 82% 46%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 91% 16%, #ffd6ef, transparent),
    radial-gradient(1.3px 1.3px at 95% 88%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 14% 92%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 63% 6%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 27% 40%, #fff, transparent);
}

/* ---------- Placeholders de imagen ---------- */
/* Sustituye .ph por <img src="..."> cuando tengas las fotos reales */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 10px, rgba(255,255,255,0) 10px 20px),
    var(--bg-3);
}
.ph::after {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 16px; text-align: center;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px; letter-spacing: .08em; color: var(--muted-2);
}

/* Al sustituir una caja .ph por un <img> real, estas reglas hacen que la foto
   rellene el hueco sin deformarse. Las tarjetas de producto y de novedades ya
   lo tienen resuelto en `.product-media img`. */
img.media--frame, img.media--big { display: block; object-fit: cover; }
/* Las piezas flotantes del hero son enlaces a su ficha. */
.float a { display: block; width: 100%; height: 100%; }
.float img { width: 100%; height: 100%; }
.float a:hover img { border-color: var(--pink-soft); }
/* Flotan en bucle: si no se paran al pasar por encima, son un blanco movil y
   cuesta acertar el clic. */
.float:hover, .float:focus-within { animation-play-state: paused; }
img.media--big { width: 100%; }
.cat-card > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Pantallas ---------- */
/* Cada seccion de <main> es una pantalla; script.js oculta las que no tocan
   con el atributo `hidden`. El !important es obligatorio: varias secciones
   traen su propio `display` (.split es grid, .panel es block) y una regla de
   clase gana al display:none que el navegador aplica a [hidden] — es el mismo
   fallo que tuvo el cajon del carrito.

   Sin JavaScript no se oculta nada y la pagina se lee entera, seguida, que es
   lo que ve un buscador que no ejecute scripts. */
main [data-view][hidden] { display: none !important; }

/* Una pantalla corta no debe dejar el pie a media altura. */
main { min-height: calc(100vh - 230px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 22, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 94, 196, .14);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; display: block; object-fit: cover;
  border: 1.5px solid var(--pink); border-radius: 8px;
  box-shadow: 0 0 18px rgba(255, 61, 154, .35);
}
.brand-text { display: block; line-height: 1; }
.brand-name {
  display: block; font-family: var(--display); font-weight: 900; font-size: 17px;
  letter-spacing: .12em; color: #ff4fa8; text-shadow: 0 0 16px rgba(255, 61, 154, .5);
}
.brand-sub {
  display: block; font-family: var(--display); font-weight: 500; font-size: 10px;
  letter-spacing: .42em; color: var(--muted); margin-top: 3px;
}

.nav { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.nav a { font-size: 13.5px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.nav a.is-active { color: var(--cream); }
.nav a:hover { color: var(--pink-soft); }

/* ---------- Colecciones: desplegable de la cabecera ---------- */
.nav-item--sub { position: relative; display: inline-flex; align-items: center; gap: 5px; }

.nav-caret {
  width: 18px; height: 18px; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: none; border: 0; color: var(--muted);
  transition: transform .25s ease, color .25s;
}
/* Flecha dibujada en CSS: un carácter se vería distinto en cada sistema. */
.nav-caret::before {
  content: ''; width: 6px; height: 6px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-caret:hover, .nav-item--sub:hover .nav-caret { color: var(--pink-soft); }
.nav-caret.is-open { transform: rotate(180deg); color: var(--pink-soft); }

.nav-sub {
  position: absolute; top: calc(100% + 14px); left: -14px; z-index: 60;
  min-width: 318px; padding: 8px;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(10, 11, 30, .97);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
/* Puente invisible para que el ratón pueda bajar del enlace al panel. */
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item--sub:hover .nav-sub { display: block; }
.nav-item--sub:hover .nav-sub[hidden] { display: block; }

.nav-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13px; color: var(--muted); white-space: nowrap;
  transition: background .2s, color .2s;
}
/* Las colecciones, en cuadrícula de dos columnas. En lista vertical el
   desplegable se hacía más alto que la cabecera al añadir colecciones. */
.nav-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-sub-grid a {
  gap: 7px; padding: 8px 10px;
  font-size: 12px; line-height: 1.25; white-space: normal;
}
.nav-sub-grid .nav-sub-icon { font-size: 12.5px; }
.nav-sub a:hover { background: rgba(255, 94, 196, .12); color: #fff; }
.nav-sub a.is-on { color: var(--pink-light); background: rgba(255, 94, 196, .1); }
.nav-sub-sep { display: block; height: 1px; margin: 6px 10px; background: var(--line); }
.nav-sub-icon { font-size: 15px; line-height: 1; }

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

.lang-switch {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid rgba(243, 238, 233, .12); border-radius: 10px;
}
.lang-btn {
  height: 30px; padding: 0 9px; display: grid; place-items: center;
  border: none; border-radius: 7px; background: transparent; color: var(--muted);
  font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .25s, color .25s;
}
.lang-btn:hover { color: var(--cream); }
.lang-btn.is-on { background: linear-gradient(135deg, var(--pink), #a02ff7); color: #fff; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(243, 238, 233, .12); border-radius: 10px;
  background: transparent; color: var(--cream); font-size: 15px; cursor: pointer;
  position: relative; transition: border-color .25s, color .25s;
}
.icon-btn:hover, .icon-btn.is-on { border-color: var(--pink-soft); color: var(--pink-soft); }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 99px;
  background: var(--purple); color: #fff;
  font-family: var(--display); font-size: 9px; font-weight: 700;
}
.cart-btn {
  height: 38px; padding: 0 16px; display: flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255, 61, 154, .55); border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), #a02ff7); color: #fff; cursor: pointer;
  font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  box-shadow: 0 0 22px rgba(255, 61, 154, .35); transition: box-shadow .25s;
}
.cart-btn:hover { box-shadow: 0 0 32px rgba(255, 61, 154, .6); }
.cart-count { background: rgba(5, 6, 15, .4); border-radius: 99px; padding: 2px 7px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(243, 238, 233, .12); background: transparent;
  color: var(--cream); font-size: 16px; cursor: pointer;
}

.search-bar { border-top: 1px solid rgba(255, 94, 196, .14); background: rgba(9, 10, 28, .95); }
.search-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 28px;
  display: flex; gap: 12px; align-items: center;
}
.search-inner input {
  flex: 1; height: 46px; padding: 0 18px;
  border: 1px solid rgba(255, 94, 196, .3); border-radius: 12px;
  background: rgba(255, 255, 255, .03); color: var(--cream);
  font-family: var(--text); font-size: 14px; outline: none;
}
.search-inner input:focus { border-color: var(--pink-soft); }
.search-hint { font-family: var(--display); font-size: 10px; letter-spacing: .2em; color: var(--muted-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px; border-radius: 14px; border: 1px solid transparent;
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .16em;
  cursor: pointer; transition: box-shadow .28s, color .25s, background .25s, border-color .25s;
}
/* Sin esta regla, el display:inline-flex de .btn gana al display:none que el
   navegador aplica a [hidden] y un botón oculto se sigue viendo — el mismo
   fallo que ya tenían el cajón del carrito y las pantallas de <main>. Lo
   destapó #stripeCheckout, que se mostraba sin Stripe configurado. */
.btn[hidden] { display: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--pink), var(--purple-2)); color: #fff;
  box-shadow: 0 14px 40px rgba(255, 61, 154, .3);
}
.btn--primary:hover { box-shadow: 0 18px 54px rgba(255, 61, 154, .55); color: #fff; }
.btn--ghost { border-color: rgba(243, 238, 233, .2); color: var(--cream); }
.btn--ghost:hover { border-color: var(--pink-soft); color: var(--pink-soft); }
.btn--outline { border-color: rgba(255, 94, 196, .45); color: var(--pink-light); }
.btn--outline:hover { background: rgba(255, 61, 154, .12); color: #fff; }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% 18%, rgba(160, 47, 247, .34), transparent 70%),
    radial-gradient(760px 520px at 12% 78%, rgba(255, 61, 154, .22), transparent 72%),
    radial-gradient(900px 700px at 50% 0%, rgba(30, 20, 90, .7), transparent 75%),
    var(--bg);
}
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 96px 28px 110px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 64px; align-items: center;
}
.eyebrow-pill {
  display: inline-flex; padding: 7px 14px; margin-bottom: 28px;
  border: 1px solid rgba(255, 94, 196, .35); border-radius: 99px;
  background: rgba(255, 61, 154, .08);
  font-family: var(--display); font-size: 10px; letter-spacing: .24em; color: var(--pink-light);
}
.hero-title {
  font-weight: 900; font-size: clamp(38px, 5.4vw, 74px); line-height: .98;
  letter-spacing: -.01em; margin-bottom: 24px; text-wrap: balance;
  background: linear-gradient(100deg, #fff 8%, var(--pink-soft) 46%, #a860ff 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 61, 154, .35));
}
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 520px; margin: 0 0 38px; text-wrap: pretty; }
.lead--center { margin: 0 auto 40px; text-align: center; }

.stats { display: flex; gap: 38px; flex-wrap: wrap; margin: 52px 0 0; padding: 0; list-style: none; }
.stats strong { display: block; font-family: var(--display); font-size: 26px; color: #fff; }
.stats span { display: block; font-size: 12px; letter-spacing: .14em; color: var(--muted-2); margin-top: 4px; }

.hero-art { position: relative; min-height: 520px; }
.nebula {
  position: absolute; inset: 6% 4%; border-radius: 50%; filter: blur(30px);
  background: radial-gradient(circle, rgba(255, 61, 154, .28), rgba(123, 47, 247, .16) 45%, transparent 70%);
}
.float { position: absolute; margin: 0; animation: float 8s ease-in-out infinite; }
.float--1 { left: 2%;  top: 4%;    width: 46%; height: 40%; animation-duration: 7s; }
.float--2 { right: 0;  top: 20%;   width: 50%; height: 46%; animation-duration: 9s; animation-delay: -2s; }
.float--3 { left: 16%; bottom: 2%; width: 42%; height: 34%; animation-delay: -4s; }
.media--frame {
  width: 100%; height: 100%; border-radius: 21px; overflow: hidden;
  border: 1px solid rgba(255, 94, 196, .5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.spark { position: absolute; animation: twinkle 4s ease-in-out infinite; }
.spark--a { right: 8%; bottom: 8%; font-size: 22px; color: var(--warm); }
.spark--b { left: 0; top: 52%; font-size: 15px; color: var(--pink-light); animation-duration: 4.2s; }
.spark--c { right: 30%; top: 2%; font-size: 13px; color: #fff; animation-duration: 5s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Estructura de secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 104px 28px 40px; }
.section--narrow { max-width: 900px; padding-bottom: 100px; }
.section--band { max-width: none; padding: 90px 0 100px; background: linear-gradient(180deg, transparent, rgba(123, 47, 247, .07), transparent); }
.section--band .section-head, .section--band .rail { max-width: var(--max); margin: 0 auto; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 44px; padding: 0 28px;
}
.section:not(.section--band) .section-head { padding: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head h2, .section h2 { font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); color: #fff; }
.eyebrow { font-family: var(--display); font-size: 10px; letter-spacing: .28em; color: var(--pink-soft); margin: 0 0 14px; }
.eyebrow--warm { color: var(--warm); font-size: 11px; letter-spacing: .3em; }
.eyebrow--pink { color: var(--pink-light); font-size: 11px; letter-spacing: .3em; }
.section-note { font-size: 15px; color: var(--muted-2); max-width: 330px; margin: 0; }
.link-arrow {
  font-family: var(--display); font-size: 11px; letter-spacing: .16em; color: var(--pink-soft);
  border-bottom: 1px solid rgba(255, 94, 196, .4); padding-bottom: 4px;
}

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.cat-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(255, 61, 154, .22); border-color: rgba(255, 94, 196, .45); }
.cat-card.is-active { border-color: var(--pink-soft); box-shadow: 0 0 0 2px rgba(255, 94, 196, .35); }
.cat-card .ph { aspect-ratio: 4 / 5; }
.cat-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 15, 0) 40%, rgba(5, 6, 15, .92) 100%); }
.cat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.cat-icon { font-size: 22px; margin-bottom: 8px; }
.cat-body h3 { font-weight: 700; font-size: 17px; color: #fff; letter-spacing: .06em; margin-bottom: 8px; }
.cat-body p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Productos ---------- */
/* El display:flex de la clase gana al display:none que el navegador aplica
   a [hidden], igual que en el cajón del carrito: sin esta regla la barra de
   filtros se queda como una franja rosa vacía encima de la cuadrícula. */
.product-filter-bar[hidden] { display: none; }
.product-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 0 0 24px; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 61, 154, .08); border: 1px solid var(--line-pink);
  font-family: var(--display); font-size: 11px; letter-spacing: .04em; color: var(--pink-light);
}
.product-filter-bar button {
  font-family: var(--display); font-size: 10px; letter-spacing: .1em; font-weight: 700;
  color: var(--cream); background: transparent; border: 1px solid rgba(243, 238, 233, .25);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; transition: border-color .2s, color .2s;
}
.product-filter-bar button:hover { border-color: var(--pink-soft); color: var(--pink-soft); }
.product-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted-2); font-size: 14.5px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 20px; }
.product {
  /* Columna flexible para que el precio y el botón queden al fondo de la
     tarjeta aunque el nombre de la pieza ocupe dos líneas. */
  display: flex; flex-direction: column;
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(243, 238, 233, .08);
  background: linear-gradient(180deg, var(--bg-3), #08091a);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(123, 47, 247, .28); border-color: rgba(255, 94, 196, .4); }
.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.product-media .ph { position: absolute; inset: 0; transition: transform .5s ease; }
.product:hover .product-media .ph { transform: scale(1.06); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product-media img { transform: scale(1.06); }
.tag {
  position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 99px;
  background: rgba(5, 6, 15, .78); border: 1px solid rgba(255, 94, 196, .4);
  font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--pink-light);
}
.fav {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 99px;
  border: 1px solid rgba(243, 238, 233, .15); background: rgba(5, 6, 15, .7);
  color: var(--muted); font-size: 13px; cursor: pointer; transition: color .25s, border-color .25s;
}
.fav:hover, .fav.is-on { color: var(--pink-soft); border-color: var(--pink-soft); }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 16px 16px 18px; }
.product-cat { font-family: var(--display); font-size: 10px; letter-spacing: .2em; color: var(--muted-2); margin-bottom: 8px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--cream); margin-bottom: 10px; line-height: 1.35; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--display); font-size: 16px; font-weight: 700; color: #fff; }
.add {
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 61, 154, .4); background: rgba(255, 61, 154, .12);
  color: var(--pink-light); cursor: pointer;
  font-family: var(--display); font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  transition: background .25s, color .25s, border-color .25s;
}
.add:hover { background: linear-gradient(135deg, var(--pink), var(--purple-2)); color: #fff; border-color: transparent; }

/* ---------- Sección artesanal ---------- */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 56px; align-items: center; padding: 110px 28px;
}
.split-media { position: relative; }
.media--big {
  aspect-ratio: 4 / 3.4; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255, 94, 196, .18); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.media-tag {
  position: absolute; right: -14px; bottom: -22px; padding: 18px 22px; border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 44px rgba(255, 61, 154, .35);
}
.media-tag strong { display: block; font-family: var(--display); font-size: 20px; color: #fff; }
.media-tag span { display: block; font-size: 11px; letter-spacing: .14em; color: rgba(255, 255, 255, .85); margin-top: 4px; }
.split-copy h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; margin-bottom: 24px; }

/* Varios parrafos seguidos: necesitan aire entre ellos y una medida de linea
   comoda, que el bloque es largo. */
.split-texto { max-width: 62ch; }
.split-texto p { margin: 0 0 16px; line-height: 1.7; }
.split-texto p:last-child { margin-bottom: 26px; font-weight: 600; color: var(--cream); }
.split-copy p { font-size: 16.5px; line-height: 1.7; color: var(--muted); max-width: 520px; margin: 0 0 18px; text-wrap: pretty; }
.split-copy p + p { margin-bottom: 34px; }

/* ---------- Carrusel novedades ---------- */
.rail-nav { display: flex; gap: 10px; }
.rail-nav .icon-btn { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.rail {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 6px 28px 22px; scroll-snap-type: x mandatory;
  scrollbar-color: #3a1e5c #12132b;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: #3a1e5c; border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: #12132b; border-radius: 99px; }
.new-card {
  flex: 0 0 300px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .3s, box-shadow .3s;
}
.new-card:hover { border-color: rgba(255, 94, 196, .45); box-shadow: 0 22px 50px rgba(255, 61, 154, .18); }
/* Cuadradas, como las de la rejilla: las fotos de producto son verticales y
   un recorte apaisado 5:4 cortaba la pieza por la mitad. */
.new-card .product-media { aspect-ratio: 1 / 1; }
.new-card .tag { border-color: rgba(255, 179, 71, .45); color: #ffcf8f; }
.new-body { padding: 18px; }
.new-body .product-name { font-size: 15.5px; }
.add--solid { background: linear-gradient(135deg, var(--pink), var(--purple-2)); color: #fff; border-color: transparent; }
.add--solid:hover { box-shadow: 0 0 24px rgba(255, 61, 154, .5); }

/* ---------- Paneles (advertencia y newsletter) ---------- */
.panel { position: relative; overflow: hidden; margin: 0 28px; border-radius: 28px; border: 1px solid var(--line-pink); }
.panel--warning {
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(255, 61, 154, .22), transparent 70%),
    radial-gradient(700px 460px at 85% 90%, rgba(123, 47, 247, .3), transparent 70%),
    #07081a;
}
.panel--news {
  margin-bottom: 90px;
  background:
    radial-gradient(620px 380px at 25% 20%, rgba(255, 61, 154, .3), transparent 70%),
    radial-gradient(680px 420px at 80% 80%, rgba(123, 47, 247, .38), transparent 70%),
    #08091c;
}
.panel-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 92px 32px; text-align: center; }
.panel--news .panel-inner { max-width: 760px; padding: 88px 32px; }
.glow { font-weight: 900; font-size: clamp(30px, 4.6vw, 58px); color: #fff; margin-bottom: 20px; text-shadow: 0 0 40px rgba(255, 61, 154, .4); }
.panel--news .glow { font-size: clamp(26px, 3.8vw, 46px); margin-bottom: 18px; }
.warn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; text-align: left; }
.warn-card {
  padding: 20px 22px; border-radius: 16px;
  background: rgba(5, 6, 15, .55); border: 1px solid rgba(243, 238, 233, .08);
  font-size: 15px; color: var(--cream);
}
.news-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.news-form input {
  flex: 1 1 280px; max-width: 380px; height: 54px; padding: 0 20px;
  border: 1px solid rgba(243, 238, 233, .18); border-radius: 14px;
  background: rgba(5, 6, 15, .5); color: var(--cream);
  font-family: var(--text); font-size: 15px; outline: none;
}
.news-form input:focus { border-color: var(--pink-soft); }
.news-form .btn { height: 54px; padding: 0 26px; font-size: 11.5px; }
.news-ok { margin: 18px 0 0; font-size: 14.5px; color: var(--pink-light); }
.news-ok--err { color: #ffb4b4; }

/* Panel de contacto: los tres canales (WhatsApp, email, Instagram) y, debajo,
   la newsletter cuando está configurada. */
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.contact-links .btn { height: 54px; padding: 0 26px; font-size: 11.5px; }
.news-wrap {
  margin-top: 46px; padding-top: 38px;
  border-top: 1px solid rgba(243, 238, 233, .12);
}
.news-wrap .lead--center { margin-bottom: 26px; }

/* ---------- Ficha de producto (?producto=<id>) ---------- */
.ficha { padding-top: 28px; }

.ficha-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted-2); margin-bottom: 28px;
}
.ficha-crumb-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--pink-light);
}
.ficha-crumb-link:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 3px; border-radius: 4px; }
.ficha-crumb-link:hover { text-decoration: underline; }
.ficha-crumb-current { color: var(--cream); }

.ficha-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: start;
}

.ficha-main {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
}
.ficha-main img, .ficha-main .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.ficha-main .ph { position: absolute; inset: 0; }

.ficha-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ficha-thumb {
  width: 68px; height: 68px; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .25s, transform .25s;
}
.ficha-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ficha-thumb:hover { transform: translateY(-2px); border-color: rgba(255, 94, 196, .45); }
.ficha-thumb.is-on { border-color: var(--pink-soft); box-shadow: 0 0 0 2px rgba(255, 94, 196, .3); }

.ficha-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08;
  color: #fff; margin: 10px 0 14px;
}
.ficha-price {
  font-family: var(--display); font-size: 26px; font-weight: 700;
  color: var(--pink-light); margin-bottom: 20px;
}
.ficha-lead { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 26px; }
/* Párrafos 2.º y siguientes de una descripción larga: menos aire entre ellos
   que el que deja el primero antes de los botones. */
.ficha-lead--more { margin-top: -14px; }

.ficha-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ficha-add { height: 54px; padding: 0 30px; }
.fav--ficha {
  position: static; width: 54px; height: 54px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 18px;
}
.ficha-custom { margin: 16px 0 0; font-size: 13.5px; color: var(--muted-2); }

/* La foto acompana mientras se lee la ficha, que puede ser larga. */
.ficha-media { position: sticky; top: 96px; }

.ficha-blocks { display: grid; gap: 14px; margin-top: 36px; }
.ficha-block {
  padding: 24px 26px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(123, 47, 247, .08), rgba(11, 12, 32, .6));
}
.ficha-block h2 {
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--muted-2); margin: 0 0 14px;
}
.ficha-block p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
.ficha-block p:last-child { margin-bottom: 0; }
.ficha-block a { color: var(--pink-light); }

.ficha-specs { margin: 0; display: grid; gap: 10px; }
.ficha-specs > div {
  display: grid; grid-template-columns: minmax(0, 96px) minmax(0, 1fr); gap: 12px;
  font-size: 14px; line-height: 1.5;
}
.ficha-specs dt { color: var(--muted-2); }
.ficha-specs dd { margin: 0; color: var(--cream); }

.ficha-related { margin-top: 72px; }
.ficha-related h2 {
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--muted-2); margin: 0 0 20px;
}
.ficha-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px;
}
.ficha-related-card {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2); padding-bottom: 14px;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s;
}
.ficha-related-card:hover { transform: translateY(-5px); border-color: rgba(255, 94, 196, .4); }
.ficha-related-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.ficha-related-media img, .ficha-related-media .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ficha-related-name { padding: 14px 16px 4px; font-size: 14px; color: var(--cream); }
.ficha-related-card .price { padding: 0 16px; font-size: 14px; }

.ficha-missing { text-align: center; padding: 80px 20px; }
.ficha-missing p { color: var(--muted); margin-bottom: 20px; }

/* El nombre de la tarjeta es ahora un enlace a la ficha. */
.product-name { display: block; color: inherit; }
a.product-name:hover { color: var(--pink-light); }
.product-link { display: block; position: absolute; inset: 0; }
.product-link img, .product-link .ph { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (max-width: 860px) {
  .ficha-grid { grid-template-columns: 1fr; gap: 28px; }
  .ficha-media { position: static; }
  .ficha-blocks { margin-top: 30px; }
  .ficha-related { margin-top: 48px; }
}

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.testi {
  border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(123, 47, 247, .1), rgba(11, 12, 32, .6));
}
.testi-head {
  display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px dashed rgba(255, 94, 196, .25);
}
.dot { width: 7px; height: 7px; border-radius: 99px; background: #4be6a8; box-shadow: 0 0 10px #4be6a8; }
.testi-head span { font-family: var(--display); font-size: 9.5px; letter-spacing: .22em; color: var(--muted-2); }
.testi p { font-size: 15.5px; line-height: 1.65; color: var(--cream); margin: 0 0 20px; text-wrap: pretty; }
.testi-foot { display: flex; align-items: center; justify-content: space-between; }
.testi-name { font-family: var(--display); font-size: 11px; letter-spacing: .12em; color: var(--pink-light); }
.testi-stars { font-size: 12px; color: var(--warm); }

/* ---------- FAQ ---------- */
.section--narrow h2 { font-size: clamp(22px, 2.8vw, 34px); margin-bottom: 36px; }
.faq-list { display: grid; gap: 12px; }
.faq {
  border-radius: 16px; padding: 22px 24px;
  border: 1px solid var(--line); background: rgba(11, 12, 32, .7);
}
.faq h3 { font-weight: 700; font-size: 12.5px; letter-spacing: .06em; color: #fff; margin-bottom: 10px; }
.faq p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 94, 196, .14); background: #060714; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 68px 28px 34px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 44px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand-sub { margin: 4px 0 20px; letter-spacing: .44em; }
.footer-brand p { font-size: 14.5px; line-height: 1.65; color: var(--muted-2); margin: 0; }
.footer-col h3 { font-weight: 500; font-size: 10px; letter-spacing: .22em; color: #fff; margin-bottom: 18px; }
.footer-col { display: grid; gap: 11px; align-content: start; }
.footer-col a { font-size: 14px; color: var(--muted-2); }
.footer-col a:hover { color: var(--pink-soft); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding: 24px 28px 44px;
  border-top: 1px solid rgba(243, 238, 233, .07);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: #6f6580;
}

/* ---------- Carrito ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 4, 12, .72); backdrop-filter: blur(6px);
  display: flex; justify-content: flex-end;
}
.drawer[hidden] { display: none; }
.drawer-panel {
  width: min(400px, 100%); height: 100%; padding: 28px;
  background: #08091c; border-left: 1px solid rgba(255, 94, 196, .25);
  display: flex; flex-direction: column; gap: 18px;
  animation: slide-in .3s ease;
}
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-title { font-family: var(--display); font-size: 13px; letter-spacing: .18em; color: #fff; }
.drawer-msg { font-size: 14.5px; color: var(--muted-2); line-height: 1.6; margin: 0; }
.drawer-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; overflow-y: auto; }
.drawer-item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  font-size: 14px; color: var(--cream);
}
.drawer-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.drawer-item-name { line-height: 1.35; }
.drawer-item-remove {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  border: 1px solid var(--line); background: transparent; color: var(--muted-2);
  font-size: 11px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s;
}
.drawer-item-remove:hover { color: var(--pink-soft); border-color: var(--pink-soft); }
.drawer-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.qty-stepper { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line);
  background: transparent; color: var(--cream); font-family: var(--display); font-size: 13px;
  line-height: 1; cursor: pointer; transition: border-color .2s, color .2s;
}
.qty-btn:hover { border-color: var(--pink-soft); color: var(--pink-soft); }
.qty-value { font-family: var(--display); font-size: 12px; color: var(--pink-light); min-width: 14px; text-align: center; }
.drawer-item-price { font-family: var(--display); font-size: 12px; color: var(--pink-light); }

/* ---- Personalización dentro del carrito ---- */
.drawer-item--custom { border-color: var(--line-pink); }
.drawer-item-hint { display: block; font-size: 11px; color: var(--pink-light); margin-top: 2px; }
.drawer-custom { display: grid; gap: 8px; margin: 10px 0 4px; }
.drawer-custom-row { display: flex; align-items: center; gap: 12px; }
.drawer-custom-thumb {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none;
  border: 1px solid var(--line-pink); background: var(--bg-2);
}
.drawer-custom-thumb--empty { display: grid; place-items: center; font-size: 22px; opacity: .6; }
.drawer-upload { height: 38px; padding: 0 14px; font-size: 10px; cursor: pointer; }
.drawer-note {
  width: 100%; resize: vertical; min-height: 44px; padding: 8px 10px; box-sizing: border-box;
  font: inherit; font-size: 13px; color: var(--cream); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
}
.drawer-note:focus { outline: none; border-color: var(--pink-soft); }
.drawer-custom-status { margin: 0; font-size: 12px; color: var(--warm); }
.drawer-foot { margin-top: auto; display: grid; gap: 12px; min-height: 0; overflow-y: auto; }
.checkout-box { display: grid; gap: 10px; }
.checkout-box[hidden] { display: none; }
.secure-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted-2); text-align: center; }
/* Aviso temporal mientras el pago online no esta cerrado en produccion.
   Se quita (y con el la clave cart.building) cuando PayPal y Stripe funcionen. */
.build-note {
  margin: 0 0 4px; padding: 12px 14px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.5; text-align: center; color: var(--cream);
  border: 1px solid rgba(255, 193, 94, .45); background: rgba(255, 193, 94, .12);
}
.paypal-or { margin: 4px 0 0; font-size: 12px; text-align: center; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.paypal-buttons { min-height: 45px; }

/* ---- Pedido por WhatsApp (referencia + enlace al chat) ---- */
.checkout-error { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--warm); text-align: center; }
.checkout-error[hidden] { display: none; }
.order-ok {
  display: grid; gap: 10px; padding: 14px;
  background: var(--bg-2); border: 1px solid var(--line-pink); border-radius: 14px;
}
.order-ok[hidden] { display: none; }
.order-ok p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--cream); }
.order-ok a { color: var(--pink-light); text-decoration: underline; }
.order-ref { display: block; font-size: 17px; font-weight: 700; letter-spacing: .06em; color: var(--pink-light); }

/* ---- Aviso de cookies ---- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95;
  max-width: 620px; margin: 0 auto; padding: 18px 20px;
  display: grid; gap: 14px;
  background: rgba(10, 11, 30, .96); border: 1px solid var(--line-pink); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 61, 154, .12);
  backdrop-filter: blur(10px);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cookie-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.cookie-actions a { font-size: 13.5px; color: var(--pink-light); text-decoration: underline; }
.cookie-actions .btn { height: 42px; padding: 0 22px; font-size: 11px; }

/* ---- Toast (pedido recibido / cancelado) ---- */
.toast {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 96;
  max-width: min(560px, calc(100vw - 32px)); padding: 14px 20px;
  background: rgba(10, 11, 30, .97); border: 1px solid var(--line-pink); border-radius: 14px;
  color: var(--cream); font-size: 14.5px; line-height: 1.5; text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 26px rgba(123, 47, 247, .25);
}
.toast[hidden] { display: none; }

/* ---- Página legal (legal.html) ---- */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 28px 90px; }
.legal h1 { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.legal .legal-updated { color: var(--muted-2); font-size: 13.5px; margin: 0 0 34px; }
.legal nav { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 44px; font-size: 14px; }
.legal nav a { color: var(--pink-light); }
.legal h2 { font-family: var(--display); font-size: 20px; margin: 56px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--pink-soft); }
.legal h3 { font-size: 16px; margin: 26px 0 8px; color: var(--cream); }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--pink-light); }
.legal .todo { color: var(--warm); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal th { color: var(--cream); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }
.legal .back { display: inline-block; margin-top: 40px; }
.drawer-row {
  display: flex; justify-content: space-between;
  font-family: var(--display); font-size: 12px; letter-spacing: .1em; color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 12.5px; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .nav-toggle { display: grid; place-items: center; order: 2; }
  .header-actions { order: 3; margin-left: auto; }
  .nav {
    order: 4; flex-basis: 100%; flex-direction: column; gap: 4px; margin: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 2px; border-bottom: 1px solid var(--line); }

  /* En móvil el submenú se abre dentro del menú, no flotando encima. */
  .nav-item--sub { display: flex; flex-wrap: wrap; width: 100%; gap: 0; }
  .nav-item--sub > a { flex: 1; }
  .nav-caret { width: 42px; height: 42px; border-bottom: 1px solid var(--line); }
  .nav-sub {
    position: static; width: 100%; min-width: 0; margin: 4px 0 8px;
    box-shadow: none; background: rgba(5, 6, 15, .6);
  }
  .nav-sub::before { display: none; }
  .nav-item--sub:hover .nav-sub[hidden] { display: none; }
  .nav-sub a { border-bottom: 0; padding: 11px 12px; }
  .hero-inner { padding: 64px 24px 80px; gap: 40px; }
  .hero-art { min-height: 400px; }
  .section { padding: 72px 24px 24px; }
  .split { padding: 72px 24px; gap: 44px; }
  .panel, .panel--news { margin: 0 20px; }
  .panel-inner { padding: 64px 24px; }
}
@media (max-width: 560px) {
  .header-inner { padding: 12px 18px; }
  .brand-name { font-size: 15px; }
  .cart-btn { padding: 0 12px; font-size: 10px; }
  .lang-btn { height: 26px; padding: 0 6px; font-size: 10px; }
  .hero-inner { padding: 48px 18px 64px; }
  .stats { gap: 24px; }
  .section, .split { padding-left: 18px; padding-right: 18px; }
  .section-head { margin-bottom: 32px; }
  .rail { padding-left: 18px; padding-right: 18px; }
  .new-card { flex-basis: 260px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  /* En movil las tarjetas de coleccion ocupaban todo el ancho y, con el 4:5,
     salian larguisimas: dos por fila, como los productos. */
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  /* Con 4:5 la tarjeta seguia saliendo muy alta en movil: cuadrada ocupa
     un 20 % menos y entran dos filas en pantalla. */
  .cat-card > img, .cat-card .ph { aspect-ratio: 1 / 1; }
  .cat-body { padding: 14px 12px; }
  .cat-icon { font-size: 17px; margin-bottom: 4px; }
  .cat-body h3 { font-size: 13px; margin-bottom: 5px; }
  .cat-body p {
    font-size: 11.5px; line-height: 1.4;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  }
  .media-tag { right: 0; bottom: -18px; padding: 14px 16px; }
  .footer-inner { padding: 48px 18px 28px; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
