/* ============================================
   ESTILOS PRINCIPALES - ACADEMIA ONLINE
   ============================================ */
   
/* ------------------------------
   RESET Y ESTILOS BASE
   ------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Tipografía elegante */
h1, h2, h3, h4, h5, .logo-font, .navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ------------------------------
   NAVBAR MODERNA CON EFECTO BLUR
   ------------------------------ */
.navbar {
    background: rgba(var(--bg-dark-rgb), 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--accent-primary-a25);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.7rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: 0.2s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* ------------------------------
   SECCIÓN SLIDER HERO
   ------------------------------ */
.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px var(--black-a30);
}

.slide-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px var(--black-a30);
}

/* Swiper personalización con colores corporativos */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: var(--accent-primary);
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
    background: var(--black-a30);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s;
    padding: 2em;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent-primary);
    color: white;
}

/* ------------------------------
   BOTONES Y COMPONENTES GLOBALES
   ------------------------------ */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-primary);
    color: white;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
    background: var(--gradient-dark);
    color: white;
}

.btn-outline-primary-custom {
    background: transparent;
    border: 2px solid var(--accent-primary);
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    color: var(--accent-primary);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-outline-primary-custom:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Badge de sección con colores corporativos */
.badge-accent {
    background: var(--accent-primary-a15);
    backdrop-filter: blur(4px);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    display: inline-block;
    border: 1px solid var(--accent-primary-a40);
}

/* Títulos de sección con gradiente personalizado */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(120deg, #fff, var(--accent-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ------------------------------
   TARJETAS DE CURSOS (TOP CURSOS)
   ------------------------------ */
.card-course {
    background: var(--bg-card);
    border: 1px solid var(--accent-primary-a20);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    height: 100%;
}

.card-course:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-card-dark), 0 0 0 1px var(--accent-primary-a30);
}

.course-img {
    position: relative;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.card-course:hover .course-img img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-body {
    padding: 1.5rem;
}

.rating i.fa-star {
    color: var(--color-star);
}

/* ------------------------------
   TARJETAS DE PROFESORES
   ------------------------------ */
.teacher-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--accent-primary-a20);
}

.teacher-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent-md);
}

.teacher-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-primary);
}

.social-icons a {
    color: var(--text-muted);
    margin: 0 8px;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--accent-primary);
}

/* ------------------------------
   SECCIÓN FAQ (ACORDEÓN)
   ------------------------------ */
.accordion-item {
    background: transparent !important;
    border: 1px solid var(--accent-primary-a25) !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-elevated) !important;
    color: var(--text-light) !important;
    font-weight: 600;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-elevated) !important;
    color: var(--accent-primary) !important;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-primary);
}

.accordion-body {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 1.25rem;
}

/* ------------------------------
   SECCIÓN CONTACTO
   ------------------------------ */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-primary-a25);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    border: none;
}

.btn-whatsapp:hover {
    background: var(--color-whatsapp-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-whatsapp);
}

/* Formulario con bordes corporativos */
.form-control {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--accent-primary-a30);
    color: var(--text-light) !important;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent-xl);
    background-color: var(--bg-dark);
}

/* ------------------------------
   FOOTER
   ------------------------------ */
footer {
    background: var(--gradient-footer);
    border-top: 1px solid var(--accent-primary-a20);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* ------------------------------
   MEDIA QUERIES (RESPONSIVE)
   ------------------------------ */
@media (max-width: 992px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .btn-whatsapp {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-slider-section {
        height: 70vh;
        min-height: 450px;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .course-body h4 {
        font-size: 1.1rem;
    }
}

/* ------------------------------
   UTILIDADES ADICIONALES
   ------------------------------ */
.bg-opacity-20 {
    opacity: .8;
}

.bg-elevated {
    background: var(--bg-elevated);
}

.rounded-4 {
    border-radius: 1rem;
}

/* Clase para badges con color secundario */
.badge-secondary {
    background: var(--accent-secondary-a20);
    color: var(--accent-secondary);
    border: 1px solid var(--accent-secondary-a40);
}

/* Clase para bordes con color corporativo */
.border-primary-custom {
    border-color: var(--accent-primary) !important;
}

/* Efecto de brillo sutil en hover para tarjetas */
.hover-glow:hover {
    box-shadow: var(--shadow-accent-sm);
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Estilos para el gradiente de fondo en secciones especiales */
.bg-gradient-custom {
    background: var(--gradient-hero);
}

/* Scrollbar personalizada con colores corporativos */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.text-muted{
    color: var(--text-muted) !important;
}

.navbar-brand:focus, .navbar-brand:hover {
    font-weight: 800;
    font-size: 1.7rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

/* ============================================
   ESTILOS PARA PLACEHOLDER DE INPUTS
   ============================================ */

/* Para todos los inputs, textareas y selects */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: var(--color-placeholder) !important;  /* Cambia este color por el que prefieras */
    opacity: 0.7;
    font-weight: 400;
}

/* Para navegadores WebKit (Chrome, Safari, Edge) */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: var(--color-placeholder) !important;
    opacity: 0.7;
}

/* Para Firefox */
input::-moz-placeholder,
textarea::-moz-placeholder {
    color: var(--color-placeholder) !important;
    opacity: 0.7;
}

/* Para Internet Explorer 10-11 */
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: var(--color-placeholder) !important;
    opacity: 0.7;
}

/* Para Microsoft Edge */
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
    color: var(--color-placeholder) !important;
    opacity: 0.7;
}

.bg-accent-primary{
    background-color: var(--accent-primary) !important;
}

.text-accent-primary{
    color: var(--accent-primary) !important;
}

.btn-outline-accent-primary{
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

/* ============================================
   ESTILOS PARA MODALES DE CURSOS
   ============================================ */

/* Fondo del modal con efecto blur */
.modal-backdrop {
    backdrop-filter: blur(8px);
    background-color: var(--black-a80);
}

/* Contenedor principal del modal */
.modal-dialog {
    max-width: 1200px;
    margin: 1.75rem auto;
}

/* Contenido del modal */
.modal-content {
    background: var(--gradient-modal);
    border: 1px solid var(--accent-primary-a30);
    border-radius: 28px !important;
    overflow: hidden;
    box-shadow: var(--shadow-card-lg);
}

/* Header del modal */
.modal-header {
    border-bottom: 1px solid var(--accent-primary-a20);
    padding: 1.5rem 2rem;
    background: var(--black-a20);
}

.modal-header .modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Body del modal */
.modal-body {
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* Personalización del scroll en el modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

/* Estilos para la columna izquierda */
.modal-body .col-lg-5 h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
}

.modal-body .col-lg-5 img {
    border: 1px solid var(--accent-primary-a30);
    transition: transform 0.3s ease;
}

.modal-body .col-lg-5 img:hover {
    transform: scale(1.02);
}

/* Secciones de información */
.modal-body .col-lg-5 h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent-primary-light);
}

/* Badges de categorías */
.modal-body .badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.modal-body .badge:hover {
    transform: translateY(-2px);
    background: var(--accent-primary) !important;
    color: white !important;
}

/* Tarjetas de profesores */
.modal-body .d-flex.align-items-center {
    background: var(--accent-primary-a05);
    padding: 0.75rem;
    border-radius: 16px;
    transition: all 0.2s;
}

.modal-body .d-flex.align-items-center:hover {
    background: var(--accent-primary-a10);
    transform: translateX(5px);
}

.modal-body .rounded-circle {
    border: 2px solid var(--accent-primary);
}

/* Precio */
.modal-body .fs-3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Estilos para la columna derecha - Acordeón de contenido */
.curso-contenido {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.curso-contenido::-webkit-scrollbar {
    width: 5px;
}

.curso-contenido::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
}

.curso-contenido::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

/* Acordeón personalizado */
.accordion-item {
    background: var(--gradient-accordion-item-dark) !important;
    border: 1px solid var(--accent-primary-a20) !important;
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.accordion-item:hover {
    border-color: var(--accent-primary-a50) !important;
}

.accordion-button {
    background: var(--gradient-accordion-btn-dark) !important;
    color: var(--text-light) !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-accordion-active-dark) !important;
    color: var(--accent-primary) !important;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-primary);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(0.7);
    opacity: 1;
}

/* Lista de capítulos */
.accordion-body ul {
    margin: 0;
    padding: 0;
}

.accordion-body ul li {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--accent-primary-a10);
    font-size: 0.9rem;
    transition: all 0.2s;
    list-style: none;
}

.accordion-body ul li:last-child {
    border-bottom: none;
}

.accordion-body ul li:hover {
    background: var(--accent-primary-a05);
    padding-left: 1.75rem;
}

.accordion-body ul li i {
    width: 24px;
    font-size: 0.9rem;
}

/* Badge de número de clases */
.accordion-button .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-primary) !important;
    color: white;
}

/* Botones de acción */
.modal-body .btn-primary-custom,
.modal-body .btn-outline-light {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 40px;
}

.modal-body .btn-primary-custom {
    background: var(--gradient-primary);
}

.modal-body .btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-lg);
}

.modal-body .btn-outline-light {
    border: 1px solid var(--white-a20);
}

.modal-body .btn-outline-light:hover {
    background: var(--white-a10);
    border-color: var(--white-a40);
}

/* Animación de entrada del modal */
.modal.fade .modal-dialog {
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.3s ease-out, opacity 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Responsive para móviles */
@media (max-width: 992px) {
    .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-lg-5,
    .modal-body .col-lg-7 {
        width: 100%;
    }
    
    .modal-body .col-lg-5 {
        margin-bottom: 1.5rem;
    }
    
    .curso-contenido {
        max-height: 50vh;
    }
    
    .accordion-button {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body ul li {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-header .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body .col-lg-5 h2 {
        font-size: 1.3rem;
    }
    
    .accordion-button .badge {
        font-size: 0.6rem;
    }
    
    .modal-body .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-body .rounded-circle {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
}


/* ============================================
   UTILIDADES DE TEMA (adaptan Bootstrap a ambos temas)
   ============================================ */

/* Texto base del tema (reemplaza text-light de Bootstrap) */
body.theme-dark,
body.theme-light {
    color: var(--text-light);
}

/* Botón de cierre del modal (X) adaptado a ambos temas */
.btn-close-theme {
    filter: var(--btn-close-filter, none);
    opacity: 0.8;
}
body.theme-dark .btn-close-theme {
    filter: invert(1) grayscale(100%) brightness(200%);
}
body.theme-light .btn-close-theme {
    filter: none;
}

/* Toggler del navbar (icono hamburguesa) */
.navbar-toggler-icon-custom {
    color: var(--text-light);
    stroke: var(--text-light);
}

/* Contenido del modal adaptado al tema */
.modal-content-theme {
    background: var(--gradient-modal);
    color: var(--text-light);
    border: 1px solid var(--accent-primary-a30);
}
.modal-header-theme {
    border-bottom: 1px solid var(--accent-primary-a20);
    color: var(--text-light);
}
.modal-body-theme {
    color: var(--text-light);
}

/* Texto del badge corporativo (reemplaza text-light) */
.badge-theme-text {
    color: var(--text-light) !important;
}

/* Bordes suaves adaptados al tema (reemplaza border-secondary) */
.border-theme {
    border-color: var(--accent-primary-a20) !important;
}

/* Botón outline "Cerrar" adaptado al tema (reemplaza btn-outline-light) */
.btn-outline-theme {
    background: transparent;
    border: 1px solid var(--accent-primary-a30);
    color: var(--text-light);
    border-radius: 40px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-outline-theme:hover {
    background: var(--accent-primary-a10);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Acordeón adaptado al tema */
.accordion-item-theme {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--accent-primary-a25) !important;
}
.accordion-button-theme {
    background: var(--bg-elevated) !important;
    color: var(--text-light) !important;
    font-weight: 600;
}
.accordion-button-theme:not(.collapsed) {
    background: var(--bg-elevated) !important;
    color: var(--accent-primary) !important;
    box-shadow: none;
}
.accordion-button-theme:focus {
    box-shadow: none;
    border-color: var(--accent-primary);
}
.accordion-button-theme::after {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}
body.theme-light .accordion-button-theme::after {
    filter: brightness(0) saturate(100%) invert(35%) sepia(80%) saturate(1500%) hue-rotate(220deg);
    opacity: 0.8;
}
.accordion-body-theme {
    background: var(--bg-dark);
    color: var(--text-muted);
}

/* Form controls adaptados al tema (reemplaza bg-dark text-light border-secondary) */
.form-control-theme {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--accent-primary-a30);
    color: var(--text-light) !important;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s;
}
.form-control-theme:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent-xl);
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
}
.form-control-theme::placeholder {
    color: var(--color-placeholder) !important;
    opacity: 0.7;
}

/* El texto "lead" del hero debe seguir siendo claro siempre (está sobre imagen oscura) */
.slide-content,
.slide-content h1,
.slide-content p,
.slide-content .lead {
    color: #fff !important;
}

/* Ajuste del svg del email/teléfono (ahora usa currentColor) */
.text-muted svg {
    color: var(--text-muted);
}