/* Merchandising — página tienda */
body.merch-page {
  background: #f4f9fb;
  color: #1e293b;
}

/* Nav sólida (reutiliza .nav de nova.css) */
body.merch-page .nav {
  background: #07131D;
  border-bottom: 1px solid rgba(69, 216, 247, 0.18);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
}

body.merch-page .nav__links a {
  color: rgba(255, 255, 255, 0.82);
}

body.merch-page .nav__links a:hover {
  color: #45D8F7;
}

body.merch-page .nav__word .aqua { color: var(--teal); }
body.merch-page .nav__word .lume { color: var(--gold); }
body.merch-page .nav__word small { color: var(--slate); }

/* Hero */
.merch-hero {
  position: relative;
  margin-top: var(--nav);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #0F2233;
}

.merch-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.merch-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.merch-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 19, 29, 0.55) 0%, rgba(7, 19, 29, 0.72) 55%, rgba(15, 34, 51, 0.88) 100%);
}

.merch-hero .shell {
  position: relative;
  z-index: 2;
}

.merch-hero__tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #45D8F7;
  background: rgba(69, 216, 247, 0.14);
  border: 1px solid rgba(69, 216, 247, 0.28);
}

.merch-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: .75rem;
}

.merch-hero p {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.6;
}

/* Sección productos */
.merch-body {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5rem);
}

.merch-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.merch-intro__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #475569;
}

.merch-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.merch-perks li {
  padding: .42rem .9rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  color: #0e7490;
  background: rgba(69, 216, 247, 0.12);
  border: 1px solid rgba(69, 216, 247, 0.22);
}

/* Categorías */
.merch-catalog {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.merch-category__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid rgba(14, 116, 144, 0.12);
}

.merch-category__title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  color: #0c4a6e;
  margin: 0;
}

.merch-category__price {
  font-size: .9rem;
  font-weight: 700;
  color: #d97706;
  letter-spacing: .02em;
}

.merch-card__badge--cat {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

/* Grid 4 categorías — todas visibles */
.merch-cat-grid-wrap {
  margin-top: .5rem;
}

.merch-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: min(1100px, 100%);
  margin-inline: auto;
}

@media (min-width: 540px) {
  .merch-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 960px) {
  .merch-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.merch-cat-grid .merch-cat-slide {
  flex: none;
  min-width: 0;
  max-width: none;
  padding: 0;
  height: 100%;
}

.merch-grid--products {
  margin-top: .5rem;
}

/* Catálogo de productos — lista vertical (sin slider) */
.merch-product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  overflow: visible;
}

@media (min-width: 640px) {
  .merch-product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .merch-product-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.merch-product-list .merch-card {
  width: 100%;
  max-width: none;
}

.merch-product-list .merch-card--featured {
  grid-column: auto;
  display: flex;
  flex-direction: column;
}

.merch-product-list .merch-card--featured .merch-card__img {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.merch-category--single .merch-cat-slider,
.merch-category--single .merch-product-slider {
  display: block !important;
  max-width: 100%;
}

/* Anula slider en catálogos — lista vertical aunque el JS viejo genere carousel */
.merch-category--single .merch-cat-slider__viewport {
  overflow: visible !important;
}

.merch-category--single .merch-cat-slider__track {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  transform: none !important;
  margin: 0 !important;
  flex-wrap: unset !important;
  width: 100% !important;
}

@media (min-width: 640px) {
  .merch-category--single .merch-cat-slider__track {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .merch-category--single .merch-cat-slider__track {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.merch-category--single .merch-cat-slide {
  flex: none !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
}

.merch-category--single .merch-cat-slider__controls {
  display: none !important;
}

.merch-category--single .merch-cat-slide > .merch-card {
  width: 100%;
  height: 100%;
}

/* Slider categorías (legacy — ya no se usa en páginas de catálogo) */
.merch-cat-slider-wrap {
  margin-top: .5rem;
}

.merch-cat-slider__shop-link {
  text-align: center;
  margin-top: 1.25rem;
}

.merch-cat-section {
  margin-bottom: 2rem;
}

.merch-pick-hint {
  text-align: center;
  color: #64748b;
  font-size: .95rem;
  margin-bottom: 1.15rem;
}

.merch-cat-slider {
  position: relative;
  width: 100%;
  max-width: min(960px, 100%);
  margin-inline: auto;
}

.merch-cat-slider__viewport {
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.merch-cat-slider__track {
  display: flex;
  align-items: stretch;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* Siempre 2 catálogos visibles en tablet/desktop */
.merch-cat-slider[data-visible="2"] .merch-cat-slide {
  flex: 0 0 50%;
  min-width: 50%;
  max-width: 50%;
  box-sizing: border-box;
  padding: 0 .5rem;
}

.merch-cat-slider[data-visible="2"] .merch-cat-slider__track {
  margin: 0 -.5rem;
}

.merch-cat-slide__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, 0.14);
  box-shadow: 0 10px 32px rgba(14, 116, 144, 0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.merch-cat-slide__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(14, 116, 144, 0.18);
}

@media (max-width: 639px) {
  .merch-cat-slider[data-visible="2"] .merch-cat-slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

/* Product slider dentro de categoría */
.merch-product-slider .merch-card {
  height: 100%;
}

.merch-product-slider .merch-cat-slide {
  display: flex;
  align-items: stretch;
}

.merch-product-slider .merch-cat-slide > .merch-card {
  width: 100%;
}

.merch-cat-slide__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8f4f8;
}

.merch-cat-slide__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.merch-cat-slide__link:hover .merch-cat-slide__img img {
  transform: scale(1.04);
}

.merch-cat-slide__body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.merch-cat-slider[data-visible="2"] .merch-cat-slide__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merch-cat-slider[data-visible="2"] .merch-cat-slide__body h3 {
  font-size: 1.05rem;
}

.merch-cat-slide__tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: .5rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0e7490;
  background: rgba(69, 216, 247, 0.14);
}

.merch-cat-slide__body h3 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: #0c4a6e;
  margin-bottom: .35rem;
}

.merch-cat-slide__sample {
  font-size: .88rem;
  font-weight: 600;
  color: #0891b2;
  margin-bottom: .35rem;
}

.merch-cat-slide__desc {
  font-size: .86rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: .75rem;
}

.merch-cat-slide__price {
  font-weight: 800;
  font-size: 1.15rem;
  color: #d97706;
  margin-bottom: .65rem;
}

.merch-cat-slide__cta {
  font-size: .82rem;
  font-weight: 700;
  color: #0e7490;
}

.merch-cat-slide__link:hover .merch-cat-slide__cta {
  color: #0891b2;
}

.merch-cat-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}

.merch-cat-slider__arrow {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(14, 116, 144, 0.2);
  background: #fff;
  color: #0c4a6e;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.merch-cat-slider__arrow:hover {
  background: #45D8F7;
  color: #07131D;
  border-color: transparent;
}

.merch-cat-slider__dots {
  display: flex;
  gap: .45rem;
}

.merch-cat-slider__dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(14, 116, 144, 0.25);
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.merch-cat-slider__dot.is-active {
  background: #0891b2;
  transform: scale(1.25);
}

.merch-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .65rem;
  margin-bottom: 1.25rem;
  font-size: .88rem;
  color: #64748b;
}

.merch-breadcrumb a {
  color: #0891b2;
  text-decoration: none;
  font-weight: 600;
}

.merch-breadcrumb a:hover {
  text-decoration: underline;
}

body.has-premium-hero .merch-cat-slider__viewport {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.has-premium-hero .merch-cat-slide__link {
  color: #fff;
  background: rgba(7, 19, 29, 0.78);
  border: 1px solid rgba(69, 216, 247, 0.24);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

body.has-premium-hero .merch-cat-grid .merch-cat-slide__link {
  transition: transform 0.45s var(--motion-ease), box-shadow 0.45s ease, border-color 0.35s ease;
}

body.has-premium-hero .merch-cat-grid .merch-cat-slide__link:hover {
  transform: translateY(-8px);
  border-color: rgba(69, 216, 247, 0.45);
  box-shadow: 0 20px 50px rgba(8, 145, 178, 0.22);
}

body.has-premium-hero .merch-cat-slide__body h3 {
  color: #e0f7fa;
}

body.has-premium-hero .merch-cat-slide__desc,
body.has-premium-hero .merch-pick-hint {
  color: rgba(255, 255, 255, 0.72);
}

body.has-premium-hero .merch-cat-slide__sample {
  color: #45D8F7;
}

body.has-premium-hero .merch-cat-slider__arrow {
  background: rgba(7, 19, 29, 0.85);
  border-color: rgba(69, 216, 247, 0.3);
  color: #e0f7fa;
}

/* Grid */
.merch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }

  .merch-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }

  .merch-card--featured .merch-card__img {
    aspect-ratio: auto;
    min-height: 220px;
  }
}

@media (max-width: 599px) {
  .merch-card--featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .merch-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .merch-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }

  .merch-card--featured .merch-card__img {
    aspect-ratio: auto;
    min-height: 300px;
  }
}

/* Tarjetas */
.merch-card {
  background: #fff;
  border: 1px solid rgba(14, 116, 144, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(14, 116, 144, 0.08);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}

.merch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14, 116, 144, 0.14);
}

.merch-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8f4f8;
}

.merch-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.merch-card:hover .merch-card__img img {
  transform: scale(1.03);
}

.merch-card__body {
  padding: 1.15rem 1.3rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.merch-card__badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: .45rem;
  padding: .22rem .55rem;
  border-radius: 6px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0e7490;
  background: rgba(69, 216, 247, 0.15);
}

.merch-card__body h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: .35rem;
  line-height: 1.25;
}

.merch-card__desc {
  font-size: .86rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.merch-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.merch-card__price {
  font-weight: 800;
  font-size: 1.1rem;
  color: #d97706;
}

.merch-card__pay-note {
  margin: .35rem 0 0;
  font-size: .72rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.35;
}

.merch-intro__pay-note {
  margin: .75rem 0 0;
  font-size: .88rem;
  color: rgba(255, 255, 255, .72);
  max-width: 42rem;
}

/* WhatsApp flotante */
body.merch-page .whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

/* CTA */
.merch-cta {
  margin-top: 2.75rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #e0f7fa 0%, #f0f9ff 100%);
  border: 1px solid rgba(69, 216, 247, 0.28);
  box-shadow: 0 8px 28px rgba(14, 116, 144, 0.08);
}

.merch-cta__title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: .45rem;
}

.merch-cta__hint {
  margin-bottom: 1.15rem;
  color: #64748b;
  font-size: .92rem;
}

/* Footer */
body.merch-page .merch-footer {
  background: #07131D;
  color: rgba(255, 255, 255, 0.55);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .85rem;
}

body.merch-page .merch-footer a {
  color: #45D8F7;
  margin-left: 1rem;
}

.cart-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: .75rem 1.25rem;
  background: #0c4a6e;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(12, 74, 110, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s;
  z-index: 9000;
  white-space: normal;
  line-height: 1.35;
  max-width: min(92vw, 420px);
  text-align: center;
}

.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.merch-page .cart-nav-btn__count {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  margin-left: 0.25rem;
}
