:root {
  --primary: #C61E1E; /* Rojo principal */
  --primary-hover: #E33636;
  --dark-bg: #0B1F3F; /* Fondo azul marino */
  --light-bg: #F9FAFC;
  --soft-gray: #F0F3F8;
  --text-dark: #222;
  --text-light: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: var(--light-bg);
  color: var(--text-dark);
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

body.fade-out {
  opacity: 0;
  filter: blur(3px);
}

/* Loader */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #ddd;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Hero */
.hero {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Botones */
.btn, .btn-cta {
  background: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover, .btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(198, 30, 30, 0.4);
}




:root {
  --primary: #C61E1E; /* Rojo principal */
  --primary-hover: #E33636;
  --dark-bg: #0B1F3F; /* Fondo azul marino */
  --light-bg: #F9FAFC;
  --soft-gray: #F0F3F8;
  --text-dark: #222;
  --text-light: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: var(--light-bg);
  color: var(--text-dark);
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

body.fade-out {
  opacity: 0;
  filter: blur(3px);
}

/* Loader */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #ddd;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Hero */
.hero {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Botones */
.btn, .btn-cta {
  background: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover, .btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(198, 30, 30, 0.4);
}




/* ============================= */
/* 🎥 Video (Lazy Load YouTube)  */
/* ============================= */

.video {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-center {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}


/* iframe cuando se carga */
.video-center iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 12px;
}


/* Miniatura estática */
.yt-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.yt-thumb:hover img {
  transform: scale(1.03);
}


/* Animación sutil para llamar atención */
.yt-thumb.pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: rgba(255, 0, 0, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1.8s infinite;
  z-index: 1;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  70% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}






/* ==== BOTÓN PLAY MOBILE-FIRST ==== */

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  opacity: 0.98;
  z-index: 3;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

/* Triángulo interno */
.play-btn::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 26px solid #ff0000;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
}

/* Animación de respiración roja */
.yt-thumb.pulse .play-btn {
  animation: pulse-glow-strong 1.2s infinite ease-in-out;
}

@keyframes pulse-glow-strong {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5),
                0 0 40px rgba(255, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 60px rgba(255, 0, 0, 0.8),
                0 0 90px rgba(255, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.45);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5),
                0 0 40px rgba(255, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
  }
}

/* 📱 Mobile First */
@media (max-width: 768px) {
  .play-btn {
    width: 110px;
    height: 110px;
  }
  .play-btn::before {
    border-left: 32px solid #ff0000;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
  }
}

/* 💻 Desktop */
@media (min-width: 769px) {
  .play-btn {
    width: 100px;
    height: 100px;
  }
  .play-btn::before {
    border-left: 28px solid #ff0000;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
  }
}

/* Fade */
.yt-thumb.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
iframe.video-loaded {
  opacity: 0;
  animation: fadeInVideo 0.6s ease forwards;
}
@keyframes fadeInVideo {
  to { opacity: 1; }
}








/* Formulario */
.form-section {
  background: var(--light-bg);
  padding: 80px 20px;
  text-align: center;
}


.glass-card {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  margin: auto;
}

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border 0.3s ease;
}

input:focus {
  border-color: var(--primary);
  outline: none;
}

.sending {
  display: none;
  margin-top: 15px;
  color: var(--primary);
}

/* Foto */
.foto-section {
  text-align: center;
  padding: 80px 20px;
}

.foto-img img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* Beneficios */
.beneficios {
  background: #fff;
  text-align: center;
  padding: 80px 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.cards div {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 25px;
  flex: 1 1 260px;
  transition: all 0.3s ease;
}

.cards div:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Testimonios */
.testimonios {
  background: linear-gradient(180deg, #f9fafc 0%, #f5f7fb 100%);
  padding: 80px 20px;
  text-align: center;
}

.testimonios h2 {
  color: var(--dark-bg);
}

.subtext {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 30px;
}

.testimonios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonio-card {
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 25px;
  max-width: 280px;
  transition: all 0.3s ease;
}

.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.testimonio-card strong {
  color: var(--primary);
}

/* CTA */
.cta {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
}

.cta h2, .cta p {
  /*font-size: 1.1rem;*/
  margin-bottom: 20px;
}

footer {
  background: var(--soft-gray);
  padding: 30px 10px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* Botón flotante */
.cta-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(198,30,30,0.4);
  text-decoration: none;
  font-weight: 600;
  z-index: 900;
  transition: all 0.3s ease;
}

.cta-float:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
}



/* Íconos dentro de inputs — mejora incremental */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .icon {
  position: absolute;
  left: 14px;
  color: #999;
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Mantén tus paddings, solo agregamos espacio a la izquierda */
.input-group input {
  padding-left: 40px !important;
}

/* Al enfocar el input */
.input-group input:focus ~ .icon {
  color: var(--primary);
  transform: scale(1.15);
}

.input-group input {
  line-height: 1.4;
}








/* Formulario */
.form-section {
  background: var(--light-bg);
  padding: 80px 20px;
  text-align: center;
}


input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border 0.3s ease;
}

input:focus {
  border-color: var(--primary);
  outline: none;
}

.sending {
  display: none;
  margin-top: 15px;
  color: var(--primary);
}

/* Foto */
.foto-section {
  text-align: center;
  padding: 80px 20px;
}

.foto-img img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* Beneficios */
.beneficios {
  background: #fff;
  text-align: center;
  padding: 80px 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.cards div {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 25px;
  flex: 1 1 260px;
  transition: all 0.3s ease;
}

.cards div:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Testimonios */
.testimonios {
  background: linear-gradient(180deg, #f9fafc 0%, #f5f7fb 100%);
  padding: 80px 20px;
  text-align: center;
}

.testimonios h2 {
  color: var(--dark-bg);
}

.subtext {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 30px;
}

.testimonios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonio-card {
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 25px;
  max-width: 280px;
  transition: all 0.3s ease;
}

.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.testimonio-card strong {
  color: var(--primary);
}

footer {
  background: var(--soft-gray);
  padding: 30px 10px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* Botón flotante */
.cta-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(198,30,30,0.4);
  text-decoration: none;
  font-weight: 600;
  z-index: 900;
  transition: all 0.3s ease;
}

.cta-float:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
}



/* Íconos dentro de inputs — mejora incremental */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .icon {
  position: absolute;
  left: 14px;
  color: #999;
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Mantén tus paddings, solo agregamos espacio a la izquierda */
.input-group input {
  padding-left: 40px !important;
}

/* Al enfocar el input */
.input-group input:focus ~ .icon {
  color: var(--primary);
  transform: scale(1.15);
}

.input-group input {
  line-height: 1.4;
}
