/* ==========================================================================
   Detalle de Contenido Stylesheet
   ========================================================================== */

/* ==========================================================================
   Variables & Temas
   ========================================================================== */
:root {
  --preview-bg-primary: #0f172a;
  --preview-bg-secondary: #1e293b;
  --preview-bg-header-start: rgba(var(--preview-accent-rgb, 59, 130, 246), 0.15);
  --preview-bg-header-end: rgba(var(--preview-accent-rgb, 59, 130, 246), 0.03);
  --preview-bg-stat: #1e293b;
  --preview-text-primary: rgba(255, 255, 255, 0.9);
  --preview-text-secondary: rgba(255, 255, 255, 0.6);
  --preview-border-color: rgba(255, 255, 255, 0.08);
  --preview-overlay-bg: #0f172a;
  --preview-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --sticky-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.99) 100%);
  --sticky-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --preview-bg-primary: #ffffff;
  --preview-bg-secondary: #f8fafc;
  --preview-bg-header-start: rgba(var(--preview-accent-rgb, 59, 130, 246), 0.12);
  --preview-bg-header-end: rgba(var(--preview-accent-rgb, 59, 130, 246), 0.03);
  --preview-bg-stat: #f1f5f9;
  --preview-text-primary: #0f172a;
  --preview-text-secondary: #64748b;
  --preview-border-color: var(--border, #e2e8f0);
  --preview-overlay-bg: #ffffff;
  --preview-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);

  --sticky-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.99) 100%);
  --sticky-border: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   1. Barra de Precio Móvil Sticky
   ========================================================================== */
.mobile-price-bar {
  position: fixed;
  bottom: 80px;
  left: 12px;
  right: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 14px 18px;
  z-index: 999999;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: none;
  align-items: center;
  min-height: 64px;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-price-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.mobile-price-bar.dismissed {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

.mobile-price-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  gap: 16px;
  width: 100%;
}

.mobile-price-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mobile-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.mobile-price-value {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: left;
  display: flex;
  align-items: center;
  line-height: 1;
}

.mobile-price-value .currency {
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 4px;
}

.mobile-buy-button {
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex: 0 0 auto;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mobile-buy-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.mobile-buy-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.mobile-buy-button:hover::before {
  left: 100%;
}

.mobile-buy-button:active {
  transform: translateY(0) scale(0.98);
}

.mobile-buy-button i {
  font-size: 0.9rem;
}

/* Temas de Barra Móvil */
.mobile-bar-gratis {
  --bar-accent: #10b981;
  --bar-accent-rgb: 16, 185, 129;
  --bar-text: #0b3722;
}

.mobile-bar-gratis .mobile-buy-button {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.mobile-bar-basico {
  --bar-accent: #3b82f6;
  --bar-accent-rgb: 59, 130, 246;
  --bar-text: #ffffff;
}

.mobile-bar-basico .mobile-buy-button {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.mobile-bar-avanzado {
  --bar-accent: #a855f7;
  --bar-accent-rgb: 168, 85, 247;
  --bar-text: #ffffff;
}

.mobile-bar-avanzado .mobile-buy-button {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.mobile-bar-premium {
  --bar-accent: #f97316;
  --bar-accent-rgb: 249, 115, 22;
  --bar-text: #ffffff;
}

.mobile-bar-premium .mobile-buy-button {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.mobile-bar-vip {
  --bar-accent: #9ca3af;
  --bar-accent-rgb: 156, 156, 156;
  --bar-text: #1f2937;
}

.mobile-bar-vip .mobile-buy-button {
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #e8e8e8 100%);
}

.mobile-price-bar.mobile-bar-nivel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid rgba(var(--bar-accent-rgb), 0.3);
  box-shadow: 0 -8px 32px rgba(var(--bar-accent-rgb), 0.2), 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .mobile-price-bar.mobile-bar-nivel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 246, 0.98) 100%);
  border-color: rgba(var(--bar-accent-rgb), 0.25);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mobile-price-bar.mobile-bar-nivel .mobile-price-label {
  color: rgba(var(--bar-accent-rgb), 0.9);
}

html[data-theme="light"] .mobile-price-bar.mobile-bar-nivel .mobile-price-label {
  color: var(--muted, #64748b);
}

.mobile-price-bar.mobile-bar-nivel .mobile-price-value {
  color: var(--bar-accent);
}

.mobile-price-bar.mobile-bar-nivel .mobile-buy-button {
  color: var(--bar-text) !important;
  box-shadow: 0 4px 12px rgba(var(--bar-accent-rgb), 0.3);
}

/* ==========================================================================
   2. Visor de Imagen Interactivo
   ========================================================================== */
#img-viewer {
  position: relative;
  background: #0d1117;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 82vh;
  min-height: 580px;
  max-height: 900px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --toolbar-height: 52px;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-touch-callout: none !important;
}

@media print {
  #img-viewer, .detalle-container, body * {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #img-viewer:not(.fullscreen) {
    height: 72vh;
    min-height: 460px;
    max-height: 700px;
  }
}

@media (max-width: 915px) and (orientation: landscape) {
  #img-viewer:not(.fullscreen) {
    height: 85vh;
    min-height: 340px;
  }
}

#img-viewer.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1000 !important;
  background: #090d12 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  max-width: none !important;
  border: none !important;
}

#img-viewer.fullscreen #img-container,
#img-viewer.fullscreen #zoom-wrapper {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#fullscreen-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#fullscreen-btn svg {
  width: 20px;
  height: 20px;
}

#img-viewer.fullscreen #viewer-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}

#zoom-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#img-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#viewer-img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  object-fit: contain;
  margin: 0;
  padding: 0;
  user-select: none;
  pointer-events: none;
  border-radius: 6px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.45));
  transition: opacity 0.22s ease-in-out;
}

#viewer-img.loading {
  opacity: 0.5;
}

.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 14px;
  display: none;
  z-index: 5;
}

.loading-indicator.active {
  display: block;
}

.watermark-layer {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(22px, 3.5vw, 34px);
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
  z-index: 5;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.15) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#wm-top {
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#wm-bottom {
  bottom: 0px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Toolbar de Visor */
.image-toolbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 38px;
}

.toolbar-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
}

.toolbar-button:disabled,
.toolbar-button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.icon-button {
  padding: 0;
  width: 38px;
}

.toolbar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.page-info {
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.page-num,
.page-total {
  color: #ffffff;
  font-weight: 700;
  min-width: 1.5em;
  display: inline-block;
  text-align: center;
}

.page-num {
  color: #00adb5;
}

.toolbar-separator {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.25rem;
}

/* ==========================================================================
   3. Tiers, Badges y Tarjetas Preview
   ========================================================================== */
.sticky-header-mobile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.sticky-header-mobile h2 {
  margin: 0 0 4px 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text, #f8fafc);
}

.sticky-level-wrapper {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
  width: 100%;
}

.tier-effect {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-size: 0.8rem;
  cursor: help;
}

.tier-gratis {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #0b3722;
}

.tier-basico {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #ffffff;
}

.tier-avanzado {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: #ffffff;
}

.tier-premium {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #ffffff;
}

.tier-vip {
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #e8e8e8 100%);
  color: #2c3e50;
}

.badge-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.4) 70%, transparent 100%);
  animation: shine 3s infinite;
}

/* Preview Card y Bloqueo */
.content-preview-locked {
  margin: 2rem 0;
  border: 2px dashed rgba(var(--preview-accent-rgb, 59, 130, 246), 0.4);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--preview-bg-primary) 0%, var(--preview-bg-secondary) 100%);
  overflow: hidden;
  position: relative;
  box-shadow: var(--preview-shadow);
}

.preview-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, var(--preview-bg-header-start) 0%, var(--preview-bg-header-end) 100%);
  border-bottom: 2px solid var(--preview-border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.preview-header svg {
  stroke: var(--preview-accent, #3b82f6);
}

.preview-header span {
  color: var(--preview-accent, #3b82f6);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-body {
  padding: 1.75rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.preview-stat {
  text-align: center;
  padding: 1.2rem;
  background: var(--preview-bg-stat);
  border-radius: 16px;
  border: 1px solid var(--preview-border-color);
}

.preview-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--preview-accent, #3b82f6);
}

.preview-stat-label {
  font-size: 0.8rem;
  color: var(--preview-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.preview-benefits-title {
  font-size: 0.95rem;
  color: var(--preview-accent, #3b82f6);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.preview-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--preview-text-primary);
  padding: 0.45rem 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.preview-benefit svg {
  stroke: var(--preview-accent, #3b82f6);
  flex-shrink: 0;
}

.preview-cta-wrapper {
  margin-top: 1.5rem;
}

.preview-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(var(--preview-accent-rgb, 59, 130, 246), 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.preview-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--preview-accent-rgb, 59, 130, 246), 0.45);
  border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme="light"] .preview-cta {
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(var(--preview-accent-rgb, 59, 130, 246), 0.2);
}

html[data-theme="light"] .preview-cta:hover {
  box-shadow: 0 8px 22px rgba(var(--preview-accent-rgb, 59, 130, 246), 0.35);
  border-color: rgba(0, 0, 0, 0.1);
}

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--preview-overlay-bg) 0%, transparent 100%);
  pointer-events: none;
}

/* Tiers de la Preview Card */
.preview-nivel-gratis {
  --preview-accent: #10b981;
  --preview-accent-rgb: 16, 185, 129;
}

.preview-nivel-gratis .preview-cta {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #0b3722;
}

.preview-nivel-basico {
  --preview-accent: #3b82f6;
  --preview-accent-rgb: 59, 130, 246;
  color: white !important;
}

.preview-nivel-basico .preview-cta {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #ffffff !important;
}

.preview-nivel-avanzado {
  --preview-accent: #a855f7;
  --preview-accent-rgb: 168, 85, 247;
  color: white !important;
}

.preview-nivel-avanzado .preview-cta {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: #ffffff !important;
}

.preview-nivel-premium {
  --preview-accent: #f97316;
  --preview-accent-rgb: 249, 115, 22;
  color: white !important;
}

.preview-nivel-premium .preview-cta {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #ffffff !important;
}

.preview-nivel-vip {
  --preview-accent: #9ca3af;
  --preview-accent-rgb: 156, 156, 156;
  color: rgb(255, 182, 25) !important;
}

.preview-nivel-vip .preview-cta {
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #e8e8e8 100%);
  color: #1f2937;
}

/* ==========================================================================
   4. Clases Generales y Estructura
   ========================================================================== */
.detalle-main {
  padding-bottom: 24px;
}

#main .detalle-container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 10px 16px;
}

.portada-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.portada-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.portada-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 260px;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.description-card {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.description-card:hover {
  border-color: rgba(0, 173, 181, 0.25);
}

.description-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 173, 181, 0.06);
  border-bottom: 1px solid rgba(0, 173, 181, 0.12);
  color: #00adb5;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.description-card-header i {
  font-size: 1.1rem;
}

.description-card-body {
  padding: 1.25rem;
}

.description-text {
  color: var(--text, #e2e8f0);
  white-space: pre-line;
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

.description-text.description-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 4;
}

.description-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.85rem;
  padding: 6px 14px;
  background: rgba(0, 173, 181, 0.1);
  color: #00adb5 !important;
  border: 1px solid rgba(0, 173, 181, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.description-toggle-btn:hover {
  background: rgba(0, 173, 181, 0.2);
  transform: translateY(-1px);
}

/* Tarjeta de compra en página principal */
.precio-original {
  background: var(--surface-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  margin-top: 24px;
}

.precio-label {
  color: var(--text, inherit);
  font-size: 1.25rem;
  font-weight: 700;
}

.precio-valor-gratis {
  font-weight: 800;
  color: #10b981;
  font-size: 1.4rem;
}

.precio-valor-pago {
  font-weight: 800;
  color: #00adb5;
  font-size: 1.4rem;
}

.precio-iva {
  font-size: 0.7rem;
  color: var(--muted, #94a3b8);
  font-weight: 500;
}

/* Alertas de restricción */
.blocked-alert {
  border-radius: 16px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: rgba(253, 186, 116, 0.15);
  color: #7c3d09;
  padding: 1.25rem;
  margin-bottom: 24px;
}

html[data-theme="dark"] .blocked-alert {
  background: rgba(251, 191, 36, 0.06);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}

.btn-warning-custom {
  background: #f59e0b;
  color: #1e293b !important;
  font-weight: 700;
  border-radius: 12px !important;
  padding: 10px 20px;
  margin-top: 10px;
}

.btn-warning-custom:hover {
  background: #d97706;
  color: #ffffff !important;
}

/* Botones Custom */
.btn-success-custom {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success-custom:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-buy-custom {
  background: linear-gradient(135deg, #00adb5 0%, #008b92 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 173, 181, 0.2);
}

.btn-buy-custom:hover {
  background: linear-gradient(135deg, #00c5cf 0%, #00adb5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 173, 181, 0.3);
}

.icon-pulse {
  animation: pulse 2s infinite;
}

/* ==========================================================================
   5. Animaciones y Responsive
   ========================================================================== */
@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .detalle-container {
    padding: 10px 12px !important;
  }

  .content-preview-locked {
    margin: 1.25rem 0;
    border-radius: 14px;
  }

  .preview-header {
    padding: 1rem 1.15rem;
  }

  .preview-body {
    padding: 1.15rem;
  }

  .preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 1.25rem;
  }

  .preview-stat {
    padding: 0.85rem;
    border-radius: 12px;
  }

  .preview-stat-value {
    font-size: 1.6rem;
  }

  .preview-benefit {
    font-size: 0.85rem;
    padding: 0.35rem 0;
  }

  .preview-cta {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .mobile-price-bar {
    display: flex !important;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-price-bar.visible {
    transform: translateY(0);
    opacity: 1;
  }

  .precio-original {
    display: none !important;
  }

  .sticky-header-mobile {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--sticky-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 16px;
    margin: -10px -16px 10px -16px;
    border-bottom: 1px solid var(--sticky-border);
    width: calc(100% + 32px);
    box-sizing: border-box;
  }

  .sticky-level-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .sticky-level-wrapper > span.tier-effect {
    width: 100% !important;
    min-width: 100% !important;
    display: inline-flex !important;
    justify-content: center;
    box-sizing: border-box;
  }

  .image-toolbar {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .toolbar-group {
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .toolbar-group:first-child {
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 0;
  }

  .toolbar-group:last-child {
    margin-left: auto;
    flex-shrink: 0;
  }

  .toolbar-btn-text {
    display: none !important;
  }

  #btnPrev,
  #btnNext {
    padding: 0.5rem 0.65rem;
  }

  #zoom-out-btn,
  #zoom-in-btn,
  .toolbar-separator {
    display: none !important;
  }

  .page-info {
    min-width: auto;
    position: static;
    transform: none;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .mobile-price-bar {
    left: 10px;
    right: 10px;
    padding: 12px 14px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 14px;
  }

  .mobile-price-content {
    gap: 12px;
  }

  .mobile-price-value {
    font-size: 1.3rem;
  }

  .mobile-buy-button {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  #zoom-in-btn,
  #zoom-out-btn,
  .toolbar-separator {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .page-info-label {
    display: none;
  }
}
