/* ==========================================================================
   Cine 4K — Main Styling & Layout Protection
   ========================================================================== */

/* Base & Overflow Safeguards */
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: #0b0a0f;
  color: #f8f7ff;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, sans-serif;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Custom Gradients & Aesthetics */
.gradient-hero {
  background:
    radial-gradient(1000px 400px at 15% 15%, rgba(139,92,246,.22), transparent 55%),
    radial-gradient(800px 400px at 85% 85%, rgba(244,63,94,.15), transparent 55%),
    radial-gradient(600px 300px at 50% 50%, rgba(245,158,11,.06), transparent 50%),
    linear-gradient(170deg, #0b0a0f 0%, #121016 50%, #0b0a0f 100%);
}

.text-glow {
  background: linear-gradient(135deg, #8b5cf6, #f43f5e, #f59e0b, #8b5cf6);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient 4s linear infinite;
}

.glass-card {
  background: rgba(18,16,22,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(31,27,46,0.6);
}

.glass-card:hover {
  border-color: rgba(139,92,246,0.3);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-scroll, .animate-levitate, .animate-gradient, .animate-pulse-glow, .animate-rise {
    animation: none !important;
  }
}

/* Escassez Purchase Toast Styling */
.escassez-link {
  text-decoration: none;
  color: inherit;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999999;
  pointer-events: none;
}

.escassez-toast {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.02);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(120px) scale(0.92);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
  max-width: 350px;
  width: calc(100vw - 48px);
  box-sizing: border-box;
  pointer-events: auto;
  cursor: pointer;
}

.escassez-toast.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.escassez-toast:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.escassez-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  position: relative;
}

.escassez-badge::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #10B981;
  opacity: 0.8;
  animation: escassez-pulse-glow 2.5s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes escassez-pulse-glow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.escassez-icon {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}

.escassez-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.escassez-text {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.4;
  font-weight: 500;
}

.escassez-name {
  font-weight: 700;
  color: #111827;
}

.escassez-plan-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  background-color: #D1FAE5;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 4px;
  align-self: flex-start;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.escassez-time {
  font-size: 11px;
  color: #6B7280;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.escassez-time::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
  animation: escassez-online-dot 1.5s infinite;
}

@keyframes escassez-online-dot {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 480px) {
  .escassez-link {
    bottom: 16px;
    left: 16px;
  }
  .escassez-toast {
    padding: 12px 16px;
    gap: 12px;
  }
  .escassez-badge {
    width: 40px;
    height: 40px;
  }
  .escassez-icon {
    width: 18px;
    height: 18px;
  }
}
