/* ==========================================================================
   styles-1.2.7.css
   HOJA DE ESTILOS UNIFICADA
   --------------------------------------------------------------------------
   Consolidación de los CSS compartidos para evitar reglas duplicadas y
   conflictos de cascada. Se mantiene la apariencia y funcionalidad existente.
   ========================================================================== */

/* ==========================================================================
   1. FUENTE VARIABLE + VARIABLES GLOBALES + RESET
   ========================================================================== */

@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src:
    url('../fonts/GoogleSansFlex.woff2') format('woff2 supports variations'),
    url('../fonts/GoogleSansFlex.woff2') format('woff2');
}

:root {
  --primary-color: #0d9488;
  --dark-color: #0f172a;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-muted: #64748b;
  --border-radius: 16px;

  /* Aliases de compatibilidad */
  --primary: var(--primary-color);
  --dark: var(--dark-color);

  --font-family:
    'Google Sans Flex',
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

html,
body {
  font-family: var(--font-family);
  font-weight: 400;
  font-optical-sizing: auto;
  background-color: var(--light-bg);
  color: var(--dark-color);
  line-height: 1.5;
  padding-bottom: 30px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

b,
strong {
  font-weight: 600;
}

/* ==========================================================================
   2. UTILIDADES GENERALES
   ========================================================================== */

.hidden {
  display: none !important;
}

.animated-emoji {
  width: 22px;
  height: 22px;
  vertical-align: sub;
  display: inline-block;
  object-fit: contain;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3. LOGO
   ========================================================================== */

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  user-select: none;
}

header.navbar .brand-logo,
footer.footer .brand-logo,
.brand-name,
.brand-ext {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

header.navbar .brand-name,
footer.footer .brand-name,
.brand-name {
  color: #0f172a !important;
  font-size: 1.2rem !important;
}

header.navbar .brand-ext,
footer.footer .brand-ext,
.brand-ext {
  color: #0d9488 !important;
  font-weight: 800 !important;
}

.star-logo-img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  display: inline-block !important;
  transform-origin: center;
  animation: starBounceGlow 3s ease-in-out infinite;
}

@keyframes starBounceGlow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.4));
  }

  25% {
    transform: scale(1.15) rotate(12deg);
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.8));
  }

  50% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.4));
  }

  75% {
    transform: scale(1.15) rotate(-12deg);
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.8));
  }
}

/* ==========================================================================
   4. NAVBAR + CARRITO + BANNER PWA
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 0.8rem 1.2rem;
}

.nav-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-btn {
  background: var(--light-bg);
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-badge {
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
}

.pwa-banner {
  background: var(--dark-color);
  color: #ffffff;
  padding: 0.8rem 1.2rem;
}

.pwa-banner.hidden {
  display: none !important;
}

.pwa-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-install {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   5. BUSCADOR
   ========================================================================== */

.search-container {
  position: sticky;
  top: 75px;
  z-index: 990;
  width: 100%;
  max-width: 600px;
  margin: 0.5rem auto 1.2rem;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  background: transparent;
  border: none;
  box-shadow: none;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 0.7rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.12);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.search-input-wrapper:focus-within {
  border-color: #0f766e;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.22);
}

.search-icon {
  font-size: 1rem;
  margin-right: 0.6rem;
  color: #64748b;
  flex-shrink: 0;
  z-index: 3;
}

.search-animated-icon {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: searchIconPulse 2.5s ease-in-out infinite;
  z-index: 3;
}

#product-search-input {
  width: 100%;
  height: 100%;
  border: none !important;
  outline: none !important;
  font-size: 0.92rem;
  color: #111827;
  background: transparent !important;
  position: relative;
  z-index: 2;
  padding: 0;
  margin: 0;
}

.search-input-wrapper input {
  padding-left: 46px !important;
}

.clear-search-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #64748b;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  z-index: 3;
  flex-shrink: 0;
}

.clear-search-btn:hover {
  color: #ef4444;
}

.animated-placeholder-wrapper {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 0;
  bottom: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  display: block;
}

.animated-placeholder-track {
  display: block;
  width: 100%;
  animation: slidePlaceholder 10s infinite linear;
}

.animated-placeholder-track span {
  display: flex !important;
  align-items: center;
  height: 42px !important;
  line-height: 42px !important;
  color: #94a3b8;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
}

.search-input-wrapper:focus-within .animated-placeholder-wrapper,
.search-input-wrapper.active .animated-placeholder-wrapper,
.search-input-wrapper.has-value .animated-placeholder-wrapper {
  display: none !important;
}

@keyframes searchIconPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-50%) scale(1.15) rotate(-10deg);
  }
}

@keyframes slidePlaceholder {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(var(--placeholder-distance));
  }
}

/* ==========================================================================
   6. CATÁLOGO / HERO / GRID
   ========================================================================== */

.main-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.2rem;
}

.hero-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    #115e59 100%
  );
  color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.6rem 0 0.4rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-grid,
#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* ==========================================================================
   7. IMÁGENES / VIDEOS DE PRODUCTO
   ========================================================================== */

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 0.8rem;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background-color: #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.product-image-wrapper video,
.product-image-wrapper img,
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   8. VISTA RÁPIDA
   ========================================================================== */

.btn-quick-view-circular {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(13, 148, 136, 0.85);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  z-index: 5;
}

.btn-quick-view-circular:hover {
  transform: scale(1.1);
  background-color: rgba(13, 148, 136, 1);
}

.quick-view-eye-icon {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
}

.expand-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease;
}

.product-image-wrapper:hover .expand-badge {
  background: var(--primary-color);
}

/* ==========================================================================
   9. DETALLES DE PRODUCTO
   ========================================================================== */

.product-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 800;
}

.product-badge {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.4rem 0;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* ==========================================================================
   10. PRECIOS / AHORRO
   ========================================================================== */

.price-container {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.4rem;
}

.prices-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-color);
}

.original-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

.savings-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #d97706;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  width: fit-content;
}

/* ==========================================================================
   11. BOTONES DE CARRITO / CHECKOUT
   ========================================================================== */

.btn-add-cart {
  width: 100%;
  background: var(--dark-color);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.btn-add-cart:hover {
  background: var(--primary-color);
}

.btn-add-cart:active {
  transform: scale(0.98);
}

.shipping-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.shipping-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.shipping-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.shipping-form input::placeholder {
  color: #94a3b8;
}

.btn-checkout {
  width: 100%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition:
    background-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.btn-checkout:hover {
  background-color: #0b7a70;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.btn-checkout:active {
  transform: scale(0.98);
}

.btn-checkout:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   12. CARRITO — BOTTOM SHEET
   --------------------------------------------------------------------------
   IMPORTANTE: .modal-content se conserva para el carrito.
   El modal de producto usa .product-detail-modal y queda sobreescrito abajo.
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 1.5rem;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ef4444;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: var(--light-bg);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.6rem;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: var(--light-bg);
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.qty-btn:active {
  background: #e2e8f0;
  transform: scale(0.95);
}

.qty-number {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-color);
  margin: 1.2rem 0;
  border-top: 2px dashed #e2e8f0;
  padding-top: 1rem;
}

/* ==========================================================
   MODAL VIDEO VERTICAL 9:16 — TIPO TIKTOK
   ========================================================== */

#image-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 0;

  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-sizing: border-box;
}

#image-modal.hidden {
  display: none !important;
}

#image-modal.active {
  display: flex !important;
}

/* ==========================================================
   VISOR PRINCIPAL
   ========================================================== */

#image-modal .product-detail-modal {
  position: relative;

  width: 420px;
  height: min(746px, calc(100vh - 20px));

  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);

  margin: 0;
  padding: 0;

  background: #000;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);

  box-sizing: border-box;
}

/* ==========================================================
   VIDEO — LLENA EL VISOR
   ========================================================== */

#image-modal .modal-video-wrapper {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  max-width: none;

  margin: 0;

  background: #000;

  overflow: hidden;
}

#image-modal .modal-vertical-media,
#image-modal video {
  position: absolute;
  inset: 0;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  display: block;

  object-fit: cover !important;

  background: #000;
}

/* ==========================================================
   INFORMACIÓN SOBRE EL VIDEO
   ========================================================== */

#image-modal .modal-product-info {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 20;

  padding: 90px 20px 20px;

  color: #fff;

  box-sizing: border-box;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.90) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0.20) 75%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* ==========================================================
   TÍTULO
   ========================================================== */

#image-modal .modal-product-info h3 {
  margin: 8px 0 !important;

  color: #fff !important;

  font-size: 1.25rem;

  line-height: 1.25;
}

/* ==========================================================
   OCULTAR INFORMACIÓN EXTRA
   ========================================================== */

#image-modal .modal-product-info p {
  display: none !important;
}

#image-modal .modal-product-info .product-badge {
  display: none !important;
}

/* ==========================================================
   PRECIO + CARRITO
   ========================================================== */

#image-modal .modal-product-info > div:last-child {
  display: flex !important;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  width: 100%;

  margin-top: 12px !important;
}

#image-modal .modal-product-info > div:last-child span {
  color: #fff !important;

  font-size: 1.25rem !important;

  font-weight: 700;

  white-space: nowrap;
}

#image-modal .btn-add-cart {
  flex: 1;

  min-height: 46px;

  padding: 0.65rem 1rem;

  border: none;
  border-radius: 8px;

  background: #0d9488 !important;

  color: #fff !important;

  font-weight: 700;

  cursor: pointer;
}

/* ==========================================================
   BOTÓN X — ENCIMA DEL VIDEO
   ========================================================== */

#image-modal .close-btn {
  position: absolute;

  top: 18px;
  right: 18px;

  z-index: 100;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 2px solid rgba(255, 255, 255, 0.9);

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.55);

  color: #fff;

  font-size: 1.7rem;
  line-height: 1;

  display: flex;

  align-items: center;
  justify-content: center;

  cursor: pointer;
}

/* ==========================================================
   PC
   ========================================================== */

@media (min-width: 601px) {

  #image-modal .product-detail-modal {
    width: 420px;
    height: min(746px, calc(100vh - 20px));

    max-width: 420px;
    max-height: calc(100vh - 20px);

    border-radius: 18px;
  }

}

/* ==========================================================
   MÓVIL — PANTALLA COMPLETA TIPO TIKTOK
   ========================================================== */

@media (max-width: 600px) {

  #image-modal {
    padding: 0;
  }

  #image-modal .product-detail-modal {
    width: 100vw;
    height: 100dvh;

    max-width: none;
    max-height: none;

    border-radius: 0;
  }

  #image-modal .close-btn {
    top: 18px;
    right: 18px;
  }

  #image-modal .modal-product-info {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 24px;
  }

}

/* Modal multimedia alternativo, si existe en el HTML */
.modal-media-wrapper {
  position: relative;
  background-color: #ffffff;
  padding: 8px;
  border-radius: 16px;
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#modal-media-content video,
#modal-media-content img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  background-color: #ffffff;
}

.modal-close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #ef4444;
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10000;
}

/* ==========================================================================
   14. SLIDER DE BADGES
   ========================================================================== */

.product-slider-badge-container {
  width: 100%;
  max-width: 100%;
  height: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
  position: relative;
  box-sizing: border-box;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.product-slider-badge-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  will-change: transform;
  animation: cardBadgeSlideLeft 12s linear infinite;
}

.product-card:hover .product-slider-badge-track {
  animation-play-state: paused;
}

.badge-item {
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  margin-right: 8px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
}

.badge-purple {
  background: linear-gradient(90deg, #6f3d91, #520e6f);
}

.badge-teal {
  background: linear-gradient(90deg, #0d9488, #0f766e);
}

.badge-green {
  background: linear-gradient(90deg, #16a34a, #15803d);
}

.badge-gold {
  background: linear-gradient(90deg, #d97706, #b45309);
}

.badge-item img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

@keyframes cardBadgeSlideLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   15. BOTÓN VOLVER ARRIBA
   ========================================================================== */

.btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  transform: scale(1.1);
  background-color: #115e59;
}

.btn-back-to-top .arrow-icon {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  transition: transform 0.2s ease;
}

.btn-back-to-top:hover .arrow-icon {
  transform: translateY(-2px);
}

/* ==========================================================
   SELECTOR DE CANTIDAD EN PRODUCTOS
   ========================================================== */

.product-cart-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.product-cart-controls .qty-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #0d9488;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.product-cart-controls .qty-btn:hover {
  transform: scale(1.08);
}

.product-cart-controls .qty-btn:active {
  transform: scale(0.94);
}

.product-cart-controls .qty-value {
  min-width: 36px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================
   SELECTORES DE CANTIDAD
   ========================================================== */

.product-cart-controls,
.modal-cart-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.product-cart-controls .qty-btn,
.modal-cart-controls .qty-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.product-cart-controls .qty-value,
.modal-cart-controls .qty-value {
  min-width: 36px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-cart-controls {
  justify-content: flex-end;
  width: auto;
  gap: 10px;
}

.modal-cart-controls .qty-value {
  color: #fff;
}

.modal-cart-controls .qty-btn {
  width: 40px;
  height: 40px;
}

.product-cart-controls .qty-btn:active,
.modal-cart-controls .qty-btn:active {
  transform: scale(0.92);
}

/* ==========================================
   BARRA INFORMATIVA - ATENCIÓN Y DESPACHO
   ========================================== */

.info-slider {
display: block !important;
position: relative !important;
width: 100% !important;
height: 50px !important;
margin: 0 0 14px 0 !important;
overflow: hidden !important;
background: #0d9488 !important;
border-radius: 10px !important;
box-sizing: border-box !important;
}

.info-slider-track {
position: relative !important;
width: 100% !important;
height: 100% !important;
}

.info-slide {
position: absolute !important;
inset: 0 !important;
width: 100% !important;
height: 100% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
gap: 7px;
padding: 6px 12px;
box-sizing: border-box;
color: #ffffff !important;
background: #0d9488 !important;
text-align: center;
white-space: nowrap;
font-size: 0.88rem;
line-height: 1;
visibility: visible !important;
z-index: 10;
}

.info-slide:nth-child(1) {
animation: infoSlideFirst 8s ease-in-out infinite;
}

.info-slide:nth-child(2) {
animation: infoSlideSecond 8s ease-in-out infinite;
}

.info-slide strong {
font-weight: 800;
}

.info-icon {
font-size: 1.15rem;
flex-shrink: 0;
}

/* Primer mensaje */
@keyframes infoSlideFirst {
0%,
42% {
opacity: 1;
transform: translateX(0);
}

50%,
92% {
opacity: 0;
transform: translateX(-100%);
}

100% {
opacity: 1;
transform: translateX(0);
}
}

/* Segundo mensaje */
@keyframes infoSlideSecond {
0%,
42% {
opacity: 0;
transform: translateX(100%);
}

50%,
92% {
opacity: 1;
transform: translateX(0);
}

100% {
opacity: 0;
transform: translateX(100%);
}
}

/* MÓVIL */
@media (max-width: 600px) {
.info-slider {
height: 44px !important;
margin-bottom: 14px !important;
}

.info-slide {
padding: 5px 7px;
gap: 5px;
font-size: 0.68rem;
}

.info-icon {
font-size: 1rem;
}
}


/* ==========================================================================
   FIN styles-1.2.8.css
   ========================================================================== */