/* Estilos del configurador de packs. Todo va aislado bajo .cataliment-app. */

/* Tokens */
:root {
  /* Fondos */
  --white: #ffffff;
  --cream: #f5f5f5; /* fondo de página */
  --cream-deep: #eaeaea; /* tono acompañante (segmentos, tracks, deshabilitados) */

  /* Tinta / texto */
  --ink: #1a1a1a;
  --ink-soft: #4a4640;
  --muted: #8c847a;

  /* Acento único de marca: champán dorado */
  --accent: #dac26d; /* superficies, progreso, estados activos, bordes */
  --accent-deep: #cbae57; /* hover de superficies doradas */
  --accent-text: #90731f; /* dorado legible para texto/iconos sobre fondo claro */
  --accent-wash: #f6efdd; /* tinte dorado muy suave para fondos */

  /* Alias de compatibilidad (misma semántica, ahora en dorado) */
  --caviar: var(--accent);
  --caviar-deep: var(--accent-text);
  --caviar-wash: var(--accent-wash);
  --gold: var(--accent-text);
  --gold-soft: var(--accent);

  --green: #6b8e5a;
  --green-wash: #eef2e9;

  /* Estructura */
  --line: rgba(26, 26, 26, 0.09);
  --line-strong: rgba(26, 26, 26, 0.16);

  /* Sombras suaves (neutras, acordes al fondo gris) */
  --shadow-sm: 0 2px 10px rgba(20, 20, 20, 0.05);
  --shadow-md: 0 12px 30px -12px rgba(20, 20, 20, 0.16);
  --shadow-lg: 0 28px 60px -24px rgba(20, 20, 20, 0.24);

  /* Formas */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Tipografía real de la marca: Montserrat (igual que cataliment.es).
     Se diferencia el rol "display" del "body" por peso y tracking, no por familia. */
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1240px;

  /* Altura aproximada de la barra de pasos fija (ajusta el desplazamiento
     superior del carrito sticky para que quede justo debajo). */
  --stepper-h: 62px;
}

/* Reset (AISLADO en .cataliment-app para no afectar al tema WP) */
html,
body {
  margin: 0;
}
.cataliment-app,
.cataliment-app *,
.cataliment-app *::before,
.cataliment-app *::after {
  box-sizing: border-box;
}
.cataliment-app * {
  margin: 0;
}
.cataliment-app {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.cataliment-app img {
  display: block;
  max-width: 100%;
}
/* :where() mantiene la especificidad en 0 para que las clases de botón (.btn,
   .btn--dark, .chip…) ganen a este reset y conserven su color y fondo. */
.cataliment-app :where(button) {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
.cataliment-app input {
  font: inherit;
}
.cataliment-app :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Utilidades tipográficas */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caviar-deep);
}
.muted {
  color: var(--muted);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 245, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand__name span {
  color: var(--caviar);
}
.header__tag {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .header__tag {
    display: none;
  }
}

/* HERO — titular, entradilla y llamada, sobre fondo liso o imagen */
.hero {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__title {
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 800;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  max-width: 38ch;
  margin-top: 1rem;
  color: var(--ink-soft);
}
.btn.hero__cta {
  width: auto;
  margin-top: 1.8rem;
  padding-inline: 2rem;
}
/* Variante con imagen de fondo (la elige el admin en el panel) */
.hero--bg {
  min-height: clamp(440px, 68vh, 680px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: none;
}
.hero--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(20, 18, 14, 0.72) 0%, rgba(20, 18, 14, 0.38) 55%, rgba(20, 18, 14, 0.12) 100%);
}
.hero--bg .hero__inner {
  width: 100%;
}
.hero--bg .hero__title,
.hero--bg .hero__lead {
  color: #fff;
}

/* VENTAJAS — banda a todo el ancho bajo el hero */
.ventajas {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.ventajas__lista {
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.8rem, 3.4vw, 2.6rem) 1.5rem;
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 1.6rem 2rem;
}
.ventaja {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.9rem;
  align-items: start;
}
.ventaja svg {
  grid-row: span 2;
  color: var(--accent-text);
  margin-top: 2px;
}
.ventaja__titulo {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.ventaja__texto {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}
@media (max-width: 960px) {
  .ventajas__lista[data-n='4'] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .ventajas__lista[data-n] {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* TEXTO PROPIO — lo escribe el dueño en el panel; título a un lado y texto al otro */
.texto-propio {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.2rem clamp(1.4rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.8rem, 6vw, 4.5rem);
}
.texto-propio--solo {
  grid-template-columns: minmax(0, 1fr);
}
.texto-propio__titulo {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.texto-propio__cuerpo {
  display: grid;
  gap: 1em;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .texto-propio {
    grid-template-columns: minmax(0, 1fr);
  }
  .texto-propio__cuerpo {
    font-size: 16px;
  }
}

/* ELIGE TU PACK */
.eleccion__cliente {
  margin-bottom: 1.4rem;
}
.packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.pack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pack:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pack.is-selected {
  border-color: var(--accent);
}
.pack__cabeza {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.pack__num {
  font-size: clamp(60px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.pack__unidad {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
}
.pack__puntos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
  align-content: flex-start;
}
.pack__puntos i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
}
.pack__puntos i.is-regalo {
  background: var(--accent);
  border-color: var(--accent);
}
.pack__regalo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-text);
}
.pack__precio {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pack__elegir {
  margin-top: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  background: var(--ink);
  color: #fff;
}
.pack.is-selected .pack__elegir {
  background: var(--accent);
  color: var(--ink);
}
@media (max-width: 760px) {
  .packs {
    grid-template-columns: minmax(0, 1fr);
  }
  .pack {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1.2rem;
    row-gap: 0.4rem;
    align-items: center;
  }
  .pack__cabeza {
    grid-row: span 3;
    flex-direction: column;
    gap: 0.2rem;
  }
  .pack__puntos {
    min-height: 0;
  }
  .pack__elegir {
    grid-column: 1 / -1;
    margin-top: 0.6rem;
  }
}

/* OPINIONES */
.opiniones {
  margin-top: clamp(56px, 8vw, 96px);
}
.opiniones__cuerpo {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.opiniones__media {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.opiniones__media b {
  font-size: 22px;
  color: var(--ink);
}
.opiniones__total {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.opiniones__reparto {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}
.opiniones__reparto li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.reparto__barra {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  overflow: hidden;
}
.reparto__barra i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.reparto__pct {
  text-align: right;
}
.opiniones__subtitulo {
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.opiniones__fotos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.foto {
  display: block;
  padding: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-deep);
}
.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.foto:hover img {
  transform: scale(1.05);
}
.foto--mini {
  width: 84px;
}
.opiniones__lista {
  list-style: none;
  padding: 0;
  display: grid;
}
.opinion {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.opinion:first-child {
  padding-top: 0;
}
.opinion__cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.opinion__nombre {
  font-size: 15px;
  font-weight: 700;
}
.opinion__fecha {
  font-size: 13px;
  color: var(--muted);
}
.opinion__texto {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-top: 12px;
}
.opinion__fotos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.btn.opiniones__mas {
  width: auto;
  margin-top: 28px;
  padding-inline: 28px;
}
@media (max-width: 860px) {
  .opiniones__cuerpo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Estrellas: fila gris y encima la dorada recortada a la media */
.estrellas {
  position: relative;
  display: inline-flex;
  flex: none;
}
.estrellas svg {
  display: block;
  flex: none;
  fill: currentColor;
}
.estrellas__fondo {
  display: flex;
  gap: 2px;
  color: var(--cream-deep);
}
.estrellas__llenas {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  gap: 2px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent);
}

/* VISOR DE FOTOS */
.visor {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  background: rgba(12, 12, 12, 0.9);
}
.visor__img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.visor__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.visor__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.visor__cerrar {
  top: 1rem;
  right: 1rem;
}
.visor__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.visor__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* LAYOUT PRINCIPAL (configurador + carrito) */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.4rem) 1.5rem 6rem;
}
.builder {
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 2.2rem;
}
/* La columna del carrito se estira a lo alto de la rejilla para que el panel
   sticky tenga recorrido y quede fijo durante todo el scroll. */
.cart-col {
  align-self: stretch;
}
@media (max-width: 1040px) {
  .builder {
    grid-template-columns: 1fr;
  }
}

.section-head {
  margin-bottom: 1.4rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3vw, 37px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-top: 0.3rem;
}
.section-head p {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 0.35rem;
  font-size: 18px;
}

/* STEPPER — barra flotante centrada en la parte inferior */
[data-region='stepper'] {
  display: contents;
}
.stepper {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  flex-wrap: nowrap;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 2rem);
}
.stepper__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.stepper__item[aria-disabled='true'] {
  cursor: not-allowed;
}
.stepper__item.is-active {
  color: var(--ink);
}
.stepper__item.is-done {
  color: var(--green);
}
.stepper__num {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  flex: none;
  transition: all 0.3s var(--ease);
}
.stepper__item.is-active .stepper__num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}
.stepper__item.is-done .stepper__num {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.stepper__label {
  white-space: nowrap;
}
/* En móvil la barra de pasos va arriba, dentro de la página: flotando tapaba
   las fichas y la barra «Ver pack». */
@media (max-width: 1040px) {
  .stepper {
    position: static;
    transform: none;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1.6rem;
    box-shadow: var(--shadow-sm);
  }
}
@media (max-width: 640px) {
  .stepper__item:not(.is-active) .stepper__label {
    display: none;
  }
}
.stepper__bar {
  flex: 1;
  min-width: 18px;
  height: 1.5px;
  background: var(--line-strong);
}

/* SEGMENTED TOGGLE (tipo de cliente) */
.segment {
  display: inline-flex;
  background: var(--cream-deep);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
}
.segment__btn {
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.15rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.segment__btn.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
/* En móviles estrechos el selector ocupa el ancho y no se sale de la pantalla. */
@media (max-width: 420px) {
  .segment {
    display: flex;
    width: 100%;
  }
  .segment__btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.55rem 0.5rem;
    font-size: 13px;
    gap: 0.35rem;
  }
}

/* CAMPO DE IDENTIFICACIÓN (DNI / CIF) — paso 1 */
.taxfield {
  margin-bottom: 1.4rem;
}
.taxfield__input {
  max-width: 340px;
  margin-bottom: 0.5rem;
}
.taxfield__input input {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.taxfield__hint {
  font-size: 13px;
  color: var(--muted);
}
.taxfield__ok {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
}
.taxfield__err {
  font-size: 13px;
  font-weight: 500;
  color: #8a6a2c; /* mismo tono que el aviso de mínimo */
}

/* La rejilla queda bloqueada hasta introducir un DNI/CIF válido. */
.grid-lock {
  transition: opacity 0.25s var(--ease);
}
.grid-lock.is-locked {
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

/* FILTROS DE COLECCIÓN */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 1.4rem;
}
.chip {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--white);
  transition: all 0.2s var(--ease);
}
.chip:hover {
  border-color: var(--caviar);
  color: var(--caviar-deep);
}
.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* REJILLA + TARJETA DE PRODUCTO */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1rem;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease);
}
.card:hover {
  border-color: var(--accent);
}
.card.is-in-cart {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.card__imgwrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  background: var(--cream);
  display: grid;
  place-items: center;
  margin: 0 0 0.9rem;
  width: 100%;
  overflow: hidden;
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__img {
  transform: scale(1.06);
}
.card__badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
}
.badge--bio {
  background: var(--green);
}
.badge--gift {
  background: var(--caviar);
}
.card__collection {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0.2rem 0 0.6rem;
  color: var(--ink);
}
.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

/* Botón "añadir" / stepper de cantidad */
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.add-btn:hover {
  background: var(--caviar-deep);
}
.add-btn:disabled,
.qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.add-btn:active {
  transform: scale(0.96);
}
.qty {
  display: inline-flex;
  align-items: center;
  background: var(--cream-deep);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  overflow: hidden;
}
.qty__btn {
  width: 32px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}
.qty__btn:hover {
  background: var(--caviar-wash);
  color: var(--caviar-deep);
}
.qty__val {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

/* PANEL DE CARRITO */
.cart {
  position: sticky;
  /* Se ancla justo debajo de la cabecera fija de la web (~126px) en lugar de
     centrarse en pantalla. Así ya no sobresale por encima de su columna ni
     invade el hero, y sigue sin quedar oculto tras el topbar fijo.
     En px a propósito: la raíz del sitio usa font-size 62.5% (1rem = 10px),
     así que rem daría un offset engañoso frente a una cabecera fija en px. */
  top: 150px;
  /* Acota el panel a la pantalla: la cabecera, el progreso, los totales y el
     botón quedan siempre visibles; solo la lista de productos hace scroll. */
  max-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
/* Secciones fijas del panel (no se encogen; la lista es la que scrollea). */
.cart__head,
.progress,
.cart__foot {
  flex-shrink: 0;
}
.cart__head {
  padding: 1.2rem 1.3rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1040px) {
  .cart__head {
    padding-right: 60px;
  }
}
.cart__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart__change {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Barra de progreso hacia el regalo */
.progress {
  padding: 0.2rem 1.3rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.progress__msg {
  font-size: 14px;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.progress__msg b {
  color: var(--caviar-deep);
}
.progress__msg.is-unlocked {
  color: var(--green);
  font-weight: 500;
}
.progress__track {
  position: relative;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.progress__goal {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}
.progress__scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Líneas del carrito */
.cart__lines {
  list-style: none;
  padding: 0.6rem 0.7rem;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}
.line:hover {
  background: var(--cream);
}
.line__img {
  width: 46px;
  height: 46px;
  border-radius: 0;
  object-fit: cover;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
}
.line__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.line__meta {
  font-size: 12px;
  color: var(--muted);
}
.line__remove {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.line__remove:hover {
  color: var(--caviar-deep);
}
.cart__empty {
  padding: 2.2rem 1.3rem;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.cart__empty svg {
  margin: 0 auto 0.7rem;
  opacity: 0.5;
}

/* Totales y CTA */
.cart__foot {
  padding: 1rem 1.3rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.totals {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
}
.totals__row--discount {
  color: var(--green);
  font-weight: 500;
}
.totals__row--envio {
  color: var(--green);
  font-weight: 500;
}
/* Aviso de envío gratis bajo las tarjetas de pack */
.packs__envio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.2rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}
.packs__envio-nota {
  margin-top: 0.3rem;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.totals__nota {
  margin-top: -2px;
  font-size: 12px;
  color: var(--muted);
}
.totals__row--grand {
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line-strong);
  margin-top: 0.25rem;
}
.totals__row--grand b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Aviso de mínimo */
.notice {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}
.notice--warn {
  background: #fdf4e8;
  border: 1px solid rgba(201, 161, 91, 0.4);
  color: #8a6a2c;
}
.notice--ok {
  background: var(--green-wash);
  border: 1px solid rgba(107, 142, 90, 0.3);
  color: #46603a;
}
.notice b {
  font-weight: 600;
}

/* Botón principal */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  background: var(--accent);
  color: var(--ink);
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.btn:hover:not(:disabled) {
  background: var(--accent-deep);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn:active:not(:disabled) {
  transform: translateY(0);
}
.btn:disabled {
  background: var(--cream-deep);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--white);
  border-color: var(--ink);
  transform: none;
}
.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover:not(:disabled) {
  background: #000;
  color: #fff;
}
.btn-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}
.btn-row .btn {
  width: auto;
  flex: 1;
}

/* PASOS 2 y 3 (newsletter / checkout) */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.newsletter {
  position: relative;
  overflow: hidden;
  background: var(--white);
}
/* Resalte breve cuando se insiste con el newsletter al intentar pagar. */
.newsletter.is-flash {
  animation: nlflash 1.8s var(--ease);
}
@keyframes nlflash {
  0%,
  30% {
    border-color: var(--accent);
    background: var(--accent-wash);
  }
  100% {
    border-color: var(--line);
    background: var(--white);
  }
}
.newsletter__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 1rem;
}
.newsletter__badge b {
  color: var(--gold-soft);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.field input[type='text'],
.field input[type='email'] {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  /* Sin esto el input hereda la tipografía del body del sitio (25px) y se ve
     enorme. Lo fijamos a un tamaño de formulario cómodo. */
  font-size: 15px;
  background: var(--cream);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--caviar);
  background: var(--white);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 560px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  /* Fichas de producto de dos en dos en el móvil */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .card {
    padding: 0.7rem 0.7rem 0.8rem;
  }
  .card__imgwrap {
    margin-bottom: 0.6rem;
  }
  .card__collection {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .card__name {
    font-size: 14px;
  }
}
.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.check:hover {
  border-color: var(--gold);
}
.check input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--caviar);
  flex: none;
}
.check__txt {
  font-size: 14px;
}
.check__txt b {
  color: var(--caviar-deep);
}
.applied {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
  font-weight: 500;
  font-size: 14px;
  margin-top: 0.8rem;
}

/* Resumen final */
.summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.6rem;
}
@media (max-width: 760px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
.summary-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.summary-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

/* BOTTOM BAR / DRAWER MÓVIL */
.mobile-bar {
  display: none;
}
@media (max-width: 1040px) {
  .cart-col {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(26, 26, 26, 0.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    display: flex;
    align-items: flex-end;
  }
  .cart-col.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .cart {
    position: relative;
    top: 0;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease);
  }
  .cart-col.is-open .cart {
    transform: translateY(0);
  }
  .cart__lines {
    max-height: none;
    flex: 1;
  }
  .cart__close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream-deep);
    display: grid;
    place-items: center;
  }

  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(60, 45, 30, 0.4);
  }
  .mobile-bar__info {
    flex: 1;
    min-width: 0;
  }
  .mobile-bar__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 0.3rem;
  }
  .mobile-bar__top b {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ink);
  }
  .mobile-bar__track {
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--cream-deep);
    overflow: hidden;
  }
  .mobile-bar__fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.5s var(--ease);
  }
  .mobile-bar__btn {
    flex: none;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }
  .shell {
    padding-bottom: 6.5rem;
  }
}
@media (min-width: 1041px) {
  .cart__close {
    display: none;
  }
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 2.4rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.site-footer b {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ESTADOS / MISC */
.loading {
  min-height: 60vh;
  display: grid;
  place-items: center;
  gap: 1rem;
  color: var(--muted);
}

/* Paso 1 sin productos (mensaje al cliente) */
.coming-soon {
  max-width: 560px;
  margin: clamp(2rem, 7vw, 5.5rem) auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.coming-soon__mark {
  display: inline-flex;
  margin-bottom: 1.2rem;
}
.coming-soon__title {
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 700;
  margin: 0 0 0.7rem;
}
.coming-soon__text {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
  max-width: 44ch;
  margin: 0 auto;
}

/* Mensaje de error al preparar el pago (paso 3) */
.pay-msg {
  margin-top: 0.6rem;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: #8a6a2c;
}
.pay-msg:empty {
  display: none;
}
.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--cream-deep);
  border-top-color: var(--caviar);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.reveal {
  animation: rise 0.6s var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pop {
  animation: rise 0.4s var(--ease) both;
}

/* Carrusel de opiniones del pie de Elementor (plantilla 339, contenedor 5a9f332):
   en esta página se oculta porque las opiniones ya salen en el configurador.
   Si se rehace el pie en Elementor y cambia el id, actualizarlo aquí. */
body.page-template-page-packs .elementor-location-footer .elementor-element-5a9f332 {
  display: none !important;
}

/* LANDING PARA CAMPAÑAS — prueba social y garantías del hero */
.hero__prueba {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.hero__prueba b {
  color: var(--ink);
}
.hero--bg .hero__prueba,
.hero--bg .hero__prueba b {
  color: #fff;
}
.hero__garantias {
  list-style: none;
  padding: 0;
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero__garantias li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__garantias svg {
  color: var(--accent-text);
}
.hero--bg .hero__garantias,
.hero--bg .hero__garantias svg {
  color: #fff;
}

/* CÓMO FUNCIONA */
.pasos {
  margin-bottom: clamp(2.8rem, 6vw, 4.5rem);
}
.pasos__lista {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.paso {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 1.4rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.paso svg {
  color: var(--accent-text);
  margin-bottom: 0.4rem;
}
.paso__num {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent-wash);
  color: var(--accent-text);
}
.paso__titulo {
  font-size: 17px;
  font-weight: 700;
}
.paso__texto {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .pasos__lista {
    grid-template-columns: minmax(0, 1fr);
  }
  .paso {
    padding: 1.1rem 1.2rem;
  }
}

/* OPINIONES — autor, producto, destacada, borrador y nota legal */
.opinion__autor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.opinion__autor > div {
  display: grid;
  line-height: 1.3;
}
.opinion__avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-deep);
}
.opinion__avatar--inicial {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  background: var(--accent-wash);
  color: var(--accent-text);
}
.opinion__ubicacion {
  font-size: 13px;
  color: var(--muted);
}
.opinion__producto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.opinion__producto:hover {
  border-color: var(--accent);
}
.opinion__producto img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.opinion__producto span {
  display: grid;
  line-height: 1.25;
}
.opinion__producto small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.opinion--destacada {
  padding: 28px;
  margin-bottom: 8px;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.opinion--destacada:first-child {
  padding-top: 28px;
}
.opinion--borrador {
  outline: 2px dashed #d63638;
  outline-offset: 6px;
}
.opinion__borrador {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: #d63638;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.opiniones__nota {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* PREGUNTAS FRECUENTES */
.faq {
  margin-top: clamp(56px, 8vw, 96px);
  max-width: 820px;
}
.faq__lista {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary svg {
  flex: none;
  color: var(--accent-text);
  transition: transform 0.2s var(--ease);
}
.faq__item[open] summary svg {
  transform: rotate(45deg);
}
.faq__item p {
  padding: 0 0 1.2rem;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* LLAMADA FINAL */
.cierre {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(2.4rem, 6vw, 4rem) 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}
.cierre__titulo {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  text-wrap: balance;
}
.cierre__texto {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 40ch;
}
.btn.cierre__cta {
  width: auto;
  margin-top: 0.8rem;
  padding-inline: 2rem;
}

/* BOTÓN FIJO EN MÓVIL (solo mientras se elige pack) */
.cta-movil {
  display: none;
}
@media (max-width: 1040px) {
  .cta-movil {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.3s var(--ease);
  }
  .cta-movil.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
