@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* =======================
   🔹 RESET & BASE
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    padding-top: 90px; /* espacio para header fijo */
}

/* =======================
   🔹 HEADER
======================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    z-index: 1000;
}
.header .logo h1 {
    font-size: 1.5rem;
    color: #fff;
}
.header .logo h1 span {
    color: red;
}
.header .logo p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Menú */
.menu-label { display: none; }
.menu-icon { width: 28px; height: 28px; }
#menu-toggle { display: none; }
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.navbar ul li a:hover { color: red; }

/* Botones Registro y Acceso */
.navbar ul li a.registro,
.navbar ul li a.acceso {
    background-color: #e60000;
    color: #fff;
}
.navbar ul li a.registro:hover,
.navbar ul li a.acceso:hover {
    background-color: #b30000;
    color: #fff;
}
.navbar ul li a.active {
    background-color: #e60000 !important;
    color: #000 !important;
}

/* =======================
   🔹 HERO
======================= */
.hero { 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background: #000;
    color: white;
    overflow: hidden;
    padding: 2rem;
}
.hero-text {
    position: relative;
    z-index: 2; 
    max-width: 40%;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8); 
}
.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 200;
    color: #fff;
}
.hero-text .resaltado {
    color: #ff1a1a;
    font-weight: 900;
}
.hero-text p { font-size: 1.1rem; margin-bottom: 20px; }

/* Botón */
.btn {
    display: inline-block;
    background-color: #e60000;
    color: #fff;              
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease;
    margin-bottom: 20px; 
}
.btn:hover { background-color: #b30000; }

/* Imagen Hero (abajo derecha, sin marca de agua) */
.hero-image {
    position: absolute;
    right: 50px;           /* Para asegurar que se vea bien desde el lado derecho */
    bottom: 0;
    transform: none;
    z-index: 1;
    border: 5px solid red; /* Contorno rojo intenso */
    border-radius: 15px;   /* Bordes redondeados */
    margin-top: 60px;      /* Incrementamos el margen superior para que no quede pegada a la línea roja */

}

.hero-image img {
    width: 700px;          /* Tamaño grande */
    height: auto;
    object-fit: cover;     /* Para que la imagen no se deforme */
}

/* Redes sociales */
.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}
.social-links a {
    color: #FFF;
    font-size: 22px;
    transition: color 0.3s ease;
}
.social-links a:hover { color: red; }

/* =======================
   🔹 MODALES PERSONALIZADOS
======================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: #000 !important;
    color: #fff !important;
    padding: 30px;
    border-radius: 10px;
    width: 350px;
    max-width: 90%;
    position: relative;
    font-family: 'Poppins', sans-serif;
}
.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}
.close { 
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
    color: #fff !important;
}

/* Formularios */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.formulario input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    color: #000;
    background-color: #fff;
}
.formulario input::placeholder { color: #000; }

/* Botones modal */
.btn-ingresar,
.btn-registrar {
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 0px red;
}

/* Ingresar */
.btn-ingresar {
    background-color: #f04e30;
    color: #fff;
    border: none;
}
.btn-ingresar:hover {
    background-color: #d43c1e;
    box-shadow: 0 0 12px red, 0 0 20px red, 0 0 30px red;
}

/* Registrar */
.btn-registrar {
    background-color: #fff;
    color: #f04e30;
    border: 2px solid #f04e30;
}
.btn-registrar:hover {
    background-color: #f04e30;
    color: #fff;
    border-color: #f04e30;
    box-shadow: 0 0 12px red, 0 0 20px red, 0 0 30px red;
}

/* Links de cambio de modal */
#modal-acceso p a,
#modal-registro p a {
    color: red;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
#modal-acceso p a:hover,
#modal-registro p a:hover {
    text-shadow: 0 0 8px red;
}

/* =======================
   🔹 CONTADORES
======================= */
.stats { display: flex; justify-content: space-around; padding: 40px 20px; background: #000; flex-wrap: wrap; text-align: center; border-top: 3px solid red; border-bottom: 3px solid red; }
.stat { flex: 1; min-width: 200px; padding: 20px; }
.stat h2 { font-size: 3rem; color: red; margin-bottom: 10px; font-weight: bold; }
.stat p { font-size: 1rem; color: #fff; letter-spacing: 1px; font-weight: 600; text-transform: uppercase; }
.counter { opacity: 0; transition: opacity 0.6s ease-in-out; }
.counter.visible { opacity: 1; }

/* =======================
   🔹 CURSOS
======================= */
.courses h2 { text-align: center; font-size: 2rem; margin-bottom: 0.3rem; }
.subtitle { display: block; text-align: center; color: #777; font-weight: 500; margin-bottom: 2rem; }
.course-list { display: flex; flex-direction: column; gap: 2.5rem; }
.course { display: flex; gap: 1.5rem; align-items: center; background-color: #000; border: 1px solid #eee; border-radius: 12px; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.course.reverse { flex-direction: row-reverse; }
.course-img img { width: 280px; height: auto; border-radius: 10px; object-fit: cover; }
.course-info { flex: 1; }
.course-info h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.course-info .highlight { font-weight: bold; color: #d32f2f; margin-bottom: 0.5rem; display: block; }
.buttons { margin-top: 1rem; }
.btn-red { background: #d32f2f; color: white; }
.btn-outline { border: 2px solid white; color: #000; margin-left: 0.5rem; }
.btn:hover { opacity: 0.85; }

/* =======================
   🔹 FOOTER
======================= */
/* Estilo general del pie de página */
.footer {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* Estilos para el título */
.footer h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    padding-bottom: 10px;
}

/* Línea separadora roja */
.footer-line {
    width: 80%;
    margin: 10px auto;
    border-bottom: 2px solid red; /* Línea roja */
}

/* Contenedor principal de la información */
.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 5px 20px; /* Menos espacio entre los elementos */
    margin-bottom: 10px;
}

/* Estilos para los enlaces sociales (a la izquierda) */
.social-links {
    display: flex;
    gap: 10px; /* Reducido el espacio entre íconos */
    justify-content: flex-start;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

.social-links a:hover {
    color: #ff0000; /* Cambia el color cuando pasas el cursor */
}

/* Estilos para la información de contacto (a la derecha) */
.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin: 5px 0;
}

/* Estilo para el texto de derechos reservados */
.footer-copy {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* =======================
   🔹 INTRO / VIDEO
======================= */
.intro-section { text-align: center; background-color: #000; color: white; padding: 40px 20px; }
.intro-section h2 { font-size: 1.5rem; margin-bottom: 20px; font-weight: normal; }
.metodo { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.video-container { position: relative; width: 100%; max-width: 900px; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* =======================
   🔹 COMUNIDAD
======================= */
.comunidad {
    text-align: center;
    padding: 40px;
    background-color: #000;
}

.comunidad h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.comunidad p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: #e60000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #b30000;
}

/* =======================
   🔹 TESTIMONIOS
======================= */
.testimonials-section h2 {
    text-transform: uppercase;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.testimonials-container {
    display: flex;
    flex-direction: row; /* En escritorio, los testimonios e imágenes estarán en fila */
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
    flex-wrap: nowrap; /* No se debe envolver en pantallas grandes */
}

.testimonial-image {
    flex-shrink: 0;
    width: 450px;  /* Tamaño de la imagen */
    height: 450px; /* Tamaño de la imagen */
    border: 5px solid red; /* Contorno rojo intenso */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 2; /* Asegura que la imagen esté encima del testimonio */
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.testimonial-slider-wrapper {
    flex: 1 1 500px;
    position: relative;
    height: auto;
    padding: 10px 0;
}

.testimonial {
    font-size: 2rem;
    color: #fff;
    text-align: left;
    position: absolute;
    top: 50%;
    left: 100%; /* Empieza fuera de la pantalla, para el efecto de deslizamiento */
    width: 100%;
    opacity: 0;
    display: none;  /* Solo se muestra el testimonio activo */
    transform: translate(-50%); /* Centrado */
    transition: transform 1s ease-in-out; /* Animación suave */
    z-index: 1; /* El testimonio está debajo de la imagen */
}

.testimonial.active {
    display: block; /* Hace visible el testimonio */
    opacity: 1;
    left: 50%; /* Posiciona el testimonio al centro */
}

.testimonial span {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    color: #ccc;
}

/* Botones de navegación */
.testimonial-buttons {
    text-align: center;
    margin-top: 20px;
}

.testimonial-buttons button {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    margin: 0 12px;
    color: #fff;
    transition: color 0.3s ease;
}

.testimonial-buttons button:hover {
    color: #c62828;
}

/* =======================
   🔹 GALERÍA
======================= */
.course-gallery-section { text-align: center; padding: 40px 20px; }
.course-gallery { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.course-gallery img { 
    width: 450px; 
    height: auto; 
    border: 5px solid red; /* Contorno rojo intenso */
    border-radius: 15px;   /* Bordes redondeados */
}
.gallery-button { text-align: center; margin-top: 20px; }
.btn-gallery { display: inline-block; background-color: #c62828; color: white; padding: 12px 25px; text-decoration: none; font-weight: bold; border-radius: 25px; transition: background-color 0.3s ease; }
.btn-gallery:hover { background-color: #a81d1d; }

/* =======================
   🔹 FAQ
======================= */
.faq-section { max-width: 800px; margin: 0 auto; padding: 50px 20px; text-align: center; }
.faq-section h2 { font-size: 2rem; font-weight: bold; margin-bottom: 30px; color: #c62828; }
.faq-item { text-align: left; margin-bottom: 15px; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.faq-question { background: none; border: none; font-size: 1.1rem; font-weight: bold; width: 100%; text-align: left; cursor: pointer; padding: 10px 0; color: #333; transition: color 0.3s ease; }
.faq-question:hover { color: #c62828; }
.faq-answer { display: none; padding: 10px 0; font-size: 1rem; color: #555; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =======================
   🔹 RESPONSIVE
======================= */

@media (max-width: 1024px) {
    .hero-text { max-width: 50%; }
    .hero-text h1 { font-size: 1.5rem; }
    .hero-image img { width: 500px; }
      .testimonials-container {
        flex-direction: row; /* Los testimonios estarán al lado de la imagen */
        justify-content: flex-start; /* Alinea la imagen a la izquierda */
    }
    .testimonial-image {
        order: 1;  /* La imagen está primero */
    }
    .testimonial-slider-wrapper {
        order: 2; /* El testimonio está a la derecha de la imagen */
    }
    .testimonial {
        font-size: 2rem;  /* Tamaño de texto adecuado para escritorio */
        text-align: left;
    }
}
/* Media Queries para pantallas medianas */
@media (max-width: 1024px) {
    .testimonial-image {
        width: 360px;
        height: 360px;
    }
    .testimonial {
        font-size: 1.6rem; /* Tamaño de texto adecuado para tabletas */
    }
}

@media (max-width: 768px) {
      .hero {
        flex-direction: column; /* Asegura que se apile el texto y la imagen */
        align-items: center;
    }
    .hero-text { max-width: 100%; z-index: 2; }
    .hero-text h1 { font-size: 1.6rem; }
    .hero-text p { font-size: 0.9rem; }
     .hero-image {
        position: relative; /* Cambia la posición a relativa */
        right: 0;
        bottom: 0;
        margin-top: 40px;    /* Espacio debajo del texto */
    }
     .hero-image img {
        width: 100%;         /* Asegura que la imagen ocupe el 100% del ancho en móviles */
        max-width: 400px;    /* Limita el tamaño máximo para que no quede demasiado grande */
    }
    .menu-label { 
        display: block; 
        cursor: pointer; 
    }
    .navbar { position: absolute; top: 70px; right: 0; background: #000; width: 200px; transform: translateX(100%); transition: transform 0.3s ease; padding: 15px 0; }
    .navbar ul { flex-direction: column; align-items: center; gap: 15px; }
    #menu-toggle:checked + .menu-label + .navbar { transform: translateX(0); }
    .course { flex-direction: column; text-align: center; }
    .course.reverse { flex-direction: column; }
    .course-img img { width: 100%; }
    .reverse-layout { flex-direction: column; }
    .testimonials-container {
        flex-direction: column; /* Apila los elementos en pantallas pequeñas */
        align-items: center; /* Centra los elementos */
    }
     .comunidad h2 {
        font-size: 1.5rem;
    }
    .testimonial-image {
        width: 100%;
        height: auto;
        max-width: 360px;
    }
    .testimonial {
        font-size: 1.4rem; /* Texto más pequeño para dispositivos móviles */
        text-align: center;
        width: 90%;
    }
   
     .testimonial-buttons button {
        font-size: 22px; /* Reducir el tamaño de los botones */
    }

    .testimonial.active {
        display: block;
        position: static;
        transform: none;
        opacity: 1;
    }
    .footer-right { text-align: center; margin-top: 10px; }
}

