/* ==========================================================================
   CATALOG MAJESTIC V8 - ARQUITECTURA FINAL REFORZADA
   ========================================================================== */

:root {
  --v8-accent: #22c55e;
  --v8-dark: #0f172a;
  --v8-border: rgba(0, 0, 0, 0.06);
}

/* --- GLASS HEADER PRO --- */
.catalog-glass-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.glass-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.glass-logo-box {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.glass-brand-text h1 {
  color: white;
  margin: 0;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.glass-brand-text p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.glass-brand-text p span {
  color: #10b981;
  font-weight: 800;
}

.glass-nav {
  display: flex;
  gap: 32px;
}

.glass-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.glass-nav a:hover {
  color: white;
}

.glass-nav a.active {
  color: #10b981;
}

.glass-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #10b981;
  transition: all 0.3s ease;
}

.glass-nav a:hover::after,
.glass-nav a.active::after {
  width: 100%;
}

.glass-contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.3s ease;
}

.glass-contact-btn:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
  .glass-header-inner {
    padding: 16px 20px;
  }

  .glass-nav {
    display: none;
  }

  .glass-brand-text {
    display: none;
  }
}

.catalog-v3-main {
  padding-top: 0;
  /* El padding desaparece, el header flota encima */
  background: transparent;
  min-height: 100vh;
}

/* CARRUSEL REFORZADO */
.catalog-carousel-wrap {
  width: 100%;
  min-height: 300px;
  background: #020617;
  /* Slate oscuro igual al Hero */
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  /* Espacio para que respire el Glass Header */
}

/* Continuidad del destello esmeralda */
.catalog-carousel-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 138, 78, 0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* --- HERO ULTRA PRO --- */
.v8-hero-pro {
  position: relative;
  padding: 140px 20px 100px;
  /* Margen superior ampliado para no chocar con el header */
  background: #020617;
  color: white;
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.v8-hero-pro-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, rgba(0, 138, 78, 0.4) 0%, transparent 60%);
  z-index: 0;
}

.v8-hero-pro-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v8-hero-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.ugreen-gradient {
  background: linear-gradient(to right, #10b981, #34d399, #10b981);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ugreen-shine 3s linear infinite;
  display: inline-block;
}

@keyframes ugreen-shine {
  to {
    background-position: 200% center;
  }
}

.v8-hero-pro-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -3px;
  margin: 0 0 20px 0;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
  animation: title-float 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes title-float {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v8-hero-pro-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* BUSCADOR V8 PRO */
.v8-search-pro-container {
  width: 100%;
  max-width: 650px;
  position: relative;
  transform: translateY(10px);
}

.v8-search-pro-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 10px 10px 10px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.v8-search-pro-box:focus-within {
  border-color: #10b981;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15), 0 0 0 4px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.v8-search-pro-box .search-icon {
  color: #94a3b8;
  margin-right: 12px;
}

.v8-search-pro-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
}

.v8-search-pro-box input::placeholder {
  color: #64748b;
}

.v8-search-pro-btn {
  background: #008a4e;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v8-search-pro-btn:hover {
  background: #059669;
  transform: scale(1.05);
}

/* TACTICAL HUB V8 (FILTROS) */
.v8-tactical-hub {
  position: sticky;
  top: 0;
  /* AL RAS DEL TOPE */
  z-index: 500;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(25px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.v8-tactical-hub::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  opacity: 0.4;
}

.v8-tactical-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.v8-tactical-scroll {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.v8-tactical-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.v8-tactical-pills {
  display: inline-flex;
  gap: 8px;
  padding: 5px 0;
}

.v8-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 18px;
  border-radius: 100px;
  font: 700 0.75rem 'Outfit', sans-serif;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.v8-pill:hover {
  border-color: #10b981;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(16, 185, 129, 0.2);
}

.v8-pill.active {
  background: #10b981;
  color: #020617;
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.v8-tactical-controls {
  flex-shrink: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 15px;
}

.v8-custom-select {
  position: relative;
  min-width: 220px;
  user-select: none;
}

.v8-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font: 800 0.75rem 'Outfit', sans-serif;
  color: #fff;
  letter-spacing: 0.5px;
}

.v8-select-trigger:hover {
  border-color: #10b981;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.v8-custom-select.open .v8-select-trigger {
  border-color: #10b981;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.v8-select-arrow {
  margin-left: 10px;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.v8-custom-select.open .v8-select-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.v8-select-options {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.v8-custom-select.open .v8-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.v8-option {
  padding: 12px 16px;
  border-radius: 12px;
  font: 700 0.75rem 'Outfit', sans-serif;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.v8-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.v8-option.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.sort-icon-wrap {
  margin-right: 10px;
  display: flex;
  align-items: center;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .v8-tactical-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .v8-tactical-scroll {
    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);
    padding: 0 10px;
  }

  .v8-tactical-controls {
    justify-content: center;
  }
}

/* ETIQUETAS DE MARKETING V8 */
.badge-offer,
.badge-popular {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 100px;
  font: 800 0.7rem 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.badge-offer {
  background: #ef4444;
  color: white;
}

.badge-popular {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  top: 15px;
  left: 15px;
  right: auto;
  animation: floatPopular 3s ease-in-out infinite;
}

@keyframes floatPopular {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* RESULTADOS GRID */
.products-v3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* PRODUCT CARD V8 */
.product-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  padding: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
  will-change: transform;
}

.product-card:hover {
  border-color: #10b981;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.2);
  transform: translate3d(0, -12px, 0) scale(1.02);
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #f8fafc;
  border-radius: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.1) rotate(2deg);
}

/* PAGINACIÓN V8 */
.v8-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 80px auto;
  padding: 15px 25px;
  background: white;
  border: 1px solid var(--v8-border);
  border-radius: 100px;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.page-num,
.page-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--v8-dark);
  font: 800 1rem 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*/* RESULTADOS GRID - DISEÑO BOUTIQUE PREMIUM */
.products-v3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  padding-bottom: 80px;
}

/* MARKETING BADGES ORIGINALES */
.badge-offer, .badge-popular {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 8px;
  font: 900 0.7rem 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge-offer { background: #ef4444; color: white; }
.badge-popular { background: #10b981; color: white; left: 15px; right: auto; }

/* PRODUCT CARD WHITE BOUTIQUE */
.catalog-page-v3 .product-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  padding: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s, box-shadow 0.5s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  will-change: transform;
}

.catalog-page-v3 .product-card:hover {
  transform: translate3d(0, -10px, 0);
  border-color: #10b981;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.catalog-page-v3 .product-img-wrap {
  position: relative;
  background: #f8fafc;
  border-radius: 24px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.catalog-page-v3 .product-img-wrap img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-page-v3 .product-card:hover .product-img-wrap img {
  transform: scale(1.1);
}

/* CONTENT AREA V3 */
.product-title-v3 {
  font: 700 1.15rem 'Outfit', sans-serif;
  color: #0f172a; /* TEXTO OSCURO */
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-bottom-v3 {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
}

.product-price-v3 {
  display: flex;
  flex-direction: column;
}

.price-old-v3 {
  font: 700 1rem 'Outfit', sans-serif;
  color: #ef4444; /* ROJO PARA OFERTA TACHADA */
  text-decoration: line-through;
  margin-bottom: -4px;
  opacity: 0.8;
}

.price-main-v3 {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #0f172a;
}

.currency-v3 {
  font: 800 1.2rem 'Outfit', sans-serif;
  color: #10b981;
}

.amount-v3 {
  font: 900 2.4rem 'Outfit', sans-serif; /* NÚMEROS AÚN MÁS GRANDES */
  letter-spacing: -1.5px;
  line-height: 1;
}

/* BOTÓN WHATSAPP COMPRAR - XL */
.btn-whatsapp-v3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #10b981;
  color: white;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  font: 800 1rem 'Outfit', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-whatsapp-v3:hover {
  background: #0f172a;
  transform: scale(1.02);
}

.btn-whatsapp-v3 svg {
  width: 26px !important; /* ICONO XL */
  height: 26px !important;
  flex-shrink: 0;
}

/* PAGINACIÓN PREMIUM V8 */
.v8-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 60px auto;
  padding: 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.page-num, .page-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font: 800 0.9rem 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.page-num.active {
  background: #10b981;
  color: white;
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* RESPONSIVE V8 */
@media (max-width: 640px) {
  .products-v3-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }
  .catalog-page-v3 .product-card {
    padding: 15px;
    border-radius: 24px;
  }
  .amount-v3 {
    font-size: 1.8rem;
  }
  .btn-whatsapp-v3 {
    padding: 12px;
    font-size: 0.85rem;
  }
  .btn-whatsapp-v3 svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* ==========================================================================
   BUTTON: DOWNLOAD PDF CATALOG ULTRA-PREMIUM [ignoring loop detection]
   ========================================================================== */
.v8-pdf-download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 10px 16px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.05);
}

.v8-pdf-download-btn:hover {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.v8-pdf-download-btn svg {
  transition: transform 0.3s ease;
}

.v8-pdf-download-btn:hover svg {
  transform: translateY(2px);
}

/* ==========================================================================
   PRINT STYLES AND DYNAMIC SLIDES FOR PDF EXPORT
   ========================================================================== */
#v8-pdf-catalog-template {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 297mm;
  height: auto;
  opacity: 1;
  pointer-events: none;
  display: block;
}

body.v8-pdf-rendering #v8-pdf-catalog-template {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 99998 !important;
  height: auto !important;
}

@media print {
  /* Ocultar elementos generales de la web */
  body > *:not(#v8-pdf-catalog-template) {
    display: none !important;
  }
  
  html, body {
    background: #020617 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #v8-pdf-catalog-template {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  @page {
    size: A4 landscape;
    margin: 0;
  }
}

/* CONFIGURACIÓN DE DIAPOSITIVAS HORIZONTALES (A4 LANDSCAPE: 297mm x 210mm) */
.v8-print-template .v8-pdf-slide {
  width: 297mm;
  height: 210mm;
  padding: 16mm 18mm;
  box-sizing: border-box;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Outfit', sans-serif;
  page-break-after: always;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* LÍNEAS DE CORTE Y DETALLES DE DISEÑO PREMIUM COOPERATIVO */
.v8-print-template .v8-pdf-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #3b82f6, #10b981) !important;
}

/* DIAPOSITIVA DE PORTADA PREMIUM */
.v8-print-template .v8-pdf-cover {
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%) !important;
}

.v8-print-template .cover-brand {
  font-size: 1.25rem;
  letter-spacing: 7px;
  color: #059669;
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: none;
}

.v8-print-template .cover-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin: 0 0 15px 0;
  line-height: 1.1;
  color: #0f172a !important;
  letter-spacing: -1.5px;
}

.v8-print-template .cover-subtitle {
  font-size: 1.15rem;
  color: #475569;
  margin: 0 auto 35px auto;
  font-weight: 500;
  max-width: 80%;
}

.v8-print-template .cover-allies {
  display: flex;
  gap: 12px;
  margin-bottom: 35px;
  justify-content: center;
}

.v8-print-template .ally-badge {
  font-size: 0.8rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 6px 16px;
  border-radius: 30px;
  color: #1d4ed8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.v8-print-template .cover-year {
  font-size: 0.85rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 10px 24px;
  border-radius: 40px;
  letter-spacing: 3px;
  color: #64748b;
  font-weight: 700;
}

/* DIAPOSITIVA DE PRODUCTOS */
.v8-print-template .slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.v8-print-template .slide-header-brand {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #0f172a;
}

.v8-print-template .slide-header-brand span {
  color: #10b981;
}

.v8-print-template .slide-header-page {
  font-size: 0.8rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.v8-print-template .v8-pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex-grow: 1;
}

/* TARJETA DE PRODUCTO INDIVIDUAL */
.v8-print-template .v8-pdf-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.v8-print-template .card-brand-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  z-index: 10;
}

.v8-print-template .card-img-container {
  height: 92mm;
  background: #ffffff !important;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.v8-print-template .card-img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}

.v8-print-template .card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v8-print-template .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v8-print-template .card-code {
  font-size: 0.7rem;
  font-family: monospace;
  color: #059669;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.v8-print-template .card-title {
  font-size: 0.98rem;
  font-weight: 900;
  margin: 0;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.v8-print-template .card-description {
  font-size: 0.75rem;
  color: #475569;
  margin: 0;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
}

.v8-print-template .card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}

.v8-print-template .card-pricing {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.v8-print-template .price-regular {
  font-size: 0.72rem;
  text-decoration: line-through;
  color: #94a3b8;
  margin-bottom: -2px;
}

.v8-print-template .price-offer {
  font-size: 1.3rem;
  font-weight: 900;
  color: #059669;
}

.v8-print-template .card-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 5px 9px;
  border-radius: 10px;
  font-weight: 700;
}

/* ICONOS DE REFERENCIA Y CARACTERÍSTICAS PREMIUM - REDISEÑADOS ULTRA PRO */
.card-features {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 8px 0;
}

.v8-print-template .card-features {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.08);
}

.feature-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
}

.feature-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Visibilidad de Alto Contraste: Negro en web blanca, Blanco en PDF oscuro */
.product-card .feat-lbl {
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: #0f172a !important; /* Negro Slate */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.product-card .feat-desc {
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  color: #64748b !important; /* Gris Slate */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.v8-print-template .feat-lbl {
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  color: #0f172a !important; /* Slate Oscuro */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.v8-print-template .feat-desc {
  font-size: 0.55rem !important;
  font-weight: 500 !important;
  color: #64748b !important; /* Gris Slate */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

/* CONTRAPORTADA DE CIERRE */
.v8-print-template .v8-pdf-back-cover {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.v8-print-template .back-brand {
  font-size: 1.2rem;
  letter-spacing: 6px;
  color: #10b981;
  font-weight: 900;
  margin-bottom: 12px;
}

.v8-print-template .back-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: -0.8px;
  color: #3b82f6 !important;
}

.v8-print-template .back-text {
  font-size: 1.05rem;
  color: #475569;
  margin: 0 0 30px 0;
  font-weight: 500;
}

.v8-print-template .back-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #3b82f6) !important;
  border-radius: 4px;
  margin: 0 auto 30px auto;
}

.v8-print-template .back-contacts-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  justify-content: center;
}

.v8-print-template .contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 16px;
}

.v8-print-template .contact-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 600;
}

.v8-print-template .contact-value {
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 900;
}

.v8-print-template .contact-value span {
  color: #10b981;
}

.v8-print-template .back-footer {
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.5px;
}