/* ==========================================================================
   ANTI MARKETING — VIDEO BACKGROUND & CENTERED FLOATING CTA
   Author: Chris Landeros
   WhatsApp: 5562518482
   ========================================================================== */

:root {
  --bg-deep: #0d0f0e;
  
  /* Tonos Champagne Bronze exactos del libro */
  --bronze-highlight: #eed3be;
  --bronze-light: #ddc4ae;
  --bronze-mid: #c7ad99;
  --bronze-warm: #a68b75;
  --bronze-deep: #745a48;
  
  --bronze-gradient: linear-gradient(135deg, #eed3be 0%, #c7ad99 40%, #a68b75 75%, #745a48 100%);
  --bronze-glow: rgba(199, 173, 153, 0.4);
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background-color: var(--bg-deep);
  font-family: var(--font-family);
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. VIDEO DE FONDO (LOOP INFINITO)
   ========================================================================== */
.video-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-deep);
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   2. OVERLAY OSCURO SUAVE
   ========================================================================== */
.dark-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: radial-gradient(circle at center, rgba(13, 15, 14, 0.65) 0%, rgba(5, 6, 6, 0.88) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   3. BOTÓN PREVENTA EN EL CENTRO (FLOTANDO)
   ========================================================================== */
.cta-center-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.85) translateY(24px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-center-container.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Animación de flotación orgánica en el centro */
.cta-center-container.is-visible .btn-presale {
  animation: floatEffect 3.6s ease-in-out infinite alternate;
}

@keyframes floatEffect {
  0% {
    transform: translateY(0px);
    box-shadow: 0 15px 35px var(--bronze-glow),
                0 0 40px rgba(166, 139, 117, 0.25);
  }
  100% {
    transform: translateY(-10px);
    box-shadow: 0 25px 55px rgba(166, 139, 117, 0.45),
                0 0 70px rgba(221, 196, 174, 0.35);
  }
}

.btn-presale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 56px;
  background: var(--bronze-gradient);
  color: #0d0f0e;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  border: 1px solid rgba(238, 211, 190, 0.6);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

/* Destello metálico que recorre el botón periódicamente */
.btn-presale::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  animation: metallicShine 4s infinite;
}

@keyframes metallicShine {
  0% { left: -100%; }
  22% { left: 160%; }
  100% { left: 160%; }
}

.btn-presale:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 25px 60px rgba(166, 139, 117, 0.6),
              0 0 80px rgba(221, 196, 174, 0.5);
  border-color: rgba(238, 211, 190, 0.95);
  color: #000;
}

.btn-presale:active {
  transform: translateY(0) scale(0.97);
}

.wa-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Adaptación para pantallas móviles */
@media (max-width: 600px) {
  .btn-presale {
    width: 100%;
    max-width: 310px;
    padding: 18px 28px;
    font-size: 1.02rem;
    letter-spacing: 0.15em;
    gap: 12px;
  }
  
  .wa-icon {
    width: 22px;
    height: 22px;
  }
}
