/* ==========================================================================
   JOYERÍA MONARCA - COMPONENTS STYLESHEET
   Catálogo, tarjetas de joyas, modales, cotizador drawer, filtros y lightbox
   ========================================================================== */

/* ==========================================================================
   BARRA DE FILTROS Y CONTROLES DEL CATÁLOGO
   ========================================================================== */
.catalog-toolbar {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-pills-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 10px 22px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.filter-pill:hover {
  color: var(--text-white);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}
.filter-pill.active {
  background: var(--gold-gradient);
  color: #0b0a08;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
}

.catalog-search-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 420px;
}
.search-input-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-champagne);
  flex-shrink: 0;
}
.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}
.search-input::placeholder {
  color: var(--text-muted);
}

.catalog-stats-sort {
  display: flex;
  align-items: center;
  gap: 16px;
}
.catalog-counter {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.sort-select {
  background: #090909;
  color: var(--text-primary);
  border: 1px solid var(--border-gold-subtle);
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: var(--radius-xs);
  outline: none;
  cursor: pointer;
}
.sort-select:focus {
  border-color: var(--gold-primary);
}

/* ==========================================================================
   GRID Y TARJETA DE PRODUCTO (LUXURY JEWELRY CARD)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.12);
}

/* Contenedor de Imagen de la Joya */
.card-media {
  position: relative;
  width: 100%;
  padding-top: 105%; /* Relación de aspecto estética */
  overflow: hidden;
  background: #080808;
  cursor: pointer;
}
.card-image-main,
.card-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.card-image-hover {
  opacity: 0;
}
.product-card:hover .card-image-main {
  transform: scale(1.08);
}
.product-card:hover .card-image-hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Badges sobre la imagen */
.card-badge-top-left {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold-medium);
  color: var(--text-gold-light);
}
.card-badge-top-right {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.6);
  color: #a0a0a0;
}

/* Botón flotante de vista rápida */
.card-quick-actions {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition-fast);
}
.product-card:hover .card-quick-actions {
  opacity: 1;
  transform: translateY(0);
}
.btn-quick-view {
  flex: 1;
  padding: 9px 12px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold-medium);
  color: var(--gold-champagne);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.btn-quick-view:hover {
  background: var(--gold-gradient);
  color: #000;
}

/* Contenido de la Tarjeta */
.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-ref-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-serif-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.card-title:hover {
  color: var(--gold-champagne);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bloque de Precio y Material */
.card-pricing-block {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-price-cop {
  font-family: var(--font-serif-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-champagne);
}
.card-price-usd {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Botones de acción directa */
.card-footer-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-card-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}
.btn-card-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-card-whatsapp svg {
  width: 15px;
  height: 15px;
  fill: #000;
}

.btn-card-add-bag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold-subtle);
  color: var(--gold-champagne);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}
.btn-card-add-bag:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
  color: #fff;
}
.btn-card-add-bag svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* ==========================================================================
   MODAL DE FICHA TÉCNICA DE JOYA (QUICK VIEW MODAL)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #0f0f0f;
  border: 1px solid var(--border-gold-medium);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.15);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}
.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
.modal-image-col {
  background: #070707;
  position: relative;
  min-height: 440px;
}
.modal-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content-col {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.modal-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.modal-sku {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-deep);
}
.modal-tag {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-champagne);
  border: 1px solid var(--border-gold-subtle);
}

.modal-title {
  font-family: var(--font-serif-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}
.modal-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.modal-price-cop {
  font-family: var(--font-serif-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-champagne);
}
.modal-price-usd {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Ficha de Especificaciones Técnicas */
.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 0.8rem;
}
.modal-specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.modal-specs-table td {
  padding: 8px 4px;
}
.modal-specs-table td:first-child {
  color: var(--text-muted);
  width: 42%;
}
.modal-specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.modal-cta-group {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

/* ==========================================================================
   DRAWER / BOLSA DE COTIZACIÓN VIP (SLIDE-OVER PANEL)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.quote-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #0d0d0d;
  border-left: 1px solid var(--border-gold-medium);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
}
.drawer-backdrop.open .quote-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-header-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-primary);
}
.drawer-header-title h3 {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.drawer-body {
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-empty-state {
  text-align: center;
  margin: auto 0;
  padding: 40px 10px;
}
.drawer-empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.drawer-empty-state h4 {
  font-family: var(--font-serif-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}
.drawer-empty-state p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Fila de Joya dentro del Cotizador */
.drawer-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  align-items: center;
}
.drawer-item-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--border-gold-subtle);
  background: #000;
}
.drawer-item-info {
  flex: 1;
}
.drawer-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.drawer-item-price {
  font-size: 0.8rem;
  color: var(--gold-champagne);
  font-family: var(--font-serif-display);
}
.drawer-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.drawer-qty-btn {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold-subtle);
  color: var(--text-white);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.drawer-qty-btn:hover {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}
.drawer-qty-val {
  min-width: 22px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}
.drawer-remove-btn {
  margin-left: auto;
  color: #888;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.drawer-remove-btn:hover {
  color: #ff5555;
  background: rgba(255, 85, 85, 0.12);
}

.drawer-footer {
  padding: 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}
.drawer-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.drawer-summary-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.drawer-summary-total {
  font-family: var(--font-serif-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-champagne);
}

.btn-send-wa-quote {
  width: 100%;
  padding: 15px;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  transition: all var(--transition-fast);
}
.btn-send-wa-quote:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.btn-send-wa-quote svg {
  width: 18px;
  height: 18px;
  fill: #000;
}

/* ==========================================================================
   LIGHTBOX PARA LA GALERÍA LOOKBOOK
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 30px;
}
.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-image-container {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-image-container img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-xs);
}
.lightbox-caption-text {
  margin-top: 16px;
  text-align: center;
  color: #fff;
  font-family: var(--font-serif-display);
  font-size: 1.1rem;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lightbox-close:hover {
  background: var(--gold-primary);
  color: #000;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP (CON AURA DORADA)
   ========================================================================== */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-wa-pill {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold-medium);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  animation: floatPill 4s ease-in-out infinite;
}
.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
}
.floating-wa-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-gold-light);
}

.floating-wa-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-normal);
}
.floating-wa-btn:hover {
  transform: scale(1.08) rotate(5deg);
}
.floating-wa-btn::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  opacity: 0.6;
  animation: goldPulse 2.5s infinite;
  pointer-events: none;
}
.floating-wa-btn svg {
  width: 28px;
  height: 28px;
  fill: #000;
}

@keyframes goldPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes floatPill {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.luxury-toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 1100;
  background: #141414;
  border: 1px solid var(--border-gold-medium);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(30px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.luxury-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.toast-icon {
  width: 20px;
  height: 20px;
  color: var(--gold-primary);
}
.toast-text {
  font-size: 0.82rem;
  color: var(--text-white);
}


/* ==========================================================================
   SECCIÓN: CATÁLOGOS DIGITALES OFICIALES (PDF)
   ========================================================================== */
.pdf-catalogs-section {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0a0a0a 50%, var(--bg-deep) 100%);
  position: relative;
  overflow: hidden;
}

.pdf-catalogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 32px;
}

.pdf-catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}
.pdf-catalog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.18);
}

/* Portada Estilizada del Catálogo de Lujo */
.pdf-cover-thumb {
  position: relative;
  width: 100%;
  padding-top: 115%; /* Proporción libro / catálogo */
  background: radial-gradient(circle at 50% 30%, #1c1810 0%, #090909 75%);
  border-bottom: 1px solid var(--border-gold-subtle);
  overflow: hidden;
  cursor: pointer;
}
.pdf-cover-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(212, 175, 55, 0.25) 50%, transparent 100%);
  z-index: 2;
}

.pdf-cover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
}

.pdf-cover-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.45));
  transition: transform var(--transition-normal);
}
.pdf-catalog-card:hover .pdf-cover-logo {
  transform: scale(1.1) rotate(2deg);
}

.pdf-cover-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.pdf-cover-sub {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  font-weight: 600;
}

.pdf-cover-frame {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-xs);
  pointer-events: none;
  transition: border-color var(--transition-fast);
}
.pdf-catalog-card:hover .pdf-cover-frame {
  border-color: rgba(212, 175, 55, 0.55);
}

.pdf-format-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold-medium);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-champagne);
}
.pdf-format-badge svg {
  width: 12px;
  height: 12px;
  stroke: var(--gold-primary);
}

/* Cuerpo de la Tarjeta del Catálogo */
.pdf-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pdf-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pdf-category-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
}
.pdf-size-pill {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pdf-card-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.pdf-card-title:hover {
  color: var(--gold-champagne);
}

.pdf-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Acciones del Catálogo */
.pdf-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pdf-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-catalog-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--gold-gradient);
  color: #0b0a08;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.btn-catalog-view:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.btn-catalog-view svg {
  width: 15px;
  height: 15px;
  stroke: #0b0a08;
}

.btn-catalog-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold-medium);
  color: var(--gold-champagne);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn-catalog-download:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #fff;
  border-color: var(--gold-primary);
}
.btn-catalog-download svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.btn-catalog-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  cursor: pointer;
  width: 100%;
}
.btn-catalog-wa:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  color: #fff;
}
.btn-catalog-wa svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   MODAL DE VISUALIZACIÓN DE PDF IN-PAGE
   ========================================================================== */
.pdf-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.pdf-viewer-modal.open {
  opacity: 1;
  visibility: visible;
}

.pdf-viewer-dialog {
  background: #0d0d0d;
  border: 1px solid var(--border-gold-medium);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(212, 175, 55, 0.2);
  overflow: hidden;
}

.pdf-viewer-header {
  padding: 16px 24px;
  background: #111;
  border-bottom: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pdf-viewer-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdf-viewer-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}
.pdf-viewer-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.pdf-viewer-title {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
}

.pdf-viewer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.pdf-ctrl-btn.download {
  background: var(--gold-gradient);
  color: #000;
}
.pdf-ctrl-btn.download:hover {
  filter: brightness(1.1);
}
.pdf-ctrl-btn.wa {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
}
.pdf-ctrl-btn.wa:hover {
  background: #25d366;
  color: #000;
}
.pdf-ctrl-btn.close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold-subtle);
  color: #fff;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}
.pdf-ctrl-btn.close:hover {
  background: var(--gold-primary);
  color: #000;
}

.pdf-viewer-body {
  flex: 1;
  width: 100%;
  background: #050505;
  position: relative;
  overflow: hidden;
}

.pdf-viewer-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Fallback para navegadores móviles que no renderizan iframes de PDF */
.pdf-mobile-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: #080808;
  z-index: 5;
}
.pdf-mobile-fallback svg {
  width: 56px;
  height: 56px;
  stroke: var(--gold-primary);
  margin-bottom: 16px;
}
.pdf-mobile-fallback h4 {
  font-family: var(--font-serif-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}
.pdf-mobile-fallback p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 440px;
  margin-bottom: 24px;
  line-height: 1.6;
}
