/* ================================================================
   VendeYa · Galería premium v2
   Se activa únicamente cuando el tema aplicado trae data-theme-preset.
   No modifica tiendas existentes ni páginas que no usan estos 20 presets.
   ================================================================ */

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) {
  --premium-radius: 18px;
  --premium-radius-sm: 12px;
  --premium-shadow: 0 18px 48px rgba(15, 23, 42, .10);
  --premium-shadow-hover: 0 24px 64px rgba(15, 23, 42, .16);
  --premium-line: color-mix(in srgb, var(--t-texto, #0f172a) 11%, transparent);
  --premium-surface: color-mix(in srgb, var(--t-fondo, #fff) 96%, var(--acento) 4%);
  --premium-mobile-scrim: linear-gradient(180deg, rgba(255,255,255,0) 12%, rgba(255,255,255,.76) 48%, rgba(255,255,255,.98) 74%);
  background: var(--t-fondo, #fff);
  color: var(--t-texto, #0f172a);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Header nítido y estable, sin robarle protagonismo al hero. */
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .tienda-header {
  background: color-mix(in srgb, var(--t-fondo, #fff) 89%, transparent);
  border-bottom: 1px solid var(--premium-line);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .045);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .tienda-header .interior {
  width: min(100%, 1240px);
  min-height: 72px;
  padding: 12px 28px;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .tienda-header .nombre {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.035em;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .tienda-header .th-menu a {
  position: relative;
  font-family: var(--fuente), Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .015em;
  opacity: .78;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .tienda-header .th-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--acento);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .tienda-header .th-menu a:hover::after {
  transform: scaleX(1);
}

/* Hero de campaña: fotografía real + contenido HTML completamente editable. */
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero {
  min-height: clamp(530px, 65vh, 700px);
  display: flex;
  align-items: center;
  padding: 92px max(28px, calc((100vw - 1180px) / 2));
  background-position: center center !important;
  border-bottom: 1px solid var(--premium-line);
  isolation: isolate;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero .velo {
  opacity: 0 !important;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero .contenido {
  width: min(48%, 590px);
  max-width: 590px;
  margin: 0 auto 0 0;
  z-index: 2;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero h1 {
  max-width: 12.5ch;
  margin: 0 0 22px;
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 850;
  line-height: .99;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero p {
  max-width: 52ch;
  margin: 0 0 32px;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.6;
  opacity: .84;
  text-wrap: pretty;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero .btn-hero,
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-bannercta .btn-hero,
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-oferta-timer .btn-hero {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border: 1px solid color-mix(in srgb, var(--acento) 70%, #000 8%);
  border-radius: var(--premium-radius-sm);
  background: var(--acento);
  color: #fff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--acento) 24%, transparent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero .btn-hero:hover,
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-bannercta .btn-hero:hover,
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-oferta-timer .btn-hero:hover {
  transform: translateY(-3px);
  filter: saturate(1.08) brightness(.97);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--acento) 34%, transparent);
}

/* Ritmo y ancho editorial. */
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-envoltura > .sec {
  width: min(100% - 40px, 1180px);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .titulo-seccion,
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-testimonios > h2,
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-faq > h2,
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-ti h2,
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .la-texto h2 {
  font-size: clamp(30px, 4vw, 48px) !important;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

/* Productos con jerarquía comercial real. */
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .grid-tienda {
  gap: 22px;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .grid-tienda > .prod-celda {
  min-width: 0;
  border-radius: var(--premium-radius);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius);
  background: color-mix(in srgb, var(--t-fondo, #fff) 98%, var(--acento) 2%);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--acento) 32%, transparent);
  box-shadow: var(--premium-shadow-hover);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .foto {
  overflow: hidden;
  background: var(--premium-surface);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .foto img {
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub:hover .foto .foto-img {
  transform: scale(1.045);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .cuerpo {
  gap: 12px;
  padding: 18px;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .nombre {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.35;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .precio {
  font-family: var(--fuente-tit), Inter, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .cta {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--premium-radius-sm);
}

/* Beneficios, historia, prueba social y preguntas. */
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-beneficios {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .beneficio {
  min-width: 0;
  padding: 26px 22px;
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius);
  background: color-mix(in srgb, var(--t-fondo, #fff) 97%, var(--acento) 3%);
  box-shadow: 0 8px 26px rgba(15, 23, 42, .045);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .beneficio .icono {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--acento) 13%, transparent);
  font-size: 23px;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .beneficio h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .beneficio p {
  font-size: 13.5px;
  line-height: 1.65;
  opacity: .74;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-ti {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(34px, 6vw, 84px);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-ti.lado-der {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-ti .ti-img {
  overflow: hidden;
  border: 0;
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-ti p,
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .la-texto p {
  font-size: 16px;
  line-height: 1.85;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .grid-testimonios {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .testimonio {
  padding: 28px;
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius);
  background: color-mix(in srgb, var(--t-fondo, #fff) 98%, var(--acento) 2%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .testimonio .estrellas {
  color: color-mix(in srgb, var(--acento) 78%, #d39a00 22%);
  letter-spacing: .12em;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .testimonio .texto {
  margin: 16px 0 24px;
  font-size: 15px;
  line-height: 1.72;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .faq-item {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius-sm);
  background: color-mix(in srgb, var(--t-fondo, #fff) 98%, var(--acento) 2%);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .faq-item summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  font-weight: 760;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .faq-item .respuesta {
  padding: 0 20px 20px;
  line-height: 1.7;
  opacity: .76;
}

/* Bloques de cierre y confianza. */
.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-oferta-timer {
  padding: clamp(64px, 8vw, 104px) 24px;
  background: linear-gradient(130deg, color-mix(in srgb, var(--acento) 88%, #07111f), color-mix(in srgb, var(--acento) 46%, #09111f));
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .ot-contenido {
  width: min(100%, 820px);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .ot-reloj {
  gap: 10px;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .ot-cel {
  min-width: 78px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--premium-radius-sm);
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(10px);
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-bannercta {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 76px 24px;
  background-position: center !important;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-bannercta .velo {
  background: linear-gradient(90deg, rgba(5,10,20,.78), rgba(5,10,20,.34));
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-bannercta .bc-contenido {
  max-width: 760px;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-bannercta h2 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.05em;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .galeria-logos {
  gap: 16px;
}

.tienda-body[data-theme-preset]:not([data-theme-preset=""]) .galeria-logos .gl-item {
  min-height: 92px;
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius-sm);
  background-size: cover;
  box-shadow: 0 7px 22px rgba(15,23,42,.045);
}

/* Personalidad de cada familia sin duplicar el constructor. */
.tienda-body[data-theme-preset="aurora"],
.tienda-body[data-theme-preset="natura"],
.tienda-body[data-theme-preset="hogar"],
.tienda-body[data-theme-preset="mascotas"],
.tienda-body[data-theme-preset="vital"],
.tienda-body[data-theme-preset="bebe"],
.tienda-body[data-theme-preset="salud"],
.tienda-body[data-theme-preset="inmobiliaria"] {
  --premium-radius: 24px;
  --premium-radius-sm: 999px;
}

.tienda-body[data-theme-preset="impulso"],
.tienda-body[data-theme-preset="titan"],
.tienda-body[data-theme-preset="pulso"],
.tienda-body[data-theme-preset="academia"],
.tienda-body[data-theme-preset="estudio"],
.tienda-body[data-theme-preset="taller"] {
  --premium-radius: 10px;
  --premium-radius-sm: 7px;
}

.tienda-body[data-theme-preset="legal"],
.tienda-body[data-theme-preset="consultor"] {
  --premium-radius: 6px;
  --premium-radius-sm: 4px;
}

.tienda-body[data-theme-preset="titan"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="pulso"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="joya"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="mentor"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="academia"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="consultor"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="estudio"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="legal"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="coach"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="taller"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="inmobiliaria"]:not([data-theme-preset=""]),
.tienda-body[data-theme-preset="eventos"]:not([data-theme-preset=""]) {
  --premium-mobile-scrim: linear-gradient(180deg, rgba(2,8,23,0) 10%, rgba(2,8,23,.78) 47%, rgba(2,8,23,.98) 73%);
}

.tienda-body[data-theme-preset="estudio"] .sec-hero h1,
.tienda-body[data-theme-preset="pulso"] .sec-hero h1,
.tienda-body[data-theme-preset="taller"] .sec-hero h1 {
  text-transform: uppercase;
  letter-spacing: -.065em;
}

.tienda-body[data-theme-preset="aurora"] .sec-hero h1,
.tienda-body[data-theme-preset="joya"] .sec-hero h1,
.tienda-body[data-theme-preset="legal"] .sec-hero h1,
.tienda-body[data-theme-preset="inmobiliaria"] .sec-hero h1,
.tienda-body[data-theme-preset="eventos"] .sec-hero h1 {
  font-weight: 700;
  letter-spacing: -.045em;
}

@media (prefers-reduced-motion: no-preference) {
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero .contenido {
    animation: premium-entrada .62s cubic-bezier(.2,.72,.2,1) both;
  }
  @keyframes premium-entrada {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 920px) {
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-beneficios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .grid-testimonios {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .tienda-header .interior {
    min-height: 60px;
    padding: 10px 14px;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero {
    min-height: 620px;
    align-items: flex-end;
    padding: 300px 20px 48px;
    background-position: 72% center !important;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: var(--premium-mobile-scrim);
    pointer-events: none;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero .contenido {
    width: 100%;
    max-width: 560px;
    margin: 0;
    text-align: left;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero h1 {
    max-width: 14ch;
    margin-bottom: 16px;
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1.02;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero p {
    max-width: 39ch;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.55;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero .btn-hero {
    width: 100%;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-envoltura > .sec {
    width: min(100% - 28px, 1180px);
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .grid-tienda {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .cuerpo {
    padding: 13px;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .nombre {
    font-size: 13px;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .precio {
    font-size: 18px;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .prod-pub .cta {
    padding-inline: 8px;
    font-size: 11px;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-ti,
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-ti.lado-der {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-ti.lado-der .ti-img {
    order: 0;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-bannercta {
    min-height: 380px;
    padding: 56px 20px;
  }

  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-bannercta h2 {
    font-size: 36px;
  }
}

@media (max-width: 430px) {
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-beneficios,
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .grid-tienda {
    grid-template-columns: 1fr;
  }
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) .sec-hero {
    min-height: 600px;
    padding-top: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) *,
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) *::before,
  .tienda-body[data-theme-preset]:not([data-theme-preset=""]) *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
