/* --- VARIABLES Y CONFIGURACIÓN --- */
:root {
  --bg: #0a2a66;
  --primary-btn: #ffffff;
  --text-blue: #0a2a66;
  --accent-blue: #00329d;
  --glass: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.4);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
  text-align: center;
  line-height: 1.6;
}

/* Asegura que al hacer clic en el enlace, baje suavemente */
html {
  scroll-behavior: smooth;
}

/* Contenedor para apilar los botones en la esquina */
.floating-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacio entre la flecha y el WhatsApp */
  z-index: 9999;
  align-items: center;
}

/* Estilos para el botón de la flecha */
.scroll-down-btn {
  background-color: var(--accent-blue); /* O el color que prefieras */
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.scroll-down-btn svg {
  width: 50px;
  height: 50px;
  fill: white;
}

.scroll-down-btn:hover {
  transform: translateY(5px); /* Se mueve un poco hacia abajo al pasar el mouse */
}

/* --- ESTILOS BURBUJA WHATSAPP (Mantenidos) --- */
.whatsapp-bubble {
  position: static; /* Cambiado a static porque el contenedor ya tiene el fixed */
  background-color: #25d366;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
}

.whatsapp-bubble svg {
  width: 45px;
  height: 45px;
  fill: white;
}

/* Responsive para que no tapen tanto en móvil */
@media (max-width: 768px) {
  .whatsapp-bubble { width: 60px; height: 60px; }
  .whatsapp-bubble svg { width: 35px; height: 35px; }
  .scroll-down-btn { width: 45px; height: 45px; }
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { box-shadow: 0 0 0 25px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

/* --- ENCABEZADO --- */
h1 {
  padding: 80px 20px 40px;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: 7rem;
  padding: 3rem;
}

/* --- CONTENEDOR VSL Y VIDEO --- */
.vsl-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.video-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

video {
  width: 100%;
  display: block;
  cursor: pointer;
}

.central-play-btn {
  position: absolute;
  width: 85px;
  height: 85px;
  background: var(--accent-blue);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 50, 157, 0.4);
}

.central-play-btn svg {
  width: 35px;
  fill: white;
}

.video-playing .central-play-btn {
  opacity: 0;
  transform: scale(1.3);
  pointer-events: none;
}

/* --- BARRA DE PROGRESO --- */
.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;
  line-height: 0;
  z-index: 5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

#progress {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  outline: none;
  cursor: pointer;
}

/* --- BOTONES DE CONTACTO --- */
.cta-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  padding: 0 20px;
}

.contact-btn {
  position: relative;
  background: var(--primary-btn);
  color: var(--text-blue);
  text-decoration: none;
  border: none;
  padding: 1.5rem 4rem;
  border-radius: 100px;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  min-width: 280px;
}

.contact-btn:hover {
  transform: translateY(-7px) scale(1.03);
  background: #f8faff;
  color: var(--accent-blue);
}

.final-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem;
}

.neon-pulse {
  animation: pulse-glow 2s infinite;
}

/* --- SECCIONES (CENTRADO CORREGIDO) --- */
#lockedContent {
  display: block; /* Volvemos a block para evitar problemas de flex */
  width: 100%;
}

.section {
  width: 100%;
  margin: 0 auto;
}

/* --- CARRUSEL (REPARADO Y CENTRADO) --- */
.carousel {
  overflow: hidden;
  width: 100%;
  margin: 60px 0;
  display: flex;
  justify-content: center; /* Asegura que el contenido del track inicie centrado */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: scroll 75s linear infinite;
}

.track img {
  height: 380px;
  border-radius: 30px;
  object-fit: cover;
}

/* --- ENCUESTA (SIN TOCAR ANCHO) --- */
.encuesta {
  padding-top: 12rem;
  width: 100%;
  height: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; padding: 40px 15px; }
  .contact-btn { width: 90%; padding: 1.2rem 2rem; }
  .track img { height: 250px; }
  h2 { font-size: 2.5rem; }
  .whatsapp-bubble { width: 60px; height: 60px; }
  .whatsapp-bubble svg { width: 35px; height: 35px; }
}