*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --yellow: #ffcc00;
  --neon-green: #00d26a;
  --apocalypse-red: #ff3b3b;
  --dark-void: #06080a;
  --text-primary: #f5f7fa;
  --font-main: 'Montserrat', sans-serif;
  --slider-goteras: 50%;
  --slider-techo: 50%;
}

body {
  background-color: var(--dark-void);
  font-family: var(--font-main);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* CANVAS INTEGRAL */
#stormCanvas {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 11;
  background: radial-gradient(circle, transparent 30%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
}

.flash-element {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

/* HERO (Estructura Cinematográfica Flex) */
.hero-cinematic {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 5%;
  text-align: center;
  position: relative;
}

.hero-wrapper { 
  width: 100%;
  max-width: 900px; 
  z-index: 15; 
  display: flex;
  flex-direction: column;
  align-items: center; /* Garantiza centrado horizontal absoluto de sus hijos */
  justify-content: center;
}

.badge-glow {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.glitch-title { 
  font-size: clamp(2.2rem, 5.5vw, 4.8rem); 
  font-weight: 900; 
  line-height: 1.0; 
  text-transform: uppercase; 
  margin-bottom: 15px;
}

.accent-glow { 
  color: var(--yellow); 
  display: block; 
  text-shadow: 0 0 25px rgba(255,204,0,0.4); 
}

.hero-subtext { 
  color: #a0aab5; 
  margin: 15px auto 35px; 
  max-width: 650px; 
  font-size: clamp(1rem, 3vw, 1.2rem); 
  line-height: 1.5; 
}

/* CONTENEDOR DE PRODUCTO EN EL HERO CORREGIDO */
.interactive-product-center {
  position: relative;
  width: 100%;
  max-width: 920px; /* Tamaño controlado ideal en monitores de PC */
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-premium-asset {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1; 
  filter: drop-shadow(0 25px 35px rgba(0,0,0,0.85));
  transform: translateZ(0);
  pointer-events: none;
  -webkit-user-drag: none;
}

.magnetic-glow-ring { 
  position: absolute; 
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,204,0,0.2) 0%, transparent 65%); 
  filter: blur(20px); 
  z-index: 0;
}

.action-dock { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 15px; 
  width: 100%;
}

.btn-immersive-trigger { 
  width: 100%; 
  max-width: 360px; 
  padding: 22px; 
  font-weight: 900; 
  text-decoration: none; 
  text-align: center; 
  border-radius: 16px; 
  text-transform: uppercase; 
  letter-spacing: 0.5px;
}

.btn-immersive-trigger.neon-yellow { 
  background: var(--yellow); 
  color: #000; 
  box-shadow: 0 10px 30px rgba(255,204,0,0.35); 
  transition: transform 0.2s ease;
}

.btn-immersive-trigger.neon-yellow:active {
  transform: scale(0.98);
}

.scroll-hint { 
  font-size: 11px; 
  color: #5a6575; 
  font-weight: 700; 
  letter-spacing: 1px; 
}

/* SECCIONES TEXTO INTERMEDIAS */
.section-text-header { text-align: center; max-width: 700px; margin: 0 auto 40px; padding: 0 6%; }
.section-text-header h2 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; font-weight: 900; line-height: 1.0; margin-bottom: 15px; }
.section-text-header p { color: #8fa0b0; line-height: 1.6; font-size: 0.95rem; }
.warning-label { color: var(--apocalypse-red); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; display: block; margin-bottom: 10px; }

/* CONTENEDORES FLUIDOS PARA LOS SLIDERS */
.interactive-section, .fluid-asset-section {
  padding: 60px 0;
  width: 100%;
}

.split-slider-container {
  position: relative;
  width: 92%; 
  max-width: 950px;
  margin: 0 auto;
  aspect-ratio: 1 / 1; /* Cuadrado perfecto en computadoras */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0,0,0,0.7);
  cursor: ew-resize;
  background-color: #0b131a; 
  
  /* Bloqueo total de selección fantasma azul */
  -webkit-user-select: none;
  -moz-user-select: none;  
  -ms-user-select: none;     
  user-select: none;         
}

.image-side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center center;
  display: block;
  pointer-events: none; 
  -webkit-user-drag: none;
}

/* Sistema de Clip-Path simétrico e invertido contra desborde */
#goterasSlider .before-side { clip-path: inset(0 calc(100% - var(--slider-goteras)) 0 0); }
#goterasSlider .after-side { clip-path: inset(0 0 0 var(--slider-goteras)); }
#techoSlider .before-side { clip-path: inset(0 calc(100% - var(--slider-techo)) 0 0); }
#techoSlider .after-side { clip-path: inset(0 0 0 var(--slider-techo)); }

#goterasSlider .slider-drag-handle { left: var(--slider-goteras); }
#techoSlider .slider-drag-handle { left: var(--slider-techo); }

.preview-shield-clean {
  background: #0b131a;
  width: 100%;
  height: 100%;
}

/* Controladores del Slider */
.slider-drag-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  z-index: 10; 
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.handle-button { width: 44px; height: 44px; background: #fff; color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; box-shadow: 0 0 15px rgba(0,0,0,0.4); }
.handle-line { flex-grow: 1; width: 2px; background: rgba(255,255,255,0.4); }

.status-pill {
  position: absolute;
  bottom: 20px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  white-space: nowrap; 
  z-index: 4; 
}
.before-side .status-pill { left: 20px; background: var(--apocalypse-red); box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3); }
.after-side .status-pill { right: 20px; background: var(--neon-green); box-shadow: 0 4px 15px rgba(0, 210, 106, 0.3); }

/* SECCIONES DE IMÁGENES LARGAS */
.pure-image-wrapper {
  width: 92%;
  max-width: 950px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.no-crop-img {
  width: 100%;
  height: auto;
  display: block;
}

/* FINAL CTA */
.apocalypse-cta { padding: 80px 5%; display: flex; justify-content: center; }
.cta-inner-card { background: radial-gradient(circle at top, #14222e, #070d12); border: 1px solid rgba(255,255,255,0.03); padding: 50px 6%; border-radius: 32px; text-align: center; max-width: 800px; width: 100%; box-shadow: 0 40px 80px rgba(0,0,0,0.8); }
.apocalypse-cta h2 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 900; text-transform: uppercase; margin-bottom: 15px; line-height: 1.1; }
.apocalypse-cta p { color: #a0aab5; margin-bottom: 35px; font-size: 1rem; line-height: 1.5; }
.btn-epic-cta { display: inline-block; padding: 22px 45px; background: var(--yellow); color: #000; font-weight: 900; text-transform: uppercase; text-decoration: none; border-radius: 16px; box-shadow: 0 12px 35px rgba(255,204,0,0.3); }


/* ========================================================
   MEDIAS QUERIES DISPOSITIVOS MÓVILES (OPTIMIZACIÓN TOTAL)
   ======================================================== */
@media (max-width: 768px) {
  /* Forzar centrado absoluto del Hero eliminando márgenes de PC */
  .hero-cinematic {
    padding: 20px 4%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }

  /* 🔥 IMAGEN DEL HERO ENORME EN MÓVIL: Incrementamos su escala de forma segura */
  .interactive-product-center {
    width: 90vw;  /* Ocupa casi todo el ancho de la pantalla táctil */
    max-width: 800px;
    height: auto; /* Al fin dinámico, elimina vacíos invisibles */
    margin: 10px auto 35px;
  }
  
  .magnetic-glow-ring {
    width: 130%;
    height: 130%;
  }

  .glitch-title {
    font-size: 2.3rem; /* Tamaño óptimo de lectura en celular */
    letter-spacing: -0.5px;
  }

  /* Altura extendida para los sliders táctiles en formato vertical premium */
  .split-slider-container {
    aspect-ratio: 1 / 1; 
    width: 94%;
  }
  
  .status-pill {
    bottom: 15px;
    font-size: 10px;
    padding: 6px 12px;
  }
  
  .before-side .status-pill { left: 15px; }
  .after-side .status-pill { right: 15px; }
}

/* ========================================================
   STICKY CONVERSION DOCK (BOTÓN SIEMPRE VISIBLE)
   ======================================================== */
.sticky-conversion-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 8, 10, 0.9); /* Tu color dark-void con transparencia */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 5%;
  z-index: 9999; /* Por encima de la tormenta y sliders */
  box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.6);
}

.dock-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Info exclusiva para ver en computadoras */
.dock-info-pc {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.dock-title {
  color: var(--yellow);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
}
.dock-subtitle {
  color: #a0aab5;
  font-size: 12px;
}

/* El Súper Botón */
.btn-dock-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #00d26a 0%, #00b054 100%); /* Gradiente verde WhatsApp corporativo */
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  padding: 16px 35px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 20px rgba(0, 210, 106, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: auto;
}

.btn-dock-whatsapp:active {
  transform: scale(0.97);
}

/* Estilos para el SVG del logo de WhatsApp */
.wa-icon-svg {
  width: 20px;
  height: 20px;
  fill: #ffffff; /* Pinta el logo de blanco para máxima elegancia */
}

/* ========================================================
   ADAPTACIÓN EXCLUSIVA PARA MÓVILES
   ======================================================== */
@media (max-width: 768px) {
  .sticky-conversion-dock {
    padding: 10px 15px; /* Más compacto en teléfonos */
    background: #06080a; /* Sólido en móvil para evitar bugs visuales de scroll */
  }

  .dock-info-pc {
    display: none; /* Escondemos el texto en celular para darle todo el espacio al botón */
  }

  .btn-dock-whatsapp {
    width: 100%; /* El botón toma el 100% del ancho del teléfono, imposible no verlo */
    font-size: 16px;
    padding: 18px;
    border-radius: 12px;
  }
  
  /* Margen de seguridad al final de la página para que la barra flotante 
     no tape el botón del último CTA de la landing */
  body {
    padding-bottom: 80px; 
  }
}