:root {

--w-container-1200: 1200px;
--color-surface: #ffffff;
--color-border: #d2d2d7;
--border-radius-lg: 16px;
--shadow-lg: 0 18px 34px rgba(0, 0, 0, .10);
--shadow-xl: 0 26px 60px rgba(0, 0, 0, .12);
--grad-surface: linear-gradient(180deg, var(--color-surface), var(--color-surface-2));
--font-size-small: calc(var(--base-font-size) * .92);
--color-letra-gen: var(--color-ink-900);
--radius-pill: 999px;
--shadow-badge: 0 10px 18px rgba(0, 0, 0, .10);
--color-white: #ffffff;
--color-warning-900: #b95000;
--color-ink-800: #111111;



  /* ============================
     BRAND (core)
     ============================ */
  --brand-primary: #0071e3;
  --brand-primary-hover: #0066cc;
  --brand-accent: #ff3b30;
  /* iOS red */
  --brand-accent-2: #ff9500;
  /* iOS orange */
  --brand-success: #34c759;
  /* iOS green */

  /* ============================
     HERO (claro, limpio, glass + sombra suave)
     ============================ */
  --hero-surface: #f5f5f7;
  --hero-surface-2: #ffffff;
  --hero-shadow: 0 18px 50px rgba(0, 0, 0, .10);
  --hero-tile-border: rgba(0, 0, 0, .06);

  /* Overlay para legibilidad (sutil, no “negro duro”) */
  --hero-overlay: linear-gradient(180deg,
      rgba(0, 0, 0, .00) 45%,
      rgba(0, 0, 0, .22) 78%,
      rgba(0, 0, 0, .38) 100%);

  /* Label estilo “glass” */
  --hero-label-bg: rgba(255, 255, 255, .72);
  --hero-label-border: rgba(0, 0, 0, .08);
  --hero-label-text: #1d1d1f;
  --hero-label-shadow: 0 10px 26px rgba(0, 0, 0, .12);

  /* Glows muy sutiles (sin saturación) */
  --hero-accent-1: rgba(0, 113, 227, .10);
  --hero-accent-2: rgba(255, 149, 0, .06);

  /* ============================
     COLORS (neutrals / text / surfaces)
     ============================ */
  --color-white: #ffffff;
  --color-black: #000000;

  --color-ink-900: #1d1d1f;
  --color-ink-800: #111111;
  --color-ink-700: #2a2a2e;
  --color-ink-600: #3a3a3c;

  --color-muted-600: #6e6e73;
  --color-muted-500: #7d7d82;
  --color-muted-400: #8e8e93;
  --color-muted-300: #a1a1a6;

  --color-bg-page: #f5f5f7;
  --color-surface: #ffffff;
  --color-surface-2: #fbfbfd;
  /* subtle off-white */
  --color-surface-3: #f5f5f7;
  /* same as page */
  --color-surface-4: #efeff4;
  /* light gray */
  --color-border: #d2d2d7;
  --color-border-soft: #e5e5ea;
  --color-border-menu: #e5e5ea;
  --color-border-soft-2: #ededf0;

  --color-table-head: #f2f2f7;

  /* Aliases (existing naming kept) */
  --color-letra-gen: var(--color-ink-900);
  --color-text-muted: var(--color-muted-600);
  --color-fondos: var(--color-bg-page);
  --color-text-area-bck: var(--color-surface);

  /* ============================
     COLORS (semantic)
     ============================ */
  --color-danger-600: #ff3b30;
  --color-warning-900: #b95000;
  /* warm deep orange-brown */
  --color-info-100: #e8f3ff;

  /* ============================
     COLORS (marketplace) — mantengo tu lógica
     ============================ */
  --color-boton-amazon: #111111;
  --color-boton-amazon-bck0: #ffd700;
  --color-boton-amazon-bck: #ffc107;
  --color-brand-amz-back: #ffd700;

  --color-boton-alie: #ffffff;
  --color-boton-alie-bck0: #ff4d4d;
  --color-boton-alie-bck: #e11d48;

  --color-ali: #ff4d4d;

  /* ============================
     COLORS (UI pieces)
     ============================ */
  --color-polaroid: var(--color-ink-900);
  --color-polaroid-back: var(--color-surface);

  --color-colap: var(--color-surface);
  --color-colap-bck: rgba(29, 29, 31, .92);
  --color-colap-bck-act: rgba(29, 29, 31, .80);

  --color-brand-gen-back: rgba(0, 113, 227, .10);

  --color-migas: var(--brand-primary);
  --color-nodos: var(--color-ink-900);
  --color-nodos-fondo: var(--color-info-100);

  --color-dto-back: var(--color-danger-600);
  --color-dto: var(--color-surface);

  --color-precio: var(--color-ink-900);
  --color-precio-num: var(--color-danger-600);

  --color-buscar: var(--brand-primary);
  --color-buscar-hover: var(--brand-primary-hover);

  /* Floating button */
  --color-boton-flota-bck0: rgba(255, 149, 0, .78);
  --color-boton-flota-bck: rgba(255, 59, 48, .78);
  --color-boton-flota-text: var(--color-ink-800);

  /* Cookies */
  --color-fondos-cookie: var(--color-surface);
  --color-button-cookie: var(--color-ink-900);
  --color-button-cookie-back: var(--color-surface-4);

  /* ============================
     GRADIENTS — más sutiles / menos “contrastados”
     ============================ */
  --grad-surface: linear-gradient(180deg, var(--color-surface), var(--color-surface-2));
  --grad-primary: linear-gradient(180deg, #0a84ff, var(--brand-primary-hover));
  --grad-colap: linear-gradient(180deg, var(--color-colap-bck), rgba(29, 29, 31, .86));
  --grad-colap-hover: linear-gradient(180deg, var(--color-colap-bck-act), rgba(29, 29, 31, .72));
  --grad-footer: linear-gradient(180deg, var(--color-surface), var(--color-surface-3));
  --grad-btn-dark: linear-gradient(180deg, #2c2c2e, #1c1c1e);
  --grad-linktree-success: linear-gradient(180deg, var(--brand-success), #28a745);
  --grad-linktree-extra: linear-gradient(135deg, #f5f5f7, #eef6ff);
  --grad-hero-overlay: var(--hero-overlay);

  /* Banner nombre */
  --grad-banner-name: linear-gradient(90deg, #0a84ff 0%, #0071e3 55%, #5e5ce6 100%);

  /* ============================
     EFFECTS (shadows / rings)
     ============================ */
  --shadow-xs: 0 1px 0 rgba(0, 0, 0, .03);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, .06);
  --shadow-md: 0 12px 26px rgba(0, 0, 0, .08);
  --shadow-lg: 0 18px 34px rgba(0, 0, 0, .10);
  --shadow-xl: 0 26px 60px rgba(0, 0, 0, .12);

  --shadow-chip: 0 10px 18px rgba(0, 0, 0, .08);
  --shadow-badge: 0 10px 18px rgba(0, 0, 0, .10);
  --shadow-float: 0 22px 60px rgba(0, 0, 0, .16);
  --shadow-float-soft: 0 14px 30px rgba(0, 0, 0, .10);
  --shadow-amz: 0 14px 30px rgba(0, 0, 0, .14);
  --shadow-btn: 0 12px 28px rgba(0, 0, 0, .14);
  --shadow-card-soft: 0 10px 26px rgba(0, 0, 0, .08);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, .10);
  --shadow-polaroid: 0 14px 34px rgba(0, 0, 0, .10);
  --shadow-hero: 0 18px 50px rgba(0, 0, 0, .10);

  --ring: 0 0 0 3px rgba(0, 113, 227, .22);
  --ring-border: rgba(0, 113, 227, .45);
  --ring-logo: rgba(0, 113, 227, .22);

  /* ============================
     TYPOGRAPHY (base + fixed)
     ============================ */
  --base-font-size: 13px;
  --base-font-size-mobile: 12px;

  --font-size-mini: calc(var(--base-font-size) * .80);
  --font-size-small: calc(var(--base-font-size) * .92);
  --font-size-normal: calc(var(--base-font-size) * 1);
  --font-size-medium: calc(var(--base-font-size) * 1.12);
  --font-size-large: calc(var(--base-font-size) * 1.28);
  --font-size-xlarge: calc(var(--base-font-size) * 1.55);
  --font-size-xxlarge: calc(var(--base-font-size) * 1.85);

  --font-size-11: 11px;
  --font-size-12: 12px;
  --font-size-13: 13px;
  --font-size-14: 14px;
  --font-size-16: 16px;
  --font-size-18: 18px;
  --font-size-22: 22px;

  --line-height-base: 1.45;
  --line-height-tight: 1.35;
  --line-height-tight-2: 1.25;
  --line-height-faq: 1.55;

  /* ============================
     RADII
     ============================ */
  --border-radius: 12px;
  --border-radius-sm: 10px;
  --border-radius-lg: 16px;

  --radius-6: 6px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-14: 14px;
  --radius-18: 18px;
  --radius-20: 20px;
  --radius-pill: 999px;
  --radius-full: 9999px;

  /* ============================
     SIZING (common component sizes)
     ============================ */
  --w-container-900: 900px;
  --w-container-1050: 1050px;
  --w-container-1100: 1100px;
  --w-container-1200: 1200px;

  --vw-page: 92vw;
  --vw-page-mobile: 95vw;

  --h-header-min: 54px;

  --logo-size: 38px;
  --logo-border-w: 2px;

  --hamburger-w: 26px;
  --hamburger-h: 3px;
  --hamburger-gap: 4px;

  --contact-btn-h: 28px;
  --buscar-h: 40px;
  --buscar-h-mobile: 44px;

  --textarea-h: 150px;

  --btn-h: 40px;

  --thumb-size: 60px;
  --thumb-size-mobile: 74px;

  --float-right: 16px;
  --float-bottom-1: 50%;
  --float-bottom-2: 40%;
  --float-icon: 30px;

  --scrollbar-h: 10px;
  --scrollbar-h-small: 8px;

  --top-carousel-card: 280px;
  --top-carousel-card-mobile: 78%;
  --top-carousel-card-min: 260px;

  --video-max: 700px;
  --banner-max: 725px;
  --banner-max-h: 90px;

  --menu-left: 12px;
  --menu-max-h: 70vh;

  /* ============================
     SPACING
     ============================ */
  --gap-8: 8px;
  --gap-10: 10px;
  --gap-12: 12px;
  --gap-14: 14px;
  --gap-16: 16px;
  --gap-18: 18px;
  --gap-24: 24px;

  /* ============================
     Z-INDEX
     ============================ */
  --z-header: 2000;
  --z-menu: 1001;
  --z-float: 1000;

  /* ============================
     HERO columns (overrideable)
     ============================ */
  --hero-cols: 3;
}

/* Fonts */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url('../css/fonts/open-sans-v40-latin-300.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../css/fonts/open-sans-v40-latin-500.woff2') format('woff2');
}

/* Reset */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: var(--base-font-size);
  color: var(--color-letra-gen);
  background: var(--color-fondos);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block
}

@media(max-width:600px) {
  :root {
    --base-font-size: var(--base-font-size-mobile)
  }
}

/* Links */
a {
  color: var(--color-migas);
  text-decoration: underline;
  font-weight: 600
}

a:hover {
  filter: brightness(.95)
}

/* ============================
   Forms (gen + contacto)
   ============================ */
label {
  display: block;
  margin-top: 16px;
  letter-spacing: .2px;
  color: var(--color-text-muted)
}

.search-form {
  width: 100%;
  font-size: var(--font-size-small);
  color: var(--color-letra-gen)
}

.search-form label {
  margin-top: 18px;
  letter-spacing: .4px
}

.search-form input,
.search-form select,
.search-form textarea,
input,
textarea {
  width: 100%;
  background: var(--color-text-area-bck);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  outline: none;
  font-size: var(--font-size-small);
  color: var(--color-letra-gen);
}

.search-form input,
.search-form select,
.search-form textarea {
  padding: 12px;
  margin-top: 10px;
  box-shadow: var(--shadow-xs);
}

input,
textarea {
  padding: 10px 12px;
  margin-top: 6px
}

.search-form input:focus,
.search-form select:focus,
.search-form textarea:focus,
input:focus,
textarea:focus {
  border-color: var(--ring-border);
  box-shadow: var(--ring);
}

textarea {
  height: var(--textarea-h)
}

.search-form button {
  background: var(--grad-primary);
  color: var(--color-white);
  border: none;
  padding: 12px 16px;
  margin-top: 16px;
  cursor: pointer;
  border-radius: var(--border-radius);
  width: 100%;
  font-size: var(--font-size-small);
  font-weight: 800;
  letter-spacing: .2px;
}

.search-form button:hover {
  filter: brightness(.98)
}

.search-form button:active {
  transform: translateY(1px)
}

.contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: left;
  margin: 16px auto;
  padding: 16px;
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-medium);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  width: min(var(--w-container-900), var(--vw-page));
}

.contacto.gris {
  background: var(--color-surface)
}

form {
  margin: 0 auto;
  width: 100%;
  max-width: 560px
}

.button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  gap: var(--gap-10)
}

#submit,
#reset {
  width: 50%;
  height: var(--btn-h);
  border: none;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-weight: 800;
}

#submit {
  background: var(--grad-primary);
  color: var(--color-white)
}

#reset {
  background: var(--color-surface-4);
  color: var(--color-ink-900)
}

/* ============================
   Bloques superiores / colapsable
   ============================ */
.texto-superior {
  width: min(var(--w-container-1050), var(--vw-page));
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--border-radius-lg);
  margin: 14px auto 0;
  font-size: var(--font-size-normal);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.texto-superior.gris {
  background: var(--color-surface)
}

.texto-superior .text {
  display: block
}

.content {
  padding: 0;
  overflow: hidden;
  color: var(--color-text-muted)
}

.content p {
  margin: 10px 0
}

.content strong {
  color: var(--color-letra-gen)
}

.collapsible {
  background: var(--grad-colap);
  color: var(--color-colap);
  cursor: pointer;
  padding: 12px 14px;
  width: 100%;
  border: none;
  text-align: center;
  outline: none;
  font-size: var(--font-size-small);
  margin-top: 14px;
  border-radius: var(--border-radius);
  font-weight: 800;
  letter-spacing: .2px;
}

.activeCollap,
.collapsible:hover {
  background: var(--grad-colap-hover);
}

@media(max-width:768px) {
  .texto-superior {
    width: min(980px, 95vw);
    padding: 14px
  }

  .content {
    display: none
  }
}

/* ============================
   Chips nodos
   ============================ */
.texto-nodos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: min(var(--w-container-1100), var(--vw-page));
  margin: 10px auto;
  font-size: var(--font-size-small);
  gap: var(--gap-8);
  padding: 6px;
  user-select: none;
}

.texto-nodos a {
  color: var(--color-nodos);
  text-decoration: none;
  font-weight: 800
}

.texto-nodos>* {
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.texto-nodos>*:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-chip)
}

@media(max-width:600px) {
  .texto-nodos {
    justify-content: flex-start;
    width: var(--vw-page-mobile);
    overflow-x: auto;
    flex-wrap: nowrap
  }

  .texto-nodos>* {
    flex: 0 0 auto
  }
}

/* ============================
   Header + buscador
   ============================ */
header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
}

.botonera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-10);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
  min-height: var(--h-header-min);
}

.www-text {
  font-size: var(--font-size-large);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--gap-10);
  order: 1;
  font-weight: 900;
}

.www-text a {
  color: var(--color-letra-gen);
  text-decoration: none
}

.www-text img {
  height: var(--logo-size);
  width: var(--logo-size);
  border-radius: var(--radius-pill);
  object-fit: cover;
  aspect-ratio: 1/1;
  border: var(--logo-border-w) solid var(--ring-logo);
  box-shadow: var(--shadow-chip);
}

.icon-container {
  display: flex;
  align-items: center;
  gap: var(--gap-10);
  order: 3
}

.contact-button {
  height: var(--contact-btn-h);
  line-height: var(--contact-btn-h);
  border: 1px solid var(--color-border);
  color: var(--color-letra-gen);
  background: var(--color-white);
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0 10px
}

.menu-hamburguesa {
  display: inline-block;
  cursor: pointer;
  order: 0
}

.menu-hamburguesa span {
  display: block;
  width: var(--hamburger-w);
  height: var(--hamburger-h);
  margin-bottom: var(--hamburger-gap);
  background-color: var(--color-letra-gen);
  border-radius: var(--radius-pill);
  transition: all .25s ease-in-out;
}

.menu-hamburguesa.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px)
}

.menu-hamburguesa.active span:nth-child(2) {
  opacity: 0
}

.menu-hamburguesa.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px)
}

/* Dropdown categorías */
.menu-categorias {
  display: none;
  position: absolute;
  top: 100%;
  left: var(--menu-left);
  background: var(--color-white);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
  width: min(560px, var(--vw-page));
  border: 1px solid var(--color-border);
  z-index: var(--z-menu);
  overflow-y: auto;
  max-height: 70vh;
  padding: 10px;
  border-radius: var(--border-radius-lg);
}

.menu-lista,
.menu-categorias li {
  font-size: var(--font-size-small);
  padding-left: 0;
  margin: 6px 0
}

.menu-categorias>li>a {
  display: block;
  padding: 10px;
  color: var(--color-letra-gen);
  text-decoration: none;
  border-radius: var(--radius-12);
  background: var(--grad-surface);
  border: 1px solid var(--color-border);
  font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease;
  text-align: center;
}

.menu-categorias>li>a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-chip)
}

.submenu,
.sub-submenu {
  display: none;
  max-height: 0;
  overflow-y: auto;
  padding: 8px;
  border-radius: var(--radius-12);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  margin-top: 8px;
}

.submenu.active,
.sub-submenu.active {
  display: block;
  max-height: 1000px
}

.toggle-submenu,
.toggle-subsubmenu {
  display: inline;
  cursor: pointer;
  padding-left: 8px;
  font-weight: 900;
  color: var(--brand-primary)
}

/* Buscador header */
.buscar-form {
  order: 2;
  display: flex;
  align-items: center;
  gap: .5rem;
  height: var(--buscar-h);
  padding: 0 .8rem;
  background: var(--grad-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  width: min(520px, 40vw);
  margin: 0;
}

.buscar-form .fa-magnifying-glass {
  flex: 0 0 auto;
  font-size: 1rem;
  opacity: .7;
  color: var(--color-text-muted)
}

.buscar-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  outline: none;
  background: transparent;
  font-size: var(--font-size-small);
  color: var(--color-letra-gen);
  padding: .25rem 0;
  -webkit-appearance: none;
  appearance: none;
}

.buscar-input::placeholder {
  color: var(--color-muted-300);
  opacity: 1
}

.buscar-form:focus-within {
  border-color: var(--ring-border);
  box-shadow: var(--ring), 0 10px 22px rgba(15, 23, 42, .10);
}

@media(max-width:600px) {
  .botonera {
    flex-wrap: wrap;
    padding: 10px
  }

  .www-text {
    flex: 1;
    justify-content: center
  }

  .icon-container {
    order: 2;
    margin-left: auto
  }

  .buscar-form {
    order: 99;
    flex: 1 1 100%;
    width: 100%;
    height: var(--buscar-h-mobile);
    border-radius: var(--radius-14);
    margin-top: 8px
  }
}

/* ============================
   Migas
   ============================ */
.ariadna {
  width: min(var(--w-container-1100), var(--vw-page));
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  margin: 12px auto 0;
  font-size: var(--font-size-small);
  display: flex;
  justify-content: center;
  gap: var(--gap-10);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--color-border);
}

/* ============================
   Títulos / contenedores
   ============================ */
.titulo-producto,
.texto-inferior,
.detalle-producto {
  width: min(var(--w-container-1100), var(--vw-page));
  text-align: left;
  padding: 12px 0;
  margin: 10px auto 0;
  font-size: var(--font-size-normal);
}

.titulo-producto h1 {
  margin: 0;
  font-size: clamp(20px, 2.0vw, 30px);
  letter-spacing: -.2px;
}

@media(max-width:600px) {

  .titulo-producto,
  .texto-inferior,
  .detalle-producto {
    width: var(--vw-page-mobile)
  }
}

/* ============================
   GRID CATEGORÍAS (cards)
   ============================ */
.gridview {
  width: min(var(--w-container-1200), 96vw);
  margin: 16px auto 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  align-items: stretch;
}

div.imagenCat {
  margin: 0;
  display: block;
  position: relative
}

div.imagenCat a.button_categorias {
  display: block;
  padding: 0;
  border-radius: var(--border-radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-transform: none;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
}

div.imagenCat a.button_categorias:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, .35);
}

div.imagenCat img.polaroid {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

div.imagenCat .polaroid-text {
  background: var(--grad-surface);
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
}

div.imagenCat .polaroid-text-inicio {
  width: 100%;
  margin: 0;
  padding: 12px;
  font-size: var(--font-size-small);
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--color-letra-gen);
  text-align: center;
}

@media(min-width:1224px) {
  .gridview {
    grid-template-columns: repeat(5, 1fr)
  }
}

@media(min-width:920px) and (max-width:1223px) {
  .gridview {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media(min-width:640px) and (max-width:919px) {
  .gridview {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:639px) {
  .gridview {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }
}

/* ============================
   Etiquetas / estados
   ============================ */
.discount,
.out-of-stock,
.etiq-GENERICO,
.etiq-AMAZON,
.etiq-ALIEXPRESS {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: var(--font-size-small);
  z-index: 2;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-badge);
  font-weight: 900;
}

.discount {
  left: auto;
  right: 12px;
  background: rgba(220, 38, 38, .92);
  color: var(--color-white)
}

.out-of-stock {
  left: auto;
  right: 12px;
  background: rgba(15, 23, 42, .92);
  color: var(--color-white)
}

.etiq-GENERICO {
  background: rgba(245, 158, 11, .25);
  color: var(--color-warning-900)
}

.etiq-AMAZON {
  background: rgba(255, 215, 0, .70);
  color: var(--color-ink-800)
}

.etiq-ALIEXPRESS {
  background: rgba(255, 77, 77, .90);
  color: var(--color-white)
}

/* ============================
   Botones compra
   ============================ */
@keyframes latido {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.03)
  }

  100% {
    transform: scale(1)
  }
}

a.boton_compra {
  color: var(--color-white);
  background: var(--color-ink-900);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  animation: latido 3s infinite ease-in-out;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-amz);
}

a.boton_compra.amazon {
  color: var(--color-boton-amazon);
  background: linear-gradient(180deg, var(--color-boton-amazon-bck0), var(--color-boton-amazon-bck));
}

a.boton_compra.aliex {
  color: var(--color-boton-alie);
  background: linear-gradient(180deg, var(--color-boton-alie-bck0), var(--color-boton-alie-bck));
}

a.boton_compra:hover {
  filter: brightness(.96);
  transform: translateY(-1px)
}

a.boton_compra:active {
  transform: translateY(1px)
}

a.boton_compra>div {
  text-align: center
}

a.boton_compra>img {
  display: block;
  margin: 5px auto 0;
  width: 55px;
  height: auto
}

/* ============================
   Precio
   ============================ */
.price {
  --fs: var(--font-size-xxlarge);
  --fw: 900;
  color: inherit;
}

.price--mixed .price__value {
  color: var(--color-precio-num);
}

.price__value {
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
  font-size: var(--fs);
  font-weight: var(--fw);
  white-space: nowrap;
}

.price__scratched {
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
  margin-left: .4rem;
  color: var(--color-text-muted);
  opacity: .9;
  font-size: var(--font-size-small);
}

.price__scratched .price__integer,
.price__scratched .price__decimal {
  text-decoration: line-through;
}

.price--B {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}

.price--B .price__scratched {
  margin: 0 0 .1rem 0;
}

/* ============================
   Footer
   ============================ */
footer {
  background: var(--grad-footer);
  color: var(--color-letra-gen);
  font-size: var(--font-size-small);
  padding: 18px 10px;
  border-top: 1px solid var(--color-border);
}

footer .container {
  max-width: var(--w-container-1200);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-10)
}

footer h3 {
  font-size: var(--font-size-medium);
  font-weight: 900;
  margin: 0 0 6px 0;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer-links li {
  margin: 8px 0
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 800;
  transition: color .15s ease, transform .15s ease;
}

.footer-links a:hover {
  color: var(--brand-primary);
  transform: translateX(3px)
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}

.footer-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  background: rgba(37, 99, 235, .10);
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background-color .15s ease;
  border: 1px solid rgba(37, 99, 235, .18);
}

.footer-social a:hover {
  background: rgba(255, 77, 77, .14);
  transform: scale(1.06)
}

.footer-bottom {
  text-align: center;
  font-size: var(--font-size-mini);
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  margin-top: 14px;
  color: var(--color-text-muted);
}

@media screen and (max-width:768px) {
  footer .container {
    grid-template-columns: 1fr;
    text-align: center
  }

  .footer-section {
    align-items: center
  }

  .footer-social {
    justify-content: center
  }
}

/* ============================
   FAQ
   ============================ */
.titular_h3 {
  font-size: var(--font-size-normal);
  margin-bottom: 10px
}

details {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  margin: 12px 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

summary {
  font-size: var(--font-size-normal);
  padding: 12px;
  cursor: pointer;
  font-weight: 900
}

details div {
  padding: 12px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted)
}

/* ============================
   Logs
   ============================ */
.log-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed
}

.log-table,
.log-table th,
.log-table td {
  border: 1px solid var(--color-black)
}

.log-table th,
.log-table td {
  padding: 8px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word
}

.log-table th {
  background: var(--color-table-head)
}

.chart-container {
  width: 60%;
  max-height: 65%
}

@media(max-width:768px) {
  .chart-container {
    width: 100%;
    max-height: 50%
  }
}

/* ============================
   Vídeo
   ============================ */
.container-video {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: var(--video-max);
  width: 100%;
  margin: 0 auto;
  border-radius: var(--border-radius-lg)
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0
}

/* ============================
   Anuncio
   ============================ */
.exchange-links {
  display: flex;
  align-items: center;
  gap: var(--gap-10)
}

.exchange-links img {
  height: 40px;
  width: auto
}

.anuncio-container {
  max-width: var(--video-max);
  border: 1px solid var(--color-border);
  padding: 14px;
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.anuncio-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  text-align: left
}

.anuncio-scroll ul {
  padding-left: 20px
}

.anuncio-scroll a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 900
}

.anuncio-scroll a:hover {
  text-decoration: underline
}

/* ============================
   Botón flotante
   ============================ */
@keyframes parpadeo {
  0% {
    opacity: 1
  }

  50% {
    opacity: .72
  }

  100% {
    opacity: 1
  }
}

#botonFlotante,
#botonFlotante2 {
  position: fixed;
  right: var(--float-right);
  padding: 10px 12px;
  background: linear-gradient(180deg, var(--color-boton-flota-bck0), rgba(245, 158, 11, .70));
  border-radius: var(--radius-pill);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform .15s ease, filter .15s ease;
  font-size: var(--font-size-small);
  animation: parpadeo 2s infinite;
  z-index: var(--z-float);
  border: 1px solid rgba(255, 255, 255, .35);
}

#botonFlotante {
  bottom: var(--float-bottom-1)
}

#botonFlotante2 {
  bottom: var(--float-bottom-2)
}

#botonFlotante img,
#botonFlotante2 img {
  width: var(--float-icon);
  height: var(--float-icon)
}

#botonFlotante p,
#botonFlotante2 p {
  margin: 0;
  line-height: normal;
  color: var(--color-boton-flota-text);
  font-weight: 900
}

#botonFlotante:hover,
#botonFlotante2:hover {
  background: linear-gradient(180deg, var(--color-boton-flota-bck), rgba(255, 77, 77, .70));
  transform: translateY(-2px);
  filter: brightness(.98);
}

/* ============================
   Linktree
   ============================ */
.linktree-background {
  position: relative;
  background-size: cover;
  background-position: top left;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 40px;
}

.linktree-container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-20);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .20);
  padding: 24px;
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
  color: var(--color-ink-800);
}

.linktree-logo {
  width: 40vw;
  max-width: 200px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-pill);
  object-fit: cover;
  margin: 0 auto 12px
}

.linktree-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 10px 0 5px
}

.linktree-desc {
  color: var(--color-ink-600);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px
}

.linktree-btn {
  display: block;
  background: var(--grad-linktree-success);
  color: var(--color-white) !important;
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: var(--font-size-16);
  font-weight: 900;
  transition: transform .12s ease, filter .12s ease;
}

.linktree-btn:hover {
  transform: translateY(-1px);
  filter: brightness(.98)
}

.linktree-btn-extra {
  display: block;
  background: var(--grad-linktree-extra);
  color: #183a74 !important;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: var(--radius-14);
  text-decoration: none;
  font-size: var(--font-size-14);
  font-weight: 900;
  box-shadow: var(--shadow-md);
  transition: transform .12s ease, filter .12s ease;
}

.linktree-btn-extra:hover {
  transform: translateY(-1px);
  filter: brightness(.99)
}

.social-icons {
  margin-top: 22px
}

.social-icons a {
  margin: 0 8px;
  display: inline-block
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform .12s
}

.social-icons img:hover {
  transform: scale(1.08)
}

.linktree-subtitle {
  font-size: .95rem;
  margin-bottom: 18px;
  line-height: 1.4;
  font-weight: 900
}

.linktree-btn-social {
  background: linear-gradient(180deg, #0077b5, #005582)
}

.linktree-banner {
  display: block;
  margin: 10px 0;
  border-radius: var(--radius-18);
  overflow: hidden;
  box-shadow: var(--shadow-md)
}

.linktree-banner-img {
  display: block;
  width: 100%;
  height: auto
}

/* ============================
   Banner aliexpress
   ============================ */
.banner-aliexpress {
  text-align: center;
  margin: 20px auto;
  max-width: var(--banner-max);
  width: 100%
}

.banner-aliexpress img {
  width: 100%;
  height: auto;
  max-width: var(--banner-max);
  max-height: var(--banner-max-h);
  display: block;
  margin: 0 auto
}

/* ============================
   Paginación
   ============================ */
.paginacion {
  display: flex;
  justify-content: center;
  margin: 2rem 0 3rem;
  font-family: inherit
}

.paginacion__lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 0;
  align-items: center
}

.paginacion__link,
.paginacion__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--grad-surface);
  font-size: .9rem;
  text-decoration: none;
  color: var(--color-ink-900);
}

.paginacion__link:hover {
  filter: brightness(.98)
}

.paginacion__link--activo {
  border-color: var(--color-ink-900);
  background: var(--color-ink-900);
  color: var(--color-white)
}

.paginacion__link--disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none
}

.paginacion__ellipsis {
  border: none;
  background: transparent
}

@media (max-width:480px) {

  .paginacion__link,
  .paginacion__ellipsis {
    min-width: 2rem;
    height: 2rem;
    padding: 0 .5rem;
    font-size: .8rem
  }
}

.home-btn {
  display: inline-block;
  background: var(--color-ink-900);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: var(--radius-12);
  font-weight: 900;
  text-decoration: none;
}

/* Banner nombre */
.www-text--banner {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-banner-name);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
}

.www-text--banner a {
  color: var(--color-white);
  text-decoration: none
}

.www-text--banner img {
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18);
}

.www-text--banner .www-text__name {
  font-weight: 900;
  letter-spacing: .2px
}

/* ============================
   GRID cards genéricas (categorías custom + top productos)
   ============================ */
.grid-cat,
.top-prod-grid {
  display: grid;
  gap: var(--gap-18);
}

.grid-cat {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.top-prod-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px
}

@media (max-width:1100px) {

  .grid-cat,
  .top-prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width:820px) {

  .grid-cat,
  .top-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:520px) {

  .grid-cat,
  .top-prod-grid {
    grid-template-columns: 1fr
  }
}

/* Card-cat */
.card-cat {
  background: var(--color-surface);
  border-radius: var(--radius-18);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-cat__link {
  display: block;
  color: inherit;
  text-decoration: none
}

.card-cat__body {
  padding: 14px 16px 18px
}

.card-cat__body h3 {
  font-size: var(--font-size-16);
  line-height: var(--line-height-tight-2);
  margin: 0 0 8px;
  font-weight: 800;
  text-decoration: none
}

.card-cat__body p {
  margin: 0;
  font-size: var(--font-size-13);
  line-height: var(--line-height-tight);
  color: var(--color-muted-500)
}

/* Collages */
.card-cat__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.single-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--color-surface)
}

.img-collage-2,
.img-collage-3 {
  width: 100%;
  height: 100%;
  display: grid;
  gap: var(--gap-10)
}

.img-collage-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr
}

.img-collage-3 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr)
}

.img-collage-3 .big {
  grid-column: 1 / span 2
}

.img-collage-2 .cell,
.img-collage-3 .cell {
  background: var(--color-surface);
  border-radius: var(--radius-14);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.img-collage-2 img,
.img-collage-3 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--color-surface)
}

/* ============================
   TOP PRODUCTOS (polaroid + carousel)
   - Unificado (antes estaba duplicado 2 veces)
   ============================ */
.top-prods {
  margin-top: 6px
}

.top-carousel {
  display: flex;
  gap: var(--gap-14);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 12px;
  margin: 10px 0 2px;
}

.top-carousel::-webkit-scrollbar {
  height: var(--scrollbar-h)
}

.top-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .18);
  border-radius: var(--radius-pill)
}

.polaroid {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius-18);
  box-shadow: var(--shadow-polaroid);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.polaroid__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.polaroid__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--color-surface);
  display: block;
}

.polaroid__body {
  padding: 14px 16px 16px
}

.polaroid__title {
  font-weight: 900;
  font-size: var(--font-size-14);
  margin: 0 0 8px;
  color: var(--color-ink-900);
}

.polaroid__title2 {
  font-weight: 900;
  font-size: var(--font-size-12);
  margin: 0 0 8px;
  color: var(--color-ink-900);
}

.polaroid__desc {
  margin: 0 0 10px;
  color: var(--color-muted-600);
  font-size: var(--font-size-13);
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.polaroid__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-10)
}

.polaroid__price {
  font-weight: 900;
  color: var(--color-danger-600);
  font-size: var(--font-size-18);
  white-space: nowrap
}

.polaroid__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 900;
  font-size: var(--font-size-13);
  background: var(--grad-btn-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.polaroid__btn:hover {
  filter: brightness(.98);
  transform: translateY(-1px)
}

.polaroid__btn:active {
  transform: translateY(1px)
}

/* Carousel sizing */
.top-carousel .polaroid {
  flex: 0 0 var(--top-carousel-card);
  max-width: var(--top-carousel-card);
  scroll-snap-align: start
}

@media (max-width:760px) {
  .top-carousel {
    padding: 6px 0 10px
  }

  .top-carousel .polaroid {
    flex: 0 0 var(--top-carousel-card-mobile);
    max-width: var(--top-carousel-card-mobile);
    min-width: var(--top-carousel-card-min)
  }

  .polaroid__desc {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}

/* ============================
   HERO (fix media query inválida)
   ============================ */
.hero {
  border-radius: var(--radius-18);
  overflow: hidden;
  background: radial-gradient(1200px 500px at 10% 0%, var(--hero-accent-1), transparent 55%),
    radial-gradient(900px 420px at 90% 10%, var(--hero-accent-2), transparent 60%),
    linear-gradient(180deg, var(--hero-surface), var(--hero-surface-2));
  box-shadow: var(--hero-shadow);
  margin: 10px 0 16px;
  border: 1px solid rgba(255, 255, 255, .06);
}

.hero__tile {
  position: relative;
  border-radius: var(--radius-14);
  overflow: hidden;
  display: block;
  outline: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .25);
}

.hero__tile:hover {
  outline-color: var(--hero-tile-border);
}

.hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, filter .25s ease;
  will-change: transform;
  filter: saturate(1.05) contrast(1.02);
}

.hero__tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.06);
}

.hero__tile:after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

/* micro-brillo en borde al hover */
.hero__tile:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.hero__tile:hover:before {
  opacity: 1;
}

.hero__label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-14);
  background: var(--hero-label-bg);
  border: 1px solid var(--hero-label-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--hero-label-text);
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--font-size-13);
  line-height: 1.12;
  box-shadow: var(--hero-label-shadow);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(var(--hero-cols), minmax(0, 1fr));
  gap: var(--gap-14);
}

/* Mobile */
@media (max-width:760px) {
  .hero__grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    /* <- añade esto */
    gap: 12px;
    padding: 12px;
  }

  .hero__grid .hero__tile {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: var(--radius-18);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(2, 6, 23, .30);
    position: relative;
  }

  .hero__label {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

/*************************/
.menu-lista,
.submenu {
  list-style: none;
  /* ← elimina los puntos */
  margin: 0;
  padding: 0;
}

.menu-lista {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.menu-lista>li {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-menu);
}

.menu-lista a {
  text-decoration: none;
  color: var(--color-ink-800);
  font-weight: 600;
}

.menu-lista a:hover {
  color: #0b57d0;
}

.toggle-submenu {
  float: right;
  cursor: pointer;
  color: var(--color-muted-400);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-6);
}

.toggle-submenu:hover {
  background: #f3f4f6;
  color: var(--color-ink-800);
}

.submenu {
  display: none;
  margin-top: 6px;
  padding-left: 12px;
  /* indent limpio */
  border-left: 2px solid var(--color-border-soft-2);
}

.submenu.active {
  display: block;
}

.submenu li {
  padding: 6px 0;
}

.submenu a {
  font-weight: 500;
  color: var(--color-ink-700);
}

.submenu a:hover {
  color: #0b57d0;
}

.texto-superior.gris {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-14);
  padding: 10px;
}

.faqs {
  margin: 24px 0
}

.faqs__title {
  margin: 0 0 10px
}

.faq {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius-12);
  padding: 10px 12px;
  margin: 10px 0;
  background: var(--color-surface)
}

.faq>summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none
}

.faq>summary::-webkit-details-marker {
  display: none
}

.faq__a {
  margin-top: 10px;
  line-height: var(--line-height-faq)
}

.faqs__warn {
  margin-top: 10px;
  font-size: var(--font-size-12);
  opacity: .75
}

/* ============================
   Carrusel categorías (mismo look que grid-cat)
   ============================ */
.cat-carousel {
  display: flex;
  gap: var(--gap-18);
  /* igual que grid */
  overflow-x: auto;
  padding: 0;
  /* alineado con grid (sin padding extra) */
  margin-top: 18px;
  /* separación visual tras el grid de 8 */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.cat-carousel>.card-cat {
  flex: 0 0 auto;
  width: calc((100% - (var(--gap-18) * 3)) / 4);
  /* 4 columnas equivalentes */
  scroll-snap-align: start;
}

/* 3 cols */
@media (max-width:1100px) {
  .cat-carousel>.card-cat {
    width: calc((100% - (var(--gap-18) * 2)) / 3);
  }
}

/* 2 cols */
@media (max-width:820px) {
  .cat-carousel>.card-cat {
    width: calc((100% - var(--gap-18)) / 2);
  }
}

/* 1 col */
@media (max-width:520px) {
  .cat-carousel>.card-cat {
    width: 100%;
  }
}

/* scrollbar discreta (opcional) */
.cat-carousel::-webkit-scrollbar {
  height: var(--scrollbar-h-small);
}

.cat-carousel::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .18);
}

.cat-carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .06);
}

.search-wrap {
  max-width: var(--w-container-1200);
  margin: 0 auto
}

.search-head {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 10px 0 18px
}

.search-title {
  margin: 0;
  font-size: var(--font-size-22)
}

.search-form {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 280px
}

.search-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: var(--radius-12);
  padding: 10px 12px;
  font-size: var(--font-size-14);
  background: var(--color-surface);
}

.search-form button {
  border: 0;
  border-radius: var(--radius-12);
  padding: 10px 14px;
  cursor: pointer;
  background: var(--color-ink-800);
  color: var(--color-white);
  font-weight: 700;
}

.kpi {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.kpi .pill {
  font-size: var(--font-size-12);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .06)
}

.section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 8px
}

.section-h h2 {
  margin: 0;
  font-size: var(--font-size-18)
}

.pager {
  display: flex;
  gap: 8px;
  align-items: center
}

.pager a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-10);
  background: rgba(0, 0, 0, .06);
  text-decoration: none
}

.pager .on {
  background: var(--color-ink-800);
  color: var(--color-white)
}

.tbl-wrap {
  width: 100%;
  overflow: auto;
  border-radius: var(--radius-14);
  box-shadow: var(--shadow-card-soft)
}

.tbl {
  min-width: 760px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface)
}

.tbl th,
.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  vertical-align: top
}

.tbl th {
  font-size: var(--font-size-12);
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
  background: rgba(0, 0, 0, .03);
  position: sticky;
  top: 0
}

.tbl tr:last-child td {
  border-bottom: 0
}

.thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: var(--radius-12);
  object-fit: cover;
  background: rgba(0, 0, 0, .06);
  display: block
}

.badge {
  display: inline-block;
  font-size: var(--font-size-11);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .06)
}

.muted {
  opacity: .75
}

.right {
  text-align: right
}

.nowrap {
  white-space: nowrap
}

/* ===== MOBILE: tabla -> cards ===== */
.mcard {
  display: none
}

@media (max-width: 720px) {
  .tbl-wrap {
    overflow: visible;
    box-shadow: none
  }

  .tbl {
    min-width: 0
  }

  .tbl thead {
    display: none
  }

  .tbl,
  .tbl tbody,
  .tbl tr,
  .tbl td {
    display: block;
    width: 100%
  }

  .tbl tr {
    background: var(--color-surface);
    border-radius: var(--radius-14);
    box-shadow: var(--shadow-card-soft);
    margin: 12px 0;
    overflow: hidden;
  }

  .tbl td {
    border-bottom: 0;
    padding: 12px
  }

  /* categorías */
  .tbl.cat td.cat-name {
    padding-bottom: 6px
  }

  .tbl.cat td.cat-snip {
    padding-top: 0
  }

  /* productos: ocultamos columnas, usamos mcard */
  .tbl.prod td.col-marca,
  .tbl.prod td.col-price,
  .tbl.prod td.col-web,
  .tbl.prod td.col-action {
    display: none
  }

  .tbl.prod td.col-img {
    padding-bottom: 6px
  }

  .tbl.prod td.col-title {
    padding-top: 0
  }

  .mcard {
    display: block;
    margin-top: 10px
  }

  .mmeta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
  }

  .mmeta .price {
    font-weight: 800
  }

  .mmeta .brand {
    opacity: .75
  }

  .mcta {
    margin-top: 10px
  }

  .mcta a {
    display: inline-block
  }

  .thumb {
    width: var(--thumb-size-mobile);
    height: var(--thumb-size-mobile);
    border-radius: var(--radius-14)
  }
}




/* =========================================================
   PRODUCTO + GRID - SOLO ESTILOS
   HTML real:
   .gridview > .imagen > a.button_productos > .polaroid-text
   ========================================================= */

/* ---------- GRID GENERAL: relacionados ---------- */
.gridview {
  width: min(var(--w-container-1200, 1200px), 96vw);
  margin: 16px auto 26px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* ---------- PRODUCTO PRINCIPAL ---------- */
.detalle-producto > .gridview {
  width: min(430px, 96vw);
  margin: 18px auto 22px;
  grid-template-columns: 1fr;
}

.gridview > .imagen {
  min-width: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gridview > .imagen > a.button_productos {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-letra-gen, #1d1d1f);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #d2d2d7);
  border-radius: var(--border-radius-lg, 16px);
  box-shadow: var(--shadow-lg, 0 18px 34px rgba(0,0,0,.10));
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.gridview > .imagen > a.button_productos:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl, 0 26px 60px rgba(0,0,0,.12));
  border-color: rgba(37, 99, 235, .35);
}

.gridview .polaroid-text {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--grad-surface, linear-gradient(180deg, #fff, #fbfbfd));
}

.gridview .contenedor-imagen {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  background: var(--color-surface, #fff);
}

.gridview .contenedor-imagen img,
.gridview img#imagenMostrada {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gridview .polaroid-titulo {
  flex: 1 1 auto;
  min-height: 126px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--color-border, #d2d2d7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
}

.detalle-producto > .gridview .polaroid-titulo {
  min-height: 145px;
}

.gridview .polaroid-titulo > div:first-child {
  width: 100%;
}

.gridview .polaroid-mini-titulo {
  margin: 0;
  max-width: 100%;
  font-size: var(--font-size-small, 12px);
  line-height: 1.35;
  font-weight: 800;
  color: var(--color-letra-gen, #1d1d1f);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gridview .rating {
  min-height: 18px;
}

/* ---------- ETIQUETAS ---------- */
.gridview .etiq-GENERICO,
.gridview .etiq-AMAZON,
.gridview .etiq-ALIEXPRESS,
.gridview .etiq-MIRAVIA,
.gridview .discount,
.gridview .out-of-stock {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: var(--radius-pill, 999px);
  font-size: var(--font-size-small, 12px);
  line-height: 1;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-badge, 0 10px 18px rgba(0,0,0,.10));
}

.gridview .etiq-AMAZON {
  background: rgba(255, 215, 0, .92);
  color: var(--color-ink-800, #111);
}

.gridview .etiq-ALIEXPRESS {
  background: rgba(255, 77, 77, .92);
  color: var(--color-white, #fff);
}

.gridview .etiq-MIRAVIA,
.gridview .etiq-GENERICO {
  background: rgba(245, 158, 11, .28);
  color: var(--color-warning-900, #b95000);
}

.gridview .discount,
.gridview .out-of-stock {
  left: auto;
  right: 12px;
}

.gridview .discount {
  background: rgba(220, 38, 38, .94);
  color: var(--color-white, #fff);
}

.gridview .out-of-stock {
  background: rgba(15, 23, 42, .94);
  color: var(--color-white, #fff);
}

/* ---------- PRECIO EN CARD ---------- */
.gridview .price {
  display: inline-block;
  text-align: center;
}

.gridview .price__container,
.gridview .price__value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}

.gridview .price__scratched {
  margin-left: 0;
}

/* ---------- FILAS DE BOTONES COMPRA / FLECHAS ---------- */
.detalle-producto > .container:has(a.boton_compra) {
  width: min(var(--w-container-1200, 1200px), 96vw);
  margin: 18px auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
  text-align: center;
}

.detalle-producto > .container:has(a.boton_compra) br,
.detalle-producto > .container:has(a.boton_compra) p:empty {
  display: none;
}

/* Botón principal */
a.boton_compra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: var(--radius-pill, 999px);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-amz, 0 14px 30px rgba(0,0,0,.14));
}

a.boton_compra > div:not(.ver-imagen-prod) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
}

/* Flechas: no deben heredar el botón amarillo */
a.boton_compra.ver-imagen-prod {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0 !important;
  border-radius: 50%;
  animation: none !important;
  background: var(--color-surface, #fff) !important;
  color: var(--color-ink-900, #1d1d1f) !important;
  border: 1px solid var(--color-border, #d2d2d7);
  box-shadow: var(--shadow-sm, 0 8px 20px rgba(0,0,0,.06));
  transform: none;
}

a.boton_compra.ver-imagen-prod > div.ver-imagen-prod {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.boton_compra.ver-imagen-prod i {
  font-size: 17px;
  line-height: 1;
  color: var(--color-ink-900, #1d1d1f);
}

a.boton_compra.ver-imagen-prod:hover {
  background: var(--color-surface-4, #efeff4) !important;
  transform: translateY(-1px);
}

/* ---------- BOTONES DETALLES / VARIANTES EN RELACIONADOS ---------- */
.gridview > .imagen > div:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  text-align: center;
}

.gridview > .imagen > div:last-child a.button_productos,
.gridview a.button_productos.viaja-detalle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: var(--radius-pill, 999px);
  background: var(--color-ink-900, #1d1d1f);
  color: var(--color-white, #fff);
  font-size: var(--font-size-small, 12px);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: var(--shadow-sm, 0 8px 20px rgba(0,0,0,.06));
}

/* Limpia huecos de <p></p> generados por PHP */
.detalle-producto p:empty,
.gridview p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1223px) {
  .gridview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 919px) {
  .gridview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .gridview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .detalle-producto > .gridview {
    width: min(420px, 96vw);
    grid-template-columns: 1fr;
  }

  .detalle-producto > .container:has(a.boton_compra) {
    gap: 10px;
  }

  a.boton_compra {
    padding: 10px 16px;
    font-size: var(--font-size-small, 12px);
  }
}

@media (max-width: 420px) {
  .gridview {
    grid-template-columns: 1fr;
  }

  .detalle-producto > .container:has(a.boton_compra) {
    flex-wrap: wrap;
  }
}


















/* ============================
   Etiquetas / estados
   ============================ */
.discount,
.out-of-stock,
.etiq-GENERICO,
.etiq-AMAZON,
.etiq-ALIEXPRESS {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: var(--font-size-small);
  z-index: 2;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-badge);
  font-weight: 900;
}

.discount {
  left: auto;
  right: 12px;
  background: rgba(220, 38, 38, .92);
  color: var(--color-white)
}

.out-of-stock {
  left: auto;
  right: 12px;
  background: rgba(15, 23, 42, .92);
  color: var(--color-white)
}

.etiq-GENERICO {
  background: rgba(245, 158, 11, .25);
  color: var(--color-warning-900)
}

.etiq-AMAZON {
  background: rgba(255, 215, 0, .70);
  color: var(--color-ink-800)
}

.etiq-ALIEXPRESS {
  background: rgba(255, 77, 77, .90);
  color: var(--color-white)
}

/* ============================
   Botones compra
   ============================ */
@keyframes latido {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.03)
  }

  100% {
    transform: scale(1)
  }
}

a.boton_compra {
  color: var(--color-white);
  background: var(--color-ink-900);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  animation: latido 3s infinite ease-in-out;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-amz);
}

a.boton_compra.amazon {
  color: var(--color-boton-amazon);
  background: linear-gradient(180deg, var(--color-boton-amazon-bck0), var(--color-boton-amazon-bck));
}

a.boton_compra.aliex {
  color: var(--color-boton-alie);
  background: linear-gradient(180deg, var(--color-boton-alie-bck0), var(--color-boton-alie-bck));
}

a.boton_compra:hover {
  filter: brightness(.96);
  transform: translateY(-1px)
}

a.boton_compra:active {
  transform: translateY(1px)
}

a.boton_compra>div {
  text-align: center
}

a.boton_compra>img {
  display: block;
  margin: 5px auto 0;
  width: 55px;
  height: auto
}

/* ============================
   Precio
   ============================ */
.price {
  --fs: var(--font-size-xxlarge);
  --fw: 900;
  color: inherit;
}

.price--mixed .price__value {
  color: var(--color-precio-num);
}

.price__value {
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
  font-size: var(--fs);
  font-weight: var(--fw);
  white-space: nowrap;
}

.price__scratched {
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
  margin-left: .4rem;
  color: var(--color-text-muted);
  opacity: .9;
  font-size: var(--font-size-small);
}

.price__scratched .price__integer,
.price__scratched .price__decimal {
  text-decoration: line-through;
}

.price--B {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}

.price--B .price__scratched {
  margin: 0 0 .1rem 0;
}

/* ============================
   Footer
   ============================ */
footer {
  background: var(--grad-footer);
  color: var(--color-letra-gen);
  font-size: var(--font-size-small);
  padding: 18px 10px;
  border-top: 1px solid var(--color-border);
}

footer .container {
  max-width: var(--w-container-1200);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-10)
}

footer h3 {
  font-size: var(--font-size-medium);
  font-weight: 900;
  margin: 0 0 6px 0;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer-links li {
  margin: 8px 0
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 800;
  transition: color .15s ease, transform .15s ease;
}

.footer-links a:hover {
  color: var(--brand-primary);
  transform: translateX(3px)
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}

.footer-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  background: rgba(37, 99, 235, .10);
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background-color .15s ease;
  border: 1px solid rgba(37, 99, 235, .18);
}

.footer-social a:hover {
  background: rgba(255, 77, 77, .14);
  transform: scale(1.06)
}

.footer-bottom {
  text-align: center;
  font-size: var(--font-size-mini);
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  margin-top: 14px;
  color: var(--color-text-muted);
}

@media screen and (max-width:768px) {
  footer .container {
    grid-template-columns: 1fr;
    text-align: center
  }

  .footer-section {
    align-items: center
  }

  .footer-social {
    justify-content: center
  }
}

/* ============================
   FAQ
   ============================ */
.titular_h3 {
  font-size: var(--font-size-normal);
  margin-bottom: 10px
}

details {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  margin: 12px 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

summary {
  font-size: var(--font-size-normal);
  padding: 12px;
  cursor: pointer;
  font-weight: 900
}

details div {
  padding: 12px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted)
}

/* ============================
   Logs
   ============================ */
.log-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed
}

.log-table,
.log-table th,
.log-table td {
  border: 1px solid var(--color-black)
}

.log-table th,
.log-table td {
  padding: 8px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word
}

.log-table th {
  background: var(--color-table-head)
}

.chart-container {
  width: 60%;
  max-height: 65%
}

@media(max-width:768px) {
  .chart-container {
    width: 100%;
    max-height: 50%
  }
}

/* ============================
   Vídeo
   ============================ */
.container-video {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: var(--video-max);
  width: 100%;
  margin: 0 auto;
  border-radius: var(--border-radius-lg)
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0
}

/* ============================
   Anuncio
   ============================ */
.exchange-links {
  display: flex;
  align-items: center;
  gap: var(--gap-10)
}

.exchange-links img {
  height: 40px;
  width: auto
}

.anuncio-container {
  max-width: var(--video-max);
  border: 1px solid var(--color-border);
  padding: 14px;
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.anuncio-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  text-align: left
}

.anuncio-scroll ul {
  padding-left: 20px
}

.anuncio-scroll a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 900
}

.anuncio-scroll a:hover {
  text-decoration: underline
}

/* ============================
   Botón flotante
   ============================ */
@keyframes parpadeo {
  0% {
    opacity: 1
  }

  50% {
    opacity: .72
  }

  100% {
    opacity: 1
  }
}

#botonFlotante,
#botonFlotante2 {
  position: fixed;
  right: var(--float-right);
  padding: 10px 12px;
  background: linear-gradient(180deg, var(--color-boton-flota-bck0), rgba(245, 158, 11, .70));
  border-radius: var(--radius-pill);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform .15s ease, filter .15s ease;
  font-size: var(--font-size-small);
  animation: parpadeo 2s infinite;
  z-index: var(--z-float);
  border: 1px solid rgba(255, 255, 255, .35);
}

#botonFlotante {
  bottom: var(--float-bottom-1)
}

#botonFlotante2 {
  bottom: var(--float-bottom-2)
}

#botonFlotante img,
#botonFlotante2 img {
  width: var(--float-icon);
  height: var(--float-icon)
}

#botonFlotante p,
#botonFlotante2 p {
  margin: 0;
  line-height: normal;
  color: var(--color-boton-flota-text);
  font-weight: 900
}

#botonFlotante:hover,
#botonFlotante2:hover {
  background: linear-gradient(180deg, var(--color-boton-flota-bck), rgba(255, 77, 77, .70));
  transform: translateY(-2px);
  filter: brightness(.98);
}

/* ============================
   Linktree
   ============================ */
.linktree-background {
  position: relative;
  background-size: cover;
  background-position: top left;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 40px;
}

.linktree-container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-20);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .20);
  padding: 24px;
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
  color: var(--color-ink-800);
}

.linktree-logo {
  width: 40vw;
  max-width: 200px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-pill);
  object-fit: cover;
  margin: 0 auto 12px
}

.linktree-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 10px 0 5px
}

.linktree-desc {
  color: var(--color-ink-600);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px
}

.linktree-btn {
  display: block;
  background: var(--grad-linktree-success);
  color: var(--color-white) !important;
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: var(--font-size-16);
  font-weight: 900;
  transition: transform .12s ease, filter .12s ease;
}

.linktree-btn:hover {
  transform: translateY(-1px);
  filter: brightness(.98)
}

.linktree-btn-extra {
  display: block;
  background: var(--grad-linktree-extra);
  color: #183a74 !important;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: var(--radius-14);
  text-decoration: none;
  font-size: var(--font-size-14);
  font-weight: 900;
  box-shadow: var(--shadow-md);
  transition: transform .12s ease, filter .12s ease;
}

.linktree-btn-extra:hover {
  transform: translateY(-1px);
  filter: brightness(.99)
}

.social-icons {
  margin-top: 22px
}

.social-icons a {
  margin: 0 8px;
  display: inline-block
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform .12s
}

.social-icons img:hover {
  transform: scale(1.08)
}

.linktree-subtitle {
  font-size: .95rem;
  margin-bottom: 18px;
  line-height: 1.4;
  font-weight: 900
}

.linktree-btn-social {
  background: linear-gradient(180deg, #0077b5, #005582)
}

.linktree-banner {
  display: block;
  margin: 10px 0;
  border-radius: var(--radius-18);
  overflow: hidden;
  box-shadow: var(--shadow-md)
}

.linktree-banner-img {
  display: block;
  width: 100%;
  height: auto
}

/* ============================
   Banner aliexpress
   ============================ */
.banner-aliexpress {
  text-align: center;
  margin: 20px auto;
  max-width: var(--banner-max);
  width: 100%
}

.banner-aliexpress img {
  width: 100%;
  height: auto;
  max-width: var(--banner-max);
  max-height: var(--banner-max-h);
  display: block;
  margin: 0 auto
}

/* ============================
   Paginación
   ============================ */
.paginacion {
  display: flex;
  justify-content: center;
  margin: 2rem 0 3rem;
  font-family: inherit
}

.paginacion__lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 0;
  align-items: center
}

.paginacion__link,
.paginacion__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--grad-surface);
  font-size: .9rem;
  text-decoration: none;
  color: var(--color-ink-900);
}

.paginacion__link:hover {
  filter: brightness(.98)
}

.paginacion__link--activo {
  border-color: var(--color-ink-900);
  background: var(--color-ink-900);
  color: var(--color-white)
}

.paginacion__link--disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none
}

.paginacion__ellipsis {
  border: none;
  background: transparent
}

@media (max-width:480px) {

  .paginacion__link,
  .paginacion__ellipsis {
    min-width: 2rem;
    height: 2rem;
    padding: 0 .5rem;
    font-size: .8rem
  }
}

.home-btn {
  display: inline-block;
  background: var(--color-ink-900);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: var(--radius-12);
  font-weight: 900;
  text-decoration: none;
}

/* Banner nombre */
.www-text--banner {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-banner-name);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
}

.www-text--banner a {
  color: var(--color-white);
  text-decoration: none
}

.www-text--banner img {
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18);
}

.www-text--banner .www-text__name {
  font-weight: 900;
  letter-spacing: .2px
}

/* ============================
   GRID cards genéricas (categorías custom + top productos)
   ============================ */
.grid-cat,
.top-prod-grid {
  display: grid;
  gap: var(--gap-18);
}

.grid-cat {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.top-prod-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px
}

@media (max-width:1100px) {

  .grid-cat,
  .top-prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width:820px) {

  .grid-cat,
  .top-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:520px) {

  .grid-cat,
  .top-prod-grid {
    grid-template-columns: 1fr
  }
}

/* Card-cat */
.card-cat {
  background: var(--color-surface);
  border-radius: var(--radius-18);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-cat__link {
  display: block;
  color: inherit;
  text-decoration: none
}

.card-cat__body {
  padding: 14px 16px 18px
}

.card-cat__body h3 {
  font-size: var(--font-size-16);
  line-height: var(--line-height-tight-2);
  margin: 0 0 8px;
  font-weight: 800;
  text-decoration: none
}

.card-cat__body p {
  margin: 0;
  font-size: var(--font-size-13);
  line-height: var(--line-height-tight);
  color: var(--color-muted-500)
}

/* Collages */
.card-cat__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.single-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--color-surface)
}

.img-collage-2,
.img-collage-3 {
  width: 100%;
  height: 100%;
  display: grid;
  gap: var(--gap-10)
}

.img-collage-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr
}

.img-collage-3 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr)
}

.img-collage-3 .big {
  grid-column: 1 / span 2
}

.img-collage-2 .cell,
.img-collage-3 .cell {
  background: var(--color-surface);
  border-radius: var(--radius-14);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.img-collage-2 img,
.img-collage-3 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--color-surface)
}

/* ============================
   TOP PRODUCTOS (polaroid + carousel)
   - Carrusel categoría/producto unificado
   ============================ */
.top-prods {
  margin-top: 6px;
}

.top-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 16px;
  margin: 10px 0 2px;
  align-items: stretch;
}

.top-carousel::-webkit-scrollbar {
  height: var(--scrollbar-h);
}

.top-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .18);
  border-radius: var(--radius-pill);
}

.polaroid {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, .075);
  border-radius: var(--radius-18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .075);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.polaroid__img {
  width: 100%;
  height: 190px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.polaroid__img a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid__img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--color-surface);
  display: block;
}

.polaroid__body {
  padding: 13px 14px 15px;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.polaroid__title {
  font-weight: 900;
  font-size: 12px;
  line-height: 1.2;
  margin: 0 0 7px;
  color: var(--color-ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.polaroid__title2 {
  margin: 0 0 7px;
  color: var(--color-muted-600);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  min-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.polaroid__desc {
  margin: 0 0 12px;
  color: var(--color-muted-600);
  font-size: 12.5px;
  line-height: 1.28;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.polaroid__row {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.polaroid__price {
  font-weight: 900;
  color: var(--color-danger-600);
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaroid__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  background: var(--grad-btn-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
}

.polaroid__btn:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.polaroid__btn:active {
  transform: translateY(1px);
}

/* Carousel sizing */
.top-carousel .polaroid {
  flex: 0 0 var(--top-carousel-card);
  max-width: var(--top-carousel-card);
  min-width: var(--top-carousel-card);
  scroll-snap-align: start;
}

@media (max-width:760px) {
  .top-carousel {
    gap: 12px;
    padding: 8px 2px 14px;
  }

  .top-carousel .polaroid {
    flex: 0 0 var(--top-carousel-card-mobile);
    max-width: var(--top-carousel-card-mobile);
    min-width: min(var(--top-carousel-card-min), 82vw);
  }

  .polaroid__img {
    height: 178px;
  }

  .polaroid__body {
    min-height: 214px;
  }
}

@media (max-width:420px) {
  .polaroid__row {
    grid-template-columns: 1fr;
  }
  .polaroid__btn {
    width: 100%;
  }
}

/* ============================
   HERO (fix media query inválida)
   ============================ */
.hero {
  border-radius: var(--radius-18);
  overflow: hidden;
  background: radial-gradient(1200px 500px at 10% 0%, var(--hero-accent-1), transparent 55%),
    radial-gradient(900px 420px at 90% 10%, var(--hero-accent-2), transparent 60%),
    linear-gradient(180deg, var(--hero-surface), var(--hero-surface-2));
  box-shadow: var(--hero-shadow);
  margin: 10px 0 16px;
  border: 1px solid rgba(255, 255, 255, .06);
}

.hero__tile {
  position: relative;
  border-radius: var(--radius-14);
  overflow: hidden;
  display: block;
  outline: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .25);
}

.hero__tile:hover {
  outline-color: var(--hero-tile-border);
}

.hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, filter .25s ease;
  will-change: transform;
  filter: saturate(1.05) contrast(1.02);
}

.hero__tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.06);
}

.hero__tile:after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

/* micro-brillo en borde al hover */
.hero__tile:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.hero__tile:hover:before {
  opacity: 1;
}

.hero__label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-14);
  background: var(--hero-label-bg);
  border: 1px solid var(--hero-label-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--hero-label-text);
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--font-size-13);
  line-height: 1.12;
  box-shadow: var(--hero-label-shadow);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(var(--hero-cols), minmax(0, 1fr));
  gap: var(--gap-14);
}

/* Mobile */
@media (max-width:760px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .hero__grid .hero__tile {
    grid-column: auto !important;
    grid-row: auto !important;

    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: var(--radius-18);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(2, 6, 23, .30);
    position: relative;
  }

  .hero__grid .hero__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.menu-lista,
.submenu {
  list-style: none;
  /* ← elimina los puntos */
  margin: 0;
  padding: 0;
}

.menu-lista {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.menu-lista>li {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-menu);
}

.menu-lista a {
  text-decoration: none;
  color: var(--color-ink-800);
  font-weight: 600;
}

.menu-lista a:hover {
  color: #0b57d0;
}

.toggle-submenu {
  float: right;
  cursor: pointer;
  color: var(--color-muted-400);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-6);
}

.toggle-submenu:hover {
  background: #f3f4f6;
  color: var(--color-ink-800);
}

.submenu {
  display: none;
  margin-top: 6px;
  padding-left: 12px;
  /* indent limpio */
  border-left: 2px solid var(--color-border-soft-2);
}

.submenu.active {
  display: block;
}

.submenu li {
  padding: 6px 0;
}

.submenu a {
  font-weight: 500;
  color: var(--color-ink-700);
}

.submenu a:hover {
  color: #0b57d0;
}

.texto-superior.gris {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-14);
  padding: 10px;
}

.faqs {
  margin: 24px 0
}

.faqs__title {
  margin: 0 0 10px
}

.faq {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius-12);
  padding: 10px 12px;
  margin: 10px 0;
  background: var(--color-surface)
}

.faq>summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none
}

.faq>summary::-webkit-details-marker {
  display: none
}

.faq__a {
  margin-top: 10px;
  line-height: var(--line-height-faq)
}

.faqs__warn {
  margin-top: 10px;
  font-size: var(--font-size-12);
  opacity: .75
}

/* ============================
   Carrusel categorías (mismo look que grid-cat)
   ============================ */
.cat-carousel {
  display: flex;
  gap: var(--gap-18);
  /* igual que grid */
  overflow-x: auto;
  padding: 0;
  /* alineado con grid (sin padding extra) */
  margin-top: 18px;
  /* separación visual tras el grid de 8 */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.cat-carousel>.card-cat {
  flex: 0 0 auto;
  width: calc((100% - (var(--gap-18) * 3)) / 4);
  /* 4 columnas equivalentes */
  scroll-snap-align: start;
}

/* 3 cols */
@media (max-width:1100px) {
  .cat-carousel>.card-cat {
    width: calc((100% - (var(--gap-18) * 2)) / 3);
  }
}

/* 2 cols */
@media (max-width:820px) {
  .cat-carousel>.card-cat {
    width: calc((100% - var(--gap-18)) / 2);
  }
}

/* 1 col */
@media (max-width:520px) {
  .cat-carousel>.card-cat {
    width: 100%;
  }
}

/* scrollbar discreta (opcional) */
.cat-carousel::-webkit-scrollbar {
  height: var(--scrollbar-h-small);
}

.cat-carousel::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .18);
}

.cat-carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .06);
}

.search-wrap {
  max-width: var(--w-container-1200);
  margin: 0 auto
}

.search-head {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 10px 0 18px
}

.search-title {
  margin: 0;
  font-size: var(--font-size-22)
}

.search-form {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 280px
}

.search-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: var(--radius-12);
  padding: 10px 12px;
  font-size: var(--font-size-14);
  background: var(--color-surface);
}

.search-form button {
  border: 0;
  border-radius: var(--radius-12);
  padding: 10px 14px;
  cursor: pointer;
  background: var(--color-ink-800);
  color: var(--color-white);
  font-weight: 700;
}

.kpi {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.kpi .pill {
  font-size: var(--font-size-12);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .06)
}

.section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 8px
}

.section-h h2 {
  margin: 0;
  font-size: var(--font-size-18)
}

.pager {
  display: flex;
  gap: 8px;
  align-items: center
}

.pager a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-10);
  background: rgba(0, 0, 0, .06);
  text-decoration: none
}

.pager .on {
  background: var(--color-ink-800);
  color: var(--color-white)
}

.tbl-wrap {
  width: 100%;
  overflow: auto;
  border-radius: var(--radius-14);
  box-shadow: var(--shadow-card-soft)
}

.tbl {
  min-width: 760px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface)
}

.tbl th,
.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  vertical-align: top
}

.tbl th {
  font-size: var(--font-size-12);
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
  background: rgba(0, 0, 0, .03);
  position: sticky;
  top: 0
}

.tbl tr:last-child td {
  border-bottom: 0
}

.thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: var(--radius-12);
  object-fit: cover;
  background: rgba(0, 0, 0, .06);
  display: block
}

.badge {
  display: inline-block;
  font-size: var(--font-size-11);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .06)
}

.muted {
  opacity: .75
}

.right {
  text-align: right
}

.nowrap {
  white-space: nowrap
}

/* ===== MOBILE: tabla -> cards ===== */
.mcard {
  display: none
}

@media (max-width: 720px) {
  .tbl-wrap {
    overflow: visible;
    box-shadow: none
  }

  .tbl {
    min-width: 0
  }

  .tbl thead {
    display: none
  }

  .tbl,
  .tbl tbody,
  .tbl tr,
  .tbl td {
    display: block;
    width: 100%
  }

  .tbl tr {
    background: var(--color-surface);
    border-radius: var(--radius-14);
    box-shadow: var(--shadow-card-soft);
    margin: 12px 0;
    overflow: hidden;
  }

  .tbl td {
    border-bottom: 0;
    padding: 12px
  }

  /* categorías */
  .tbl.cat td.cat-name {
    padding-bottom: 6px
  }

  .tbl.cat td.cat-snip {
    padding-top: 0
  }

  /* productos: ocultamos columnas, usamos mcard */
  .tbl.prod td.col-marca,
  .tbl.prod td.col-price,
  .tbl.prod td.col-web,
  .tbl.prod td.col-action {
    display: none
  }

  .tbl.prod td.col-img {
    padding-bottom: 6px
  }

  .tbl.prod td.col-title {
    padding-top: 0
  }

  .mcard {
    display: block;
    margin-top: 10px
  }

  .mmeta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
  }

  .mmeta .price {
    font-weight: 800
  }

  .mmeta .brand {
    opacity: .75
  }

  .mcta {
    margin-top: 10px
  }

  .mcta a {
    display: inline-block
  }

  .thumb {
    width: var(--thumb-size-mobile);
    height: var(--thumb-size-mobile);
    border-radius: var(--radius-14)
  }
}
/* =========================================================
   PRODUCTO / HISTORIAL DE PRECIOS
   Integrado en main_v0.css.
   ========================================================= */
.detalle-producto{
  --product-page-w:min(var(--w-container-1100), var(--vw-page));
  --product-card-radius:var(--radius-20);
  --product-card-border:var(--color-border-soft);
  --product-soft-shadow:0 18px 45px rgba(0,0,0,.08);
  width:var(--product-page-w);
  margin:0 auto;
  padding:0 0 10px;
}

.detalle-producto .titulo-producto,
.titulo-producto{
  width:min(var(--w-container-1100), var(--vw-page));
  margin:18px auto 10px;
  padding:20px 22px;
  background:linear-gradient(180deg,var(--color-surface),var(--color-surface-2));
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-20);
  box-shadow:var(--shadow-sm);
}

.titulo-producto h1{
  margin:0;
  color:var(--color-ink-900);
  font-size:clamp(22px,3vw,34px);
  line-height:1.12;
  letter-spacing:-.035em;
}

.titulo-producto h2{
  margin:10px 0 0;
  color:var(--color-muted-600);
  font-size:var(--font-size-medium);
  font-weight:700;
}

.titulo-producto h2 a{color:var(--brand-primary);text-decoration:none}
.titulo-producto h2 a:hover{text-decoration:underline}

.detalle-producto > .gridview:first-of-type{
  width:min(540px, var(--vw-page));
  max-width:540px;
  grid-template-columns:1fr;
  margin:18px auto 12px;
}

.detalle-producto .imagen{
  position:relative;
  margin:0;
}

.detalle-producto .button_productos{
  display:block;
  color:inherit;
  text-decoration:none;
}

.detalle-producto .polaroid-text{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,var(--color-surface),var(--color-surface-2));
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-20);
  box-shadow:var(--product-soft-shadow);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.detalle-producto .button_productos:hover .polaroid-text{
  transform:translateY(-2px);
  border-color:rgba(0,113,227,.35);
  box-shadow:0 24px 55px rgba(0,0,0,.12);
}

.detalle-producto .contenedor-imagen{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:320px;
  padding:24px;
  background:radial-gradient(circle at 50% 20%, rgba(0,113,227,.06), transparent 34%), #fff;
}

.detalle-producto .contenedor-imagen img{
  display:block;
  width:100%;
  max-width:440px;
  max-height:440px;
  object-fit:contain;
  border-radius:var(--radius-14);
}

.detalle-producto .polaroid-titulo{
  padding:18px 20px 22px;
  text-align:center;
  border-top:1px solid var(--color-border-soft);
  background:linear-gradient(180deg,#fff,var(--color-surface-2));
}

.detalle-producto .polaroid-mini-titulo{
  margin-top:8px;
  color:var(--color-ink-900);
  font-size:var(--font-size-medium);
  font-weight:800;
  line-height:1.35;
}

.detalle-producto .container{
  width:var(--product-page-w);
  margin:18px auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.detalle-producto a.boton_compra{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 24px;
  border-radius:var(--radius-pill);
  font-size:var(--font-size-normal);
  line-height:1.1;
  letter-spacing:.01em;
  text-decoration:none!important;
  box-shadow:var(--shadow-btn);
  animation:none;
  transition:transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.detalle-producto a.boton_compra:hover{
  transform:translateY(-2px);
  filter:brightness(.98);
  box-shadow:0 18px 35px rgba(0,0,0,.16);
}

.detalle-producto a.boton_compra:active{transform:translateY(1px)}
.detalle-producto a.boton_compra.amazon{text-shadow:none;background:linear-gradient(180deg,#ffd84d,#ffbd00)}
.detalle-producto a.boton_compra.aliex{text-shadow:none;background:linear-gradient(180deg,#ff4d4d,#d70015)}
.detalle-producto a.boton_compra.miravia{text-shadow:none;background:linear-gradient(135deg,#4d2cda,#22c1c3);color:#fff}
.detalle-producto a.ver-imagen-prod{min-width:52px;padding:12px 16px}

.detalle-producto .discount,
.detalle-producto .out-of-stock,
.detalle-producto .etiq-GENERICO,
.detalle-producto .etiq-AMAZON,
.detalle-producto .etiq-ALIEXPRESS,
.detalle-producto .etiq-MIRAVIA{
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:6px 11px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(255,255,255,.45);
  box-shadow:var(--shadow-badge);
  font-size:var(--font-size-small);
  font-weight:900;
  letter-spacing:.02em;
  backdrop-filter:blur(8px);
}

.detalle-producto .discount,
.detalle-producto .out-of-stock{left:auto;right:14px}
.detalle-producto .discount{background:rgba(215,0,21,.92);color:#fff}
.detalle-producto .out-of-stock{background:rgba(29,29,31,.9);color:#fff}
.detalle-producto .etiq-GENERICO{background:rgba(245,183,0,.82);color:#1d1d1f}
.detalle-producto .etiq-AMAZON{background:rgba(255,213,79,.92);color:#1d1d1f}
.detalle-producto .etiq-ALIEXPRESS{background:rgba(229,57,53,.92);color:#fff}
.detalle-producto .etiq-MIRAVIA{background:linear-gradient(135deg,#4d2cda,#22c1c3);color:#fff}

.price-history-card,
.resumen-opiniones,
.descripcion-producto{
  width:var(--product-page-w);
  margin:24px auto;
  padding:24px;
  background:linear-gradient(180deg,var(--color-surface),var(--color-surface-2));
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-20);
  box-shadow:var(--product-soft-shadow);
}

.resumen-opiniones h2,
.descripcion-producto h2,
.price-history-card h2{
  margin:0 0 12px;
  color:var(--color-ink-900);
  font-size:clamp(19px,2vw,25px);
  line-height:1.18;
  letter-spacing:-.025em;
}

.resumen-opiniones p,
.descripcion-producto p,
.descripcion-producto li{
  color:var(--color-ink-700);
  font-size:var(--font-size-normal);
  line-height:1.65;
}

.descripcion-producto a,
.resumen-opiniones a{color:var(--brand-primary);font-weight:800;text-decoration:none}
.descripcion-producto a:hover,
.resumen-opiniones a:hover{text-decoration:underline}
.descripcion-producto img{max-width:100%;height:auto;border-radius:var(--radius-14)}

.price-history-card{overflow:hidden}
.price-history-card__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:16px;
}

.price-history-card__eyebrow{
  margin:0 0 4px;
  color:var(--color-muted-600);
  font-size:var(--font-size-small);
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.price-history-card__head h2{margin:0}
.price-history-card__current{
  min-width:160px;
  padding:13px 15px;
  text-align:right;
  background:#fff;
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-14);
  box-shadow:var(--shadow-xs);
}

.price-history-card__current span,
.price-history-card__stats span{
  display:block;
  color:var(--color-muted-600);
  font-size:var(--font-size-small);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.price-history-card__current strong{
  display:block;
  margin-top:3px;
  color:var(--color-precio-num);
  font-size:26px;
  line-height:1;
  letter-spacing:-.045em;
}

.price-history-card__stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}

.price-history-card__stats > div{
  min-width:0;
  padding:13px;
  background:#fff;
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-14);
}

.price-history-card__stats strong{
  display:block;
  margin-top:4px;
  color:var(--color-ink-900);
  font-size:var(--font-size-medium);
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.price-history-card__stats small{
  display:block;
  margin-top:3px;
  color:var(--color-muted-600);
  font-size:var(--font-size-small);
  line-height:1.25;
}

.price-history-card__stats .is-good strong{color:var(--brand-success)}
.price-history-card__stats .is-bad strong{color:var(--brand-accent)}
.price-history-chart{
  width:100%;
  height:260px;
  padding:8px 0 0;
  color:var(--brand-primary);
  background:linear-gradient(180deg,#fff,#fafafa);
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-18);
  overflow:hidden;
}
.price-history-chart svg{display:block;width:100%;height:100%}
.price-history__grid-line{stroke:#e5e5ea;stroke-width:1}
.price-history__line{
  fill:none;
  stroke:currentColor;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
.price-history__dot{
  fill:#fff;
  stroke:currentColor;
  stroke-width:4;
  vector-effect:non-scaling-stroke;
}
.price-history__label,
.price-history__axis{
  fill:var(--color-muted-600);
  font-size:12px;
  font-weight:800;
}
.price-history-card__note{
  margin:12px 0 0;
  color:var(--color-muted-600);
  font-size:var(--font-size-small);
  line-height:1.45;
}

.detalle-producto .banner-aliexpress{
  width:var(--product-page-w);
  margin:28px auto;
  padding:0;
  text-align:center;
}
.detalle-producto .banner-aliexpress img{
  display:block;
  width:100%;
  max-width:900px;
  max-height:none;
  margin:0 auto;
  border-radius:var(--radius-20);
  box-shadow:var(--product-soft-shadow);
}

.texto-inferior{
  width:min(var(--w-container-1100), var(--vw-page));
  padding:0;
  background:transparent;
}
.texto-inferior h3{
  margin:30px 0 14px;
  color:var(--color-ink-900);
  font-size:clamp(19px,2vw,25px);
  letter-spacing:-.02em;
}

@media(min-width:1224px){.detalle-producto + .texto-inferior + .gridview,.detalle-producto ~ .gridview{grid-template-columns:repeat(4,1fr)}}
@media(min-width:900px) and (max-width:1223px){.detalle-producto + .texto-inferior + .gridview,.detalle-producto ~ .gridview{grid-template-columns:repeat(3,1fr)}}
@media(min-width:620px) and (max-width:899px){.detalle-producto + .texto-inferior + .gridview,.detalle-producto ~ .gridview{grid-template-columns:repeat(2,1fr)}}

@media(max-width:700px){
  .detalle-producto{--product-page-w:var(--vw-page-mobile)}
  .titulo-producto{width:var(--vw-page-mobile);padding:18px 16px}
  .detalle-producto > .gridview:first-of-type{width:var(--vw-page-mobile);max-width:var(--vw-page-mobile)}
  .detalle-producto .contenedor-imagen{min-height:260px;padding:16px}
  .detalle-producto .polaroid-titulo{padding:16px}
  .detalle-producto .price{--fs:24px}
  .detalle-producto .container{width:var(--vw-page-mobile);gap:10px}
  .detalle-producto a.boton_compra{width:100%;min-height:49px;padding:12px 16px}
  .detalle-producto a.ver-imagen-prod{width:auto;min-width:52px;flex:1 1 52px}
  .price-history-card,
  .resumen-opiniones,
  .descripcion-producto{padding:17px;margin:20px auto}
  .price-history-card__head{display:block}
  .price-history-card__current{text-align:left;margin-top:12px}
  .price-history-card__stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .price-history-chart{height:220px}
}

@media(max-width:430px){
  .price-history-card__stats{grid-template-columns:1fr}
  .detalle-producto .contenedor-imagen{min-height:220px}
}

/* ============================
   PRODUCTO v3: hero + galería + histórico integrado
   ============================ */
.product-page{
  --product-page-w:min(var(--w-container-1200), var(--vw-page));
  --product-gap:clamp(16px,2.4vw,28px);
}

.product-page__title{
  width:var(--product-page-w);
  margin-top:18px;
}

.product-hero{
  width:var(--product-page-w);
  margin:18px auto 28px;
  display:grid;
  grid-template-columns:minmax(330px,.92fr) minmax(0,1.08fr);
  gap:var(--product-gap);
  align-items:start;
}

.product-hero__media,
.product-hero__content{
  min-width:0;
}

.product-media-card,
.product-summary-card{
  background:linear-gradient(180deg,var(--color-surface),var(--color-surface-2));
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-20);
  box-shadow:var(--product-soft-shadow);
  overflow:hidden;
}

.product-media-card__stage{
  position:relative;
  min-height:clamp(330px,42vw,560px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(18px,3vw,34px);
  background:
    radial-gradient(circle at 50% 12%, rgba(0,113,227,.08), transparent 32%),
    linear-gradient(180deg,#fff,#fbfbfd);
}

.product-media-card__main{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  text-decoration:none;
}

.product-media-card__main img{
  display:block;
  width:100%;
  max-width:520px;
  max-height:520px;
  object-fit:contain;
  object-position:center;
  transition:transform .18s ease, opacity .18s ease;
}

.product-media-card__main:hover img{transform:scale(1.015)}

.product-gallery-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:4;
  width:44px;
  height:44px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:var(--radius-pill);
  background:rgba(255,255,255,.92);
  color:var(--color-ink-900);
  box-shadow:var(--shadow-md);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.product-gallery-nav:hover{background:#fff;box-shadow:var(--shadow-lg)}
.product-gallery-nav:active{transform:translateY(-50%) scale(.96)}
.product-gallery-nav--prev{left:14px}
.product-gallery-nav--next{right:14px}

.product-gallery-thumbs{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:14px;
  border-top:1px solid var(--color-border-soft);
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  background:rgba(255,255,255,.72);
}
.product-gallery-thumbs::-webkit-scrollbar{height:var(--scrollbar-h)}
.product-gallery-thumbs::-webkit-scrollbar-thumb{background:rgba(0,0,0,.18);border-radius:var(--radius-pill)}

.product-gallery-thumb{
  flex:0 0 76px;
  width:76px;
  height:76px;
  padding:6px;
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-14);
  background:#fff;
  cursor:pointer;
  scroll-snap-align:start;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.is-active{
  border-color:rgba(0,113,227,.55);
  box-shadow:0 8px 18px rgba(0,113,227,.12);
}
.product-gallery-thumb.is-active{transform:translateY(-1px)}
.product-gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.product-summary-card{
  padding:clamp(18px,2.4vw,28px);
}
.product-summary-card__eyebrow{
  margin:0 0 8px;
  color:var(--color-muted-600);
  font-size:var(--font-size-small);
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.product-summary-card h2{
  margin:0;
  color:var(--color-ink-900);
  font-size:clamp(22px,2.4vw,32px);
  line-height:1.14;
  letter-spacing:-.035em;
}
.product-main-price{
  margin:18px 0 16px;
  padding:16px 18px;
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-18);
  background:#fff;
  box-shadow:var(--shadow-xs);
}
.product-main-price .price{--fs:clamp(30px,4.5vw,46px)}
.product-main-price__old{
  display:block;
  margin-top:4px;
  font-size:.58em;
  opacity:.72;
}
.product-summary-card__cta{
  width:100%;
  margin:0 0 18px;
}
.product-summary-card__meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.product-summary-card__meta span{
  min-width:0;
  padding:12px;
  border:1px solid var(--color-border-soft);
  border-radius:var(--radius-14);
  background:rgba(255,255,255,.72);
  color:var(--color-ink-800);
  font-size:var(--font-size-small);
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
}
.product-summary-card__meta strong{
  display:block;
  margin-bottom:3px;
  color:var(--color-muted-600);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.product-summary-card__meta a{color:var(--brand-primary);font-weight:900;text-decoration:none}
.product-summary-card__meta a:hover{text-decoration:underline}

.product-hero__history{margin-top:var(--product-gap)}
.product-hero__history .price-history-card{
  width:100%;
  margin:0;
  padding:clamp(18px,2.2vw,24px);
}
.product-hero__history .price-history-card__stats{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.product-hero__history .price-history-chart{height:230px}

.product-related{
  width:var(--product-page-w);
  margin:8px auto 34px;
}
.product-related .texto-inferior{
  width:100%;
  margin:0;
}
.product-related-carousel{
  width:100%;
  margin-top:8px;
}
.product-related-carousel .polaroid{
  flex:0 0 var(--top-carousel-card);
  max-width:var(--top-carousel-card);
  min-width:var(--top-carousel-card-min);
  scroll-snap-align:start;
}
.product-related-card__img{position:relative}
.product-related-card__badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  padding:5px 9px;
  border-radius:var(--radius-pill);
  background:rgba(255,255,255,.92);
  border:1px solid var(--color-border-soft);
  box-shadow:var(--shadow-xs);
  color:var(--color-ink-900);
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
}
.product-related-card__price-row{
  justify-content:flex-start;
  min-height:24px;
  margin-bottom:10px;
}
.product-related-card__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:auto;
}
.product-related-card__actions .polaroid__btn{
  width:100%;
  min-width:0;
  padding:10px 9px;
  font-size:12px;
}
.product-related-card__detail{
  background:linear-gradient(180deg,#fff,#f2f2f7)!important;
  color:var(--color-ink-900)!important;
  border:1px solid var(--color-border-soft);
  box-shadow:none;
}

/* Oculta restos de estructura antigua en producto si quedaran generados por caché */
.product-page > .gridview:first-of-type{display:none}

@media(max-width:980px){
  .product-hero{grid-template-columns:1fr}
  .product-media-card__stage{min-height:clamp(300px,60vw,480px)}
  .product-hero__history .price-history-card__stats{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:700px){
  .product-page{--product-page-w:var(--vw-page-mobile)}
  .product-hero{gap:16px;margin-top:14px}
  .product-summary-card__meta{grid-template-columns:1fr}
  .product-hero__history .price-history-card__stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-media-card__stage{min-height:280px;padding:16px}
  .product-gallery-nav{width:40px;height:40px}
  .product-gallery-nav--prev{left:8px}
  .product-gallery-nav--next{right:8px}
  .product-gallery-thumb{flex-basis:66px;width:66px;height:66px}
  .product-related-carousel .polaroid{
    flex:0 0 var(--top-carousel-card-mobile);
    max-width:var(--top-carousel-card-mobile);
  }
}

@media(max-width:430px){
  .product-hero__history .price-history-card__stats{grid-template-columns:1fr}
  .product-related-card__actions{grid-template-columns:1fr}
}

/* ============================
   PRODUCTO v4: carrusel como categoría + historial completo
   ============================ */
.price-history__point{
  fill:var(--color-white);
  stroke:currentColor;
  stroke-width:2;
  opacity:.95;
  vector-effect:non-scaling-stroke;
}
.price-history__point:hover{
  fill:currentColor;
  r:5;
}
.product-hero__history .price-history-card{
  margin-top:0;
}
.product-hero__history .price-history-chart{
  height:clamp(220px,28vw,300px);
}
.product-related.top-prods{
  width:min(var(--site-max),calc(100% - 32px));
  margin:22px auto 38px;
}
.product-related .texto-inferior{
  width:100%;
  margin:0 0 8px;
}
.product-related .texto-inferior h3{
  margin:0;
  color:var(--color-ink-900);
  font-size:clamp(22px,3vw,32px);
  line-height:1.15;
}
.product-related-carousel{
  width:100%;
  margin:10px 0 0;
  padding:8px 2px 14px;
}
.product-related-carousel .polaroid{
  flex:0 0 var(--top-carousel-card);
  max-width:var(--top-carousel-card);
  min-width:var(--top-carousel-card-min);
  scroll-snap-align:start;
}
.product-related-card .polaroid__img{
  aspect-ratio:4/3;
  padding:14px;
  background:var(--color-surface);
}
.product-related-card .polaroid__img a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  text-decoration:none;
}
.product-related-card .polaroid__img img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.polaroid__title2{
  margin:0 0 8px;
  color:var(--color-muted-600);
  font-size:12px;
  line-height:1.25;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-related-card .polaroid__body{
  display:flex;
  flex-direction:column;
  flex:1;
}
.product-related-card__main-row{
  margin-top:auto;
  align-items:center;
  gap:10px;
}
.product-related-card__main-row .polaroid__price{
  min-width:0;
}
.product-related-card__detail{
  background:linear-gradient(180deg,#fff,#f2f2f7)!important;
  color:var(--color-ink-900)!important;
  border:1px solid var(--color-border-soft);
  box-shadow:none;
  flex:0 0 auto;
}
.product-related-card__buy{
  width:100%;
  margin-top:10px;
}
.product-related-card__cat{
  margin:12px 0 0;
  font-size:12px;
}
.product-related-card__cat a{
  color:inherit;
  text-decoration:none;
}
.product-related-card__cat a:hover{
  text-decoration:underline;
}
@media (max-width:760px){
  .product-related.top-prods{
    width:min(var(--site-max),calc(100% - 20px));
    margin:18px auto 30px;
  }
  .product-related-carousel{
    padding:6px 0 12px;
  }
  .product-related-carousel .polaroid{
    flex:0 0 var(--top-carousel-card-mobile);
    max-width:var(--top-carousel-card-mobile);
    min-width:min(var(--top-carousel-card-min),88vw);
  }
  .product-related-card__main-row{
    flex-wrap:wrap;
  }
  .product-related-card__detail{
    flex:1 1 110px;
  }
}
@media (max-width:520px){
  .price-history-card__stats{
    grid-template-columns:1fr;
  }
  .product-hero__history .price-history-chart{
    height:230px;
  }
}

/* ============================
   PRODUCTO · carrusel relacionado centrado v5
   ============================ */
.product-related.top-prods{
  width:min(var(--site-max),calc(100% - 32px));
  margin:28px auto 44px;
  padding:0;
}
.product-related .texto-inferior{
  max-width:var(--site-max);
  margin:0 auto 14px;
  text-align:center;
}
.product-related .texto-inferior h3{
  display:inline-block;
  margin:0;
  padding:0 10px;
  font-size:clamp(21px,2.4vw,30px);
  line-height:1.15;
  color:var(--color-ink-900);
}
.product-related-carousel{
  width:max-content;
  max-width:100%;
  margin:0 auto;
  padding:12px 10px 18px;
  gap:18px;
  justify-content:flex-start;
  scroll-padding-inline:10px;
}
.product-related-carousel .polaroid{
  flex:0 0 258px;
  max-width:258px;
  min-width:258px;
  scroll-snap-align:center;
  border-radius:20px;
  box-shadow:0 12px 30px rgba(0,0,0,.09);
}
.product-related-card .polaroid__img{
  aspect-ratio:1/1;
  padding:18px 18px 10px;
  border-bottom:1px solid rgba(0,0,0,.045);
}
.product-related-card .polaroid__img a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  border-radius:16px;
}
.product-related-card .polaroid__img a:hover img{
  transform:scale(1.035);
}
.product-related-card .polaroid__img img{
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .18s ease;
}
.product-related-card .polaroid__body{
  min-height:218px;
  padding:13px 15px 15px;
  text-align:left;
}
.product-related-card .polaroid__title{
  min-height:18px;
  margin:0 0 6px;
  font-size:12px;
  letter-spacing:.01em;
  color:var(--color-ink-900);
}
.product-related-card .polaroid__title2{
  margin:0 0 7px;
  color:var(--color-muted-600);
  font-size:12px;
  line-height:1.25;
  font-weight:700;
  -webkit-line-clamp:2;
  line-clamp:2;
}
.product-related-card .polaroid__desc{
  min-height:48px;
  margin:0 0 10px;
  font-size:13px;
  line-height:1.25;
  color:var(--color-muted-600);
  -webkit-line-clamp:3;
  line-clamp:3;
}
.product-related-card__main-row{
  margin-top:auto;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:8px;
}
.product-related-card__main-row .polaroid__price{
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:18px;
}
.product-related-card__detail{
  min-width:88px;
  padding:9px 12px;
  background:linear-gradient(180deg,#fff,#f3f4f6)!important;
  color:var(--color-ink-900)!important;
  border:1px solid var(--color-border-soft);
  box-shadow:none;
}
.product-related-card__buy{
  width:100%;
  margin-top:9px;
  padding:11px 14px;
}
.product-related-card__cat{
  margin:10px 0 0;
  min-height:15px;
  font-size:11px;
  line-height:1.2;
  color:var(--color-muted-600);
  text-align:center;
}
.product-related-card__cat a{
  color:inherit;
  text-decoration:none;
}
.product-related-card__cat a:hover{
  text-decoration:underline;
}
@media (min-width:1180px){
  .product-related-carousel{
    padding-left:14px;
    padding-right:14px;
  }
}
@media (max-width:760px){
  .product-related.top-prods{
    width:min(var(--site-max),calc(100% - 18px));
    margin:22px auto 34px;
  }
  .product-related .texto-inferior{
    text-align:left;
    margin-bottom:10px;
  }
  .product-related .texto-inferior h3{
    padding:0;
  }
  .product-related-carousel{
    width:100%;
    max-width:100%;
    margin:0;
    padding:8px 2px 14px;
    gap:14px;
  }
  .product-related-carousel .polaroid{
    flex:0 0 78vw;
    max-width:78vw;
    min-width:min(270px,78vw);
    scroll-snap-align:start;
  }
  .product-related-card .polaroid__body{
    min-height:210px;
  }
}
@media (max-width:420px){
  .product-related-carousel .polaroid{
    flex-basis:84vw;
    max-width:84vw;
  }
  .product-related-card__main-row{
    grid-template-columns:1fr;
  }
  .product-related-card__detail{
    width:100%;
  }
}
.price-history-card__stats .is-neutral strong{color:var(--brand-muted)}





/***************************************/
/***************************************/
/***************************************/
/* =========================================================
   ARTÍCULO SIMPLE RESPONSIVE
   Breadcrumb > Artículo > Precio/Gráfica > Comparativa > Similares > FAQs
========================================================= */

/* Header web no flotante */
body > header,
header {
  position: static !important;
  top: auto !important;
}

/* Seguridad anti overflow */
.article-simple-page,
.article-simple-page * {
  box-sizing: border-box;
}

.article-simple-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 60px;
  color: var(--color-ink-900, #1d1d1f);
  overflow-x: hidden;
}

/* Breadcrumb */

.article-simple-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 6px 0 26px;
  padding: 11px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  font-size: 12px;
  line-height: 1.35;
}

.article-simple-breadcrumb a {
  color: var(--brand-primary, #0071e3);
  text-decoration: none;
  font-weight: 800;
}

.article-simple-breadcrumb a:hover {
  text-decoration: underline;
}

.article-simple-breadcrumb span {
  color: var(--color-muted-500, #7d7d82);
}

.article-simple-breadcrumb strong {
  color: var(--color-ink-800, #111);
  font-weight: 900;
}

/* Header artículo */

.article-simple-header {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: transparent !important;
  position: static !important;
}

.article-simple-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(0,113,227,.10);
  color: var(--brand-primary, #0071e3);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-simple-header h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  color: var(--color-ink-900, #1d1d1f);
}

.article-simple-intro {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--color-muted-600, #6e6e73);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

/* Bloques */

.article-simple-section {
  margin: 28px 0;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.055);
}

.article-simple-section h2 {
  margin: 0 0 16px;
  color: var(--color-ink-900, #1d1d1f);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.article-simple-section h3 {
  margin: 26px 0 12px;
  color: var(--color-ink-900, #1d1d1f);
  font-size: 1.2rem;
  line-height: 1.25;
}

.article-simple-section p {
  color: var(--color-ink-700, #2a2a2e);
  font-size: 1.06rem;
  line-height: 1.82;
}

.article-simple-section p:first-child {
  margin-top: 0;
}

/* Artículo */

.article-simple-copy {
  padding-top: clamp(26px, 4vw, 44px);
}

.article-simple-copy ul,
.article-simple-comparison ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.article-simple-copy li,
.article-simple-comparison li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 15px;
  background: var(--color-surface-3, #f5f5f7);
  color: var(--color-ink-700, #2a2a2e);
  line-height: 1.55;
}

.article-simple-copy li::before,
.article-simple-comparison li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(52,199,89,.18);
  color: #166534;
  font-size: 12px;
  font-weight: 950;
}

/* Precio + gráfica */

.article-simple-price-grid {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: stretch;
  margin: 28px 0;
}

.article-simple-price-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, .22), transparent 34%),
    linear-gradient(135deg, #111, #2c2c2e);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

.article-simple-price-label {
  margin: 0 0 10px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-simple-price-card h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.article-simple-price-value {
  margin: 0 0 16px;
}

.article-simple-price-value strong {
  display: block;
  color: #ffd700;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: .92;
  font-weight: 950;
  letter-spacing: -.07em;
  word-break: break-word;
}

.article-simple-price-value span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.45;
}

.article-simple-price-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
}

.article-simple-price-meta div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.74);
  font-size: 13px;
}

.article-simple-price-meta div:last-child {
  border-bottom: 0;
}

.article-simple-price-meta strong {
  color: #fff;
  text-align: right;
}

.article-simple-cta,
.article-simple-final-cta a {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 15px !important;
  text-align: center;
  text-decoration: none !important;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.article-simple-graph-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.055);
}

.article-simple-graph-card .price-history-card {
  margin: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.article-simple-graph-card svg,
.article-simple-graph-card canvas {
  max-width: 100%;
}

/* Comparativa */

.article-simple-comparison {
  overflow: hidden;
}

.article-simple-comparison table {
  width: 100%;
  margin: 20px 0 26px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
}

.article-simple-comparison th,
.article-simple-comparison td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  text-align: left;
  vertical-align: top;
}

.article-simple-comparison th {
  background: var(--color-ink-900, #1d1d1f);
  color: #fff;
  font-size: 13px;
}

.article-simple-comparison td {
  background: #fff;
  color: var(--color-ink-700, #2a2a2e);
}

.article-simple-comparison tr:nth-child(even) td {
  background: var(--color-surface-3, #f5f5f7);
}

.article-simple-comparison tr:last-child td {
  border-bottom: 0;
}

/* CTA final */

.article-simple-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255,215,0,.18), transparent 32%),
    linear-gradient(135deg, #111, #2c2c2e);
  color: #fff;
}

.article-simple-final-cta h2 {
  margin: 0 0 8px;
  color: #fff;
}

.article-simple-final-cta p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

/* =========================================================
   PRODUCTOS SIMILARES - CARRUSEL RESPONSIVE
========================================================= */

.article-simple-related {
  margin: 42px 0 0;
  padding: 28px;
  border-radius: 26px;
  background: var(--color-surface-3, #f5f5f7);
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
}

.article-simple-related h2 {
  margin: 0 0 22px;
  color: var(--color-ink-900, #1d1d1f);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  letter-spacing: -.035em;
}

.article-simple-related .product-related-carousel {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 18px;
  margin: 0;
}

.article-simple-related .product-related-carousel .polaroid {
  flex: 0 0 240px;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  scroll-snap-align: start;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-simple-related .polaroid__img {
  width: 100%;
  height: 185px;
  padding: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-simple-related .polaroid__img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.article-simple-related .polaroid__img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background: #fff;
}

.article-simple-related .polaroid__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 255px;
  padding: 14px 16px 16px;
}

.article-simple-related .polaroid__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-ink-900, #1d1d1f);
}

.article-simple-related .polaroid__desc {
  margin: 0 0 12px;
  color: var(--color-muted-600, #6e6e73);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-simple-related .product-related-card__main-row {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.article-simple-related .polaroid__price {
  font-size: 17px;
  font-weight: 950;
  color: var(--color-danger-600, #ff3b30);
  white-space: nowrap;
}

.article-simple-related .product-related-card__detail {
  flex: 0 0 auto;
  white-space: nowrap;
}

.article-simple-related .product-related-card__buy {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.article-simple-related .product-related-carousel::-webkit-scrollbar {
  height: 10px;
}

.article-simple-related .product-related-carousel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0,0,0,.20);
}

.article-simple-related .product-related-carousel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(0,0,0,.06);
}

/* FAQs */

.article-simple-faqs {
  margin: 42px 0 0;
}

.article-faqs {
  padding: clamp(22px, 4vw, 38px);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(0,113,227,.08), transparent 34%),
    #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.055);
}

.article-faqs h2 {
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
}

.article-faq {
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.article-faq + .article-faq {
  margin-top: 12px;
}

.article-faq summary {
  position: relative;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  color: var(--color-ink-900, #1d1d1f);
  font-weight: 900;
  list-style: none;
}

.article-faq summary::-webkit-details-marker {
  display: none;
}

.article-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,113,227,.10);
  color: var(--brand-primary, #0071e3);
  font-weight: 950;
  transform: translateY(-50%);
}

.article-faq[open] summary::after {
  content: "−";
  background: var(--brand-primary, #0071e3);
  color: #fff;
}

.article-faq > div {
  padding: 0 20px 20px;
  color: var(--color-muted-600, #6e6e73);
  line-height: 1.7;
  border-top: 0;
}

.article-faq > div p {
  margin: 0;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 900px) {
  .article-simple-page {
    width: min(100% - 22px, 760px);
  }

  .article-simple-price-grid,
  .article-simple-final-cta {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESPONSIVE MÓVIL
========================================================= */

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .article-simple-page {
    width: 100%;
    max-width: 100%;
    padding: 14px 10px 44px;
  }

  .article-simple-breadcrumb {
    margin: 4px 0 18px;
    padding: 10px 11px;
    border-radius: 14px;
    gap: 5px;
    font-size: 11px;
    line-height: 1.35;
  }

  .article-simple-breadcrumb strong {
    flex-basis: 100%;
    margin-top: 2px;
  }

  .article-simple-header {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .article-simple-kicker {
    font-size: 10px;
    padding: 6px 10px;
    margin-bottom: 10px;
  }

  .article-simple-header h1 {
    font-size: clamp(1.72rem, 8.5vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.04em;
  }

  .article-simple-intro {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .article-simple-section {
    margin: 18px 0;
    padding: 18px 16px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,.045);
  }

  .article-simple-section h2 {
    font-size: 1.42rem;
    line-height: 1.18;
  }

  .article-simple-section h3 {
    font-size: 1.1rem;
  }

  .article-simple-section p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .article-simple-copy {
    padding-top: 18px;
  }

  .article-simple-copy li,
  .article-simple-comparison li {
    padding: 11px 12px 11px 38px;
    border-radius: 13px;
    font-size: .96rem;
  }

  .article-simple-copy li::before,
  .article-simple-comparison li::before {
    left: 12px;
    top: 11px;
  }

  /* Precio móvil */
  .article-simple-price-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 18px 0;
  }

  .article-simple-price-card,
  .article-simple-graph-card {
    border-radius: 18px;
  }

  .article-simple-price-card {
    padding: 20px 16px;
  }

  .article-simple-price-card h2 {
    font-size: 1.35rem;
    line-height: 1.18;
  }

  .article-simple-price-value strong {
    font-size: clamp(2.4rem, 13vw, 3.45rem);
    letter-spacing: -.055em;
  }

  .article-simple-price-meta div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 0;
  }

  .article-simple-price-meta strong {
    text-align: left;
  }

  .article-simple-cta,
  .article-simple-final-cta a {
    min-height: 50px;
    border-radius: 14px !important;
    font-size: .95rem;
  }

  /* Gráfica móvil */
  .article-simple-graph-card {
    overflow-x: auto;
  }

  .article-simple-graph-card .price-history-card {
    min-width: 0;
  }

  .article-simple-graph-card .price-history-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .article-simple-graph-card .price-history-chart {
    overflow-x: auto;
  }

  .article-simple-graph-card svg {
    width: 100%;
    min-width: 520px;
  }

  /* Comparativa móvil */
  .article-simple-comparison {
    overflow-x: auto;
  }

  .article-simple-comparison table {
    min-width: 620px;
    font-size: 13px;
  }

  .article-simple-comparison th,
  .article-simple-comparison td {
    padding: 12px 13px;
  }

  /* CTA móvil */
  .article-simple-final-cta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-simple-final-cta h2 {
    font-size: 1.35rem;
  }

  /* Carrusel móvil */
  .article-simple-related {
    margin-top: 30px;
    padding: 18px 12px;
    border-radius: 18px;
  }

  .article-simple-related h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
  }

  .article-simple-related .product-related-carousel {
    gap: 14px;
    padding: 2px 2px 14px;
    scroll-padding-left: 2px;
  }

  .article-simple-related .product-related-carousel .polaroid {
    flex: 0 0 min(82vw, 310px);
    width: min(82vw, 310px);
    min-width: min(82vw, 310px);
    max-width: min(82vw, 310px);
    border-radius: 18px;
  }

  .article-simple-related .polaroid__img {
    height: 200px;
    padding: 12px;
  }

  .article-simple-related .polaroid__body {
    min-height: 225px;
    padding: 13px 14px 15px;
  }

  .article-simple-related .polaroid__desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 12.5px;
  }

  .article-simple-related .product-related-card__main-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .article-simple-related .polaroid__price {
    font-size: 16px;
  }

  .article-simple-related .product-related-card__detail {
    padding-inline: 12px;
    font-size: 12px;
  }

  .article-simple-related .product-related-card__buy {
    min-height: 44px;
  }

  /* FAQs móvil */
  .article-simple-faqs {
    margin-top: 30px;
  }

  .article-faqs {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .article-faqs h2 {
    font-size: 1.55rem;
  }

  .article-faq summary {
    padding: 16px 46px 16px 16px;
    font-size: .98rem;
  }

  .article-faq > div {
    padding: 0 16px 16px;
  }
}

/* Móvil estrecho */

@media (max-width: 420px) {
  .article-simple-page {
    padding-inline: 8px;
  }

  .article-simple-header h1 {
    font-size: clamp(1.58rem, 9vw, 2.05rem);
  }

  .article-simple-related .product-related-carousel .polaroid {
    flex-basis: 86vw;
    width: 86vw;
    min-width: 86vw;
    max-width: 86vw;
  }

  .article-simple-related .polaroid__img {
    height: 185px;
  }

  .article-simple-related .polaroid__body {
    min-height: 220px;
  }
}

/* =========================================================
   FIX PRODUCTO SOBRE FORMATO ARTICLE-SIMPLE
   Corrige alineación hero + precio/gráfica
========================================================= */

/* Evita cortes laterales */
.article-simple-page.product-page {
  overflow: visible;
}

/* HERO: imagen + ficha */
.article-simple-page.product-page .product-hero.article-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 28px;
  align-items: stretch;
  margin: 28px 0;
}

/* Ambas columnas deben ocupar el mismo alto visual */
.article-simple-page.product-page .product-hero__media,
.article-simple-page.product-page .product-hero__content {
  min-width: 0;
  height: 100%;
}

/* Tarjeta imagen */
.article-simple-page.product-page .product-media-card {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.055);
}

/* Imagen principal: más estable */
.article-simple-page.product-page .product-media-card__stage {
  min-height: 560px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.article-simple-page.product-page .product-media-card__main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.article-simple-page.product-page #imagenMostrada {
  width: 100%;
  height: 100%;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

/* Miniaturas */
.article-simple-page.product-page .product-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.article-simple-page.product-page .product-gallery-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 6px;
  border-radius: 13px;
}

.article-simple-page.product-page .product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ficha derecha */
.article-simple-page.product-page .product-summary-card {
  height: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.055);
  overflow: hidden;
}

/* Eyebrow */
.article-simple-page.product-page .product-summary-card__eyebrow {
  margin: 0 0 12px;
  color: var(--color-muted-600, #6e6e73);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Título: antes era demasiado grande y rompía */
.article-simple-page.product-page .product-summary-card h2 {
  margin: 0 0 20px;
  color: var(--color-ink-900, #1d1d1f);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

/* Precio del hero */
.article-simple-page.product-page .product-summary-card .product-main-price {
  margin: 0 0 18px;
  padding: 24px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
}

.article-simple-page.product-page .product-summary-card .price__value {
  color: var(--color-danger-600, #ff3b30);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: 1;
}

.article-simple-page.product-page .product-summary-card .product-main-price__old {
  display: block;
  margin-top: 8px;
  color: var(--color-muted-600, #6e6e73);
  font-size: 1rem;
  letter-spacing: 0;
}

/* Botón */
.article-simple-page.product-page .product-summary-card__cta {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  border-radius: 16px;
  text-align: center;
  text-decoration: none !important;
  font-weight: 950;
}

/* Metas */
.article-simple-page.product-page .product-summary-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.article-simple-page.product-page .product-summary-card__meta span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
}

.article-simple-page.product-page .product-summary-card__meta strong {
  color: var(--color-muted-600, #6e6e73);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.article-simple-page.product-page .product-summary-card__meta a,
.article-simple-page.product-page .product-summary-card__meta span {
  font-size: 13px;
  line-height: 1.35;
}

/* =========================================================
   FIX PRECIO + GRÁFICA
========================================================= */

.article-simple-page.product-page .article-simple-price-grid {
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: stretch;
  margin: 28px 0;
}

/* Panel negro más compacto y estable */
.article-simple-page.product-page .article-simple-price-card {
  min-width: 0;
  padding: 34px;
}

/* Evita que el precio gigante rompa */
.article-simple-page.product-page .article-simple-price-value strong {
  font-size: clamp(3rem, 5.4vw, 4.8rem);
  white-space: nowrap;
}

/* Gráfica: no debe salirse */
.article-simple-page.product-page .article-simple-graph-card {
  min-width: 0;
  overflow: hidden;
}

.article-simple-page.product-page .price-history-card {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

/* Stats de la gráfica */
.article-simple-page.product-page .price-history-card__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.article-simple-page.product-page .price-history-card__stats > div {
  min-width: 130px;
}

/* Chart */
.article-simple-page.product-page .price-history-chart {
  width: 100%;
  overflow: hidden;
}

.article-simple-page.product-page .price-history-chart svg {
  width: 100%;
  min-width: 0;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 980px) {
  .article-simple-page.product-page .product-hero.article-product-hero {
    grid-template-columns: 1fr;
  }

  .article-simple-page.product-page .product-media-card__stage {
    height: 500px;
    min-height: 500px;
  }

  .article-simple-page.product-page .product-summary-card {
    min-height: auto;
  }

  .article-simple-page.product-page .article-simple-price-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESPONSIVE MÓVIL
========================================================= */

@media (max-width: 640px) {
  .article-simple-page.product-page .product-hero.article-product-hero {
    gap: 18px;
    margin: 18px 0;
  }

  .article-simple-page.product-page .product-media-card,
  .article-simple-page.product-page .product-summary-card {
    border-radius: 18px;
  }

  .article-simple-page.product-page .product-media-card__stage {
    height: 340px;
    min-height: 340px;
  }

  .article-simple-page.product-page #imagenMostrada {
    max-width: 94%;
    max-height: 94%;
  }

  .article-simple-page.product-page .product-gallery-thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .article-simple-page.product-page .product-summary-card {
    padding: 20px 16px;
  }

  .article-simple-page.product-page .product-summary-card h2 {
    font-size: clamp(1.35rem, 6.8vw, 1.95rem);
    line-height: 1.12;
  }

  .article-simple-page.product-page .product-summary-card .product-main-price {
    padding: 18px 16px;
  }

  .article-simple-page.product-page .product-summary-card .price__value {
    font-size: clamp(2.3rem, 12vw, 3.35rem);
  }

  .article-simple-page.product-page .product-summary-card__meta {
    grid-template-columns: 1fr;
  }

  .article-simple-page.product-page .article-simple-price-card {
    padding: 24px 20px;
  }

  .article-simple-page.product-page .article-simple-price-value strong {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .article-simple-page.product-page .price-history-card__stats {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .article-simple-page.product-page .price-history-chart {
    overflow-x: auto;
  }

  .article-simple-page.product-page .price-history-chart svg {
    min-width: 520px;
  }
}