.hero-video{position:relative;width:100%;height:600px;overflow:hidden;}
.hero-video video{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);object-fit:cover;width:100%;height:100%;}
@media(max-width:768px){.hero-video{height:500px;}}
.overlay{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0.0);}
.hero-content h1 {
  font-size: 48px;
  font-weight: 700; /* negrita */
  color: #ffffff;
}
.hero-content p {
  font-size: 20px;
  font-weight: 400;
  color: #ffffff !important;

  text-shadow:
  0 3px 6px rgba(0,0,0,1),
  0 8px 25px rgba(0,0,0,1),
  0 15px 50px rgba(0,0,0,1),
  0 25px 80px rgba(0,0,0,0.9) !important;
}
.hero-content {
  position: absolute;
  bottom: 60px; /* distancia desde abajo */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: #ffffff;
  width: 100%;
  padding: 0 20px;
}
.btn-hero {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 14px 32px;
  border-radius: 999px;
  margin-top: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;

  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

/* 🔥 HOVER PRO */
.btn-hero:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.hero-video {
  position: relative;
  width: 98%;
  height: 600px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 15px;
}
@media (max-width: 768px) {
  .hero-video {
    width: 95%; /* mantenemos márgenes */
    height: 400px; /* 🔥 más bajo */
    margin: 20px auto;
    border-radius: 15px; /* 🔥 bordes también en móvil */
  }

}
html {
  scroll-behavior: smooth;
}
/* ==================================================
   HERO VIDEO HOME — ESTILOS FINALES
   ================================================== */

/* El ajuste de luminosidad y color ya está integrado en el vídeo optimizado. */
body#index .hero-video .video-hero {
  filter: none !important;
  opacity: 1 !important;
}

/* Oscurecer solamente la zona situada detrás del texto */
body#index .hero-video .overlay {
  opacity: 1 !important;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.06) 52%,
    transparent 82%
  ) !important;
}

/* Contenedor del texto */
body#index .hero-video .hero-content {
  width: calc(100% - 40px);
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;

  /* Sin recuadro */
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;

  /* Misma fuente que el resto de la web */
  font-family: inherit !important;
}

/* Título principal */
body#index .hero-video .hero-content h1 {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: clamp(28px, 2vw, 36px) !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  letter-spacing: -0.3px !important;
  text-wrap: balance;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 1),
    0 0 18px rgba(0, 0, 0, 0.65) !important;
}

/* Subtítulo */
body#index .hero-video .hero-content p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-family: inherit !important;
  font-size: clamp(15px, 1vw, 17px) !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;

  text-shadow:
    0 2px 7px rgba(0, 0, 0, 1),
    0 0 14px rgba(0, 0, 0, 0.6) !important;
}

/* Botón */
body#index .hero-video .btn-hero {
  margin-top: 22px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* ==================================================
   VERSIÓN MÓVIL
   ================================================== */

@media (max-width: 768px) {

  /* Sombreado ligero solo alrededor del texto */
  body#index .hero-video .overlay {
    background: radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.24) 0%,
      rgba(0, 0, 0, 0.07) 55%,
      transparent 85%
    ) !important;
  }

  /* Sin fondo ni recuadro */
  body#index .hero-video .hero-content {
    width: calc(100% - 30px);
    max-width: 380px;
    padding: 0 15px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  /* Mismo tamaño que los títulos móviles de la home */
  body#index .hero-video .hero-content h1 {
    margin-bottom: 8px !important;
    font-size: 23px !important;
    line-height: 1.16 !important;
    letter-spacing: -0.2px !important;
  }

  body#index .hero-video .hero-content p {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  body#index .hero-video .btn-hero {
    margin-top: 18px !important;
    padding: 11px 22px !important;
    font-size: 14px !important;
  }
}
/* Botón principal del vídeo */
body#index .hero-video .btn-hero {
    background: #0F50FF !important;
    color: #ffffff !important;
    border: 2px solid #0F50FF !important;
}

/* Al pasar el ratón */
body#index .hero-video .btn-hero:hover {
    background: #3D72FF !important;
    border-color: #3D72FF !important;
    color: #ffffff !important;
}