/* ===== Banner Marquee (delgado, elegante) ===== */
.notice-marquee {
  --marquee-h: 36px;
  /* alto del banner */
  --marquee-speed: 22s;
  /* velocidad del scroll (menor = más rápido) */
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  width: 100%;
  height: var(--marquee-h);
  display: block;
}

.nm-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: var(--marquee-h);
}

.nm-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: 48px;
  /* separación entre grupos */
  will-change: transform;
  animation: nm-scroll var(--marquee-speed) linear infinite;
}

.nm-group {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  /* separación entre mensajes */
  white-space: nowrap;
  padding-left: 4px;
  /* micro-aire para el primer ítem */
}

.nm-item {
  font-weight: 700;
  letter-spacing: .2px;
  font-size: clamp(.85rem, .35vw + .8rem, 1rem);
}

.nm-sep {
  opacity: .7;
  font-weight: 800;
}

/* Pausa elegante al pasar el mouse (solo escritorio con cursor) */
@media (hover:hover) {
  .notice-marquee:hover .nm-track {
    animation-play-state: paused;
  }
}

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .nm-track {
    animation: none;
  }

  .nm-viewport {
    overflow: visible;
  }
}

/* Animación */
@keyframes nm-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

  /* 2 grupos => -50% da bucle perfecto */
}

/* ===== Banner Marquee (delgado, elegante) ===== */




/* ====== Helpers de página a pantalla completa en móvil ====== */
.edge-to-edge {
  margin: 0;
  padding: 0;
}

.pg-media {
  margin: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.pg-9x16 {
  aspect-ratio: 9 / 16;
}

/* formato vertical */
.pg-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  transform: translateZ(0);
}

/* permitir banners más altos sin romper layout (móvil) */
.pg-tall-ok {
  aspect-ratio: auto;
}

/* Sugerencia: si necesitas altura concreta para un banner, usa esta variable: */
/* .pg-tall-ok{ --h: 100svh; height: var(--h); } */

/* ====== Botones (coherentes con la paleta del sitio) ====== */
.pg-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  /* sin separación para móvil, full-bleed */
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 12px;
  border: none;
  border-radius: 0;
  /* sin bordes redondeados en móvil, full-bleed */
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
  box-shadow: none;
}

.pg-btn:active {
  opacity: .9;
  transform: translateY(1px);
}

.wa-btn {
  background: linear-gradient(135deg,
      color-mix(in oklab, #25D366 88%, var(--brand) 12%),
      color-mix(in oklab, #128C7E 88%, var(--brand-2) 12%));
}

.pg-wa-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ====== Escritorio: bloque horizontal elegante ====== */
.pg-desktop-wrap {
  max-width: 1200px;
  margin: 28px auto 70px;
  padding: 0 20px;
  display: none;
  /* oculto en móvil */
}

.pg-desktop {
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr;
  gap: clamp(16px, 2.6vw, 28px);
  align-items: start;
}

.desktop-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pg-panel {
  background: color-mix(in oklab, var(--bg) 85%, white 15%);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: clamp(16px, 2vw, 22px);
}

.pg-title {
  margin: 0 0 6px 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: .2px;
  color: var(--ink);
}

.pg-sub {
  margin: 0 0 10px 0;
  color: var(--muted);
}

.pg-price-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 6px 0 12px;
}

.pg-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.pg-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .85rem;
  background: color-mix(in oklab, var(--brand) 12%, white);
  color: var(--brand);
}

.pg-desc {
  margin: 0 0 14px 0;
  color: var(--ink);
}

.desktop-only .pg-btn {
  width: auto;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
}

.desktop-only {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Ícono del carrito, nítido y alineado en cualquier tamaño */
.pg-cart-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Asegura alineación y separación consistentes en todos los botones */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* un poco más de aire entre ícono y texto */
  line-height: 1;
  /* evita que el ícono “baile” verticalmente */
  color: #fff;
  /* garantiza contraste del ícono (hereda con fill: currentColor) */
}

/* Animación del botón WhatsApp */
@keyframes bounce-wa {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
    /* Salto más fuerte */
  }

  60% {
    transform: translateY(-3px);
    /* Rebote pequeño */
  }
}

/* Botón de WhatsApp con animación */
.pg-btn.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background-color: #25D366;
  /* verde WhatsApp */
  text-decoration: none;
  animation: bounce-wa 1.5s infinite;
  transition: transform 0.1s ease;
}

/* Ícono WhatsApp dentro del botón */
.pg-wa-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Efecto hover en escritorio */
@media (hover:hover) {
  .pg-btn.wa-btn:hover {
    transform: scale(1.05);
  }
}


/* ====== Responsivo ====== */
@media (min-width: 960px) {

  /*Controla el espaciado de frases del banner*/
  .nm-group {
    gap: 40px;
  }

  /* más separación entre frases */
  .nm-track {
    gap: 80px;
  }

  /* más espacio entre los grupos duplicados */
  /* En escritorio: mostramos bloque horizontal y escondemos la versión móvil full-bleed */
  .pg-desktop-wrap {
    display: block;
  }

  .pg-hero,
  .pg-cta-mobile,
  .pg-secondary {
    display: none;
  }

  .desktop-only .pg-btn {
    border-radius: 12px;
  }
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .pg-btn {
    transition: none;
  }
}

/* En móvil: apilar botones (WhatsApp debajo del de Comprar) */
@media (max-width: 700px) {
  body {
    background-color: black;
  }

  /* Ajustes finos en móvil: texto un pelín más compacto */
  .notice-marquee {
    --marquee-h: 34px;
  }

  .nm-group {
    gap: 16px;
  }

  .nm-track {
    gap: 40px;
  }

  /* Ajustes finos en móvil: texto un pelín más compacto final */

  .pg-cta-row {
    grid-template-columns: 1fr;
    /* de lado a lado -> apilados */
    gap: 0;
    /* sin espacios para full-bleed */
  }

  .pg-cta-row {
    grid-template-columns: 1fr;
    /* ya lo estás usando para apilarlos */
  }

  /* (Opcional) Línea divisoria sutil entre botones */
  .pg-cta-row .pg-btn+.pg-btn {
    border-top: 1px solid rgba(0, 0, 0, .06);
  }

  /* Asegurar que el ícono conserve nitidez en móvil */
  .pg-wa-ico {
    width: 22px;
    height: 22px;
  }


  .pg-btn.wa-btn {
    animation: bounce-wa 1.5s infinite;
    transition: transform 0.1s ease;
  }



}

/* ====== Product Info Section Styles ====== */

/* Mobile Product Info Section */
.pg-product-info-mobile {
  background: #ffffff;
  padding: 24px 20px;
  margin: 0;
}

.pg-info-container {
  max-width: 100%;
}

/* Category Label */
.pg-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #888;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

/* Product Title */
.pg-product-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2c2c2c;
  margin: 0 0 14px 0;
  letter-spacing: 0.3px;
}

/* Star Rating */
.pg-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
}

.pg-stars {
  display: flex;
  gap: 3px;
  align-items: center;
}

.pg-star {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  color: #FFC107 !important;
  flex-shrink: 0;
  display: block;
}

.pg-review-count {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Pricing */
.pg-pricing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px 0;
}

.pg-price-original {
  font-size: 1.1rem;
  color: #999;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: 600;
  opacity: 0.8;
}

.pg-price-current {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}

/* Product Description */
.pg-product-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
  background: transparent;
}

/* Hide Quantity Section */
.pg-quantity-section {
  display: none;
}

.pg-quantity-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ink);
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.pg-quantity-controls {
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.pg-qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: color-mix(in oklab, var(--brand) 8%, white);
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pg-qty-btn:hover {
  background: color-mix(in oklab, var(--brand) 15%, white);
}

.pg-qty-btn:active {
  background: color-mix(in oklab, var(--brand) 20%, white);
}

.pg-qty-input {
  width: 60px;
  height: 44px;
  border: none;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  border-right: 2px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  appearance: textfield;
  -moz-appearance: textfield;
}

.pg-qty-input::-webkit-outer-spin-button,
.pg-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pg-qty-input:focus {
  outline: none;
  background: color-mix(in oklab, var(--brand) 3%, white);
}

/* Desktop Adjustments for Product Info */
@media (min-width: 960px) {
  .pg-product-info-mobile {
    display: none;
  }

  .pg-panel .pg-category {
    font-size: 0.7rem;
    margin: 0 0 10px 0;
  }

  .pg-panel .pg-rating {
    margin: 0 0 16px 0;
  }

  .pg-panel .pg-star {
    width: 20px;
    height: 20px;
  }

  .pg-panel .pg-review-count {
    font-size: 0.95rem;
  }

  .pg-panel .pg-price-row {
    flex-wrap: wrap;
    margin: 10px 0 20px;
  }

  .pg-panel .pg-price-original {
    font-size: 1.1rem;
  }

  .pg-panel .pg-quantity-section {
    margin: 0 0 20px 0;
  }

  .pg-panel .pg-quantity-label {
    font-size: 0.8rem;
    margin: 0 0 12px 0;
  }
}

/* Mobile Specific Adjustments */
@media (max-width: 700px) {
  .pg-product-info-mobile {
    background: #ffffff;
    padding: 20px 16px;
  }

  .pg-product-title {
    font-size: 1.4rem;
    color: #2c2c2c;
  }

  .pg-star {
    width: 16px;
    height: 16px;
  }

  .pg-review-count {
    font-size: 0.85rem;
  }

  .pg-price-current {
    font-size: 1.6rem;
  }

  .pg-product-description {
    font-size: 0.9rem;
  }
}

/* ====== End Product Info Section Styles ====== */



/* ====== Modal de Compra ====== */
.buy-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.buy-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.buy-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.buy-modal-overlay.active .buy-modal {
  transform: scale(1);
}

.buy-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 16px 16px 0 0;
}

.buy-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
}

.buy-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: background 0.2s ease;
}

.buy-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.buy-modal-body {
  padding: 24px;
}

.buy-modal-product-info {
  background: color-mix(in oklab, var(--brand) 8%, white);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.buy-modal-product-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.buy-modal-product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0;
}

.buy-form-group {
  margin-bottom: 16px;
}

.buy-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.buy-form-label .required {
  color: #e74c3c;
  margin-left: 2px;
}

.buy-form-input,
.buy-form-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.buy-form-input:focus,
.buy-form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 15%, white);
}

.buy-form-input::placeholder {
  color: #999;
}

.buy-form-notice {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #856404;
}

.buy-form-notice strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.buy-form-submit {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.buy-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.buy-form-submit:active {
  transform: translateY(0);
}

/* Botón de Comprar (nuevo) */
.buy-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.buy-btn:hover {
  filter: brightness(1.1);
}

/* Ajustes para móvil */
@media (max-width: 700px) {
  .buy-modal {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }

  .buy-modal-header {
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
  }

  .buy-modal-title {
    font-size: 1.1rem;
  }

  .buy-modal-body {
    padding: 20px;
  }

  .buy-modal-product-price {
    font-size: 1.3rem;
  }

  .buy-form-input,
  .buy-form-select {
    font-size: 16px;
    /* Evita zoom en iOS */
  }
}