/* ========== GLOBAL STYLES ========== */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* 馃敼 Encabezado */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: #FFA500;
}

.navbar-nav .nav-link {
    color: #fff !important;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: none;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(60%);
}

.hero-content {
    position: relative;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.8rem;
    margin: 20px 0;
}

.hero-content .btn {
    background-color: #FFD700;
    color: black;
    font-size: 1.5rem;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.hero-content .btn:hover {
    background-color: #FFA500;
}

/* ========== CARRUSEL ESTILOS MEJORADOS ========== */
.carousel-item img {
    width: 100%;
    height: 500px; /* Asegura una altura uniforme */
    object-fit: cover; /* Mantiene la proporción sin deformar */
}

/* Fondo oscuro translúcido en el texto del carrusel */
.carousel-caption.bg-overlay {
    background-color: rgba(0, 0, 0, 0.6); /* Filtro oscuro */
    padding: 15px;
    border-radius: 10px;
    width: 80%;
    text-align: center;
    bottom: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Asegura que los textos sean legibles */
.carousel-caption h5 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #ddd;
}

/* Controles del carrusel mejorados */
.carousel-control-prev-icon, 
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

/* Ajuste de botones */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .carousel-caption.bg-overlay {
        width: 90%;
        padding: 10px;
    }

    .carousel-caption h5 {
        font-size: 1.4rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-item img {
        height: 350px; /* Ajuste para pantallas pequeñas */
    }
}


/* ========== BENEFITS SECTION ========== */
.solar-benefits {
    padding: 80px 10%;
    text-align: center;
    background-color: #fff;
}

.solar-benefits h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #333;
}

/* 馃煝 Contenedor de Beneficios */
.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* 馃敼 Estilos de cada beneficio */
.solar-benefit-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 600px;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

.solar-benefit-card:hover {
    transform: scale(1.05);
}

.solar-benefit-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Alternar direcci贸n de los beneficios */
.solar-benefit-card.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.solar-benefit-card h3 {
    font-size: 1.6rem;
    color: #333;
    margin: 0;
}

.solar-benefit-card p {
    font-size: 1rem;
    color: #555;
    margin: 5px 0 0;
}
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1; /* Asegura que el video sea visible */
    visibility: visible;
}


/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
    padding: 80px 10%;
    background: #222;
    color: white;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    margin: 10px auto;
    max-width: 600px;
    transition: transform 0.3s ease-in-out;
}

.testimonial:hover {
    transform: scale(1.05);
}

.testimonial p {
    font-size: 1.2rem;
}

.testimonial span {
    font-style: italic;
    font-size: 1rem;
}
.testimonial img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========== CONTACT FORM ========== */
.contact-form {
    padding: 80px 10%;
    background: white;
    text-align: center;
}

.contact-form h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form .btn {
    background-color: #FF4500;
    color: white;
    font-size: 1.3rem;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.contact-form .btn:hover {
    background-color: #E63900;
}

/* ========== FOOTER ========== */
footer {
    background-color: black;
    color: white;
    padding: 20px;
    text-align: center;
}
/* ========== SUCCESS PAGE STYLES ========== */
.success-page {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 🔆 Fondo para la página de éxito de Paneles Solares */
.solar-success {
    background: url('../images/solar-background.jpg') no-repeat center center;
    background-size: cover;
}

/* 🎓 Fondo para la página de éxito de Cursos */
.courses-success {
    background: url('../images/courses-background.jpg') no-repeat center center;
    background-size: cover;
}

.success-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Capa borrosa */
    backdrop-filter: blur(8px); /* Efecto de desenfoque */
}

.confirmation-container {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.confirmation-content i {
    font-size: 50px;
    color: #28a745;
}

.confirmation-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.confirmation-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.confirmation-content .btn {
    background-color: #FFD700;
    color: black;
    font-size: 1.2rem;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.confirmation-content .btn:hover {
    background-color: #FFA500;
    color: white;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ========== BENEFITS SECTION ========== */
.courses-benefits {
    padding: 80px 10%;
    text-align: center;
    background-color: #fff;
}

.courses-benefits h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #333;
}

/* 📚 Contenedor de Beneficios */
.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* 🔧 Estilos de cada beneficio */
.courses-benefit-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 600px;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

.courses-benefit-card:hover {
    transform: scale(1.05);
}

.courses-benefit-card img {
    width: 120px;
    height: 120px;
    border-radius: 20%;
    object-fit: cover;
}

/* Alternar dirección de los beneficios */
.courses-benefit-card.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.courses-benefit-card h3 {
    font-size: 1.6rem;
    color: #333;
    margin: 0;
}

.courses-benefit-card p {
    font-size: 1rem;
    color: #555;
    margin: 5px 0 0;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
    padding: 80px 10%;
    background: #222;
    color: white;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    margin: 10px auto;
    max-width: 600px;
    transition: transform 0.3s ease-in-out;
}

.testimonial:hover {
    transform: scale(1.05);
}

.testimonial p {
    font-size: 1.2rem;
}

.testimonial span {
    font-style: italic;
    font-size: 1rem;
}
.testimonial img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.video-link {
    text-decoration: none;
    font-weight: bold;
    color: #FFD700; /* Color dorado */
    transition: color 0.3s ease-in-out;
}

.video-link:hover {
    color: #FFA500; /* Cambia a un naranja al pasar el mouse */
}

.video-link i {
    margin-left: 5px; /* Espacio entre el nombre y el icono */
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Animación de "temblor" tipo error */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s;
}
#anuncioRotativo {
    background: linear-gradient(135deg, #f9f9f9, #e0e0e0);
    border-left: 6px solid #007bff;
}


