  /* Estilos base */
  .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    color: #f4f6ff;
    background: white; /* Fondo blanco que se verá en los bordes */
  }

  .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
  }

  .video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%; /* Aumentamos el ancho para cubrir bordes */
    height: 120%; /* Aumentamos el alto para cubrir bordes */
    transform: translate(-50%, -50%) scale(1.1); /* Escalamos un 10% más */
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
  }

  .hero-content {
    max-width: 800px;
    padding: 20px;
    z-index: 1;
  }

  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .btn-primary {
    background-color: #f3c623;
    color: #5b7859;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
  }

  .btn-primary:hover {
    background-color: #5b7859;
    color: #f4f6ff;
  }

  .btn-secondary {
    background-color: #f4f6ff;
    color: #5b7859;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #5b7859;
  }

  .btn-secondary:hover {
    background-color: transparent;
    color: #f4f6ff;
    border: 2px solid #f4f6ff;
  }

 /* Media Queries para móviles */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    overflow: hidden;
  }
  
  .video-background iframe {
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%) scale(1.2);
  }
  
  .hero-content {
    width: 90%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Asegura que todo el contenido esté centrado */
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center; /* Centrado adicional del texto */
  }
  
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: center; /* Centrado adicional del texto */
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center; /* Centra los botones horizontalmente */
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 250px;
    padding: 12px 20px;
    margin: 0 auto; /* Doble seguridad para centrado */
    display: block; /* Necesario para que funcione margin auto */
  }
}

@media (max-width: 480px) {
  .video-background iframe {
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%) scale(1.3);
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
    max-width: 220px; /* Un poco más estrecho en pantallas muy pequeñas */
  }
}