/**
 * Custom CSS - Estilos personalizados adicionales
 * Eduma Theme
 * Este archivo contiene estilos personalizados que extienden el style.css principal
 * * PALETA DE COLORES APLICADA:
 * - Morado Principal: #0000CD (Similar al azul del logo)
 * - Amarillo/Oro: #FFC72C (Color del libro/sol del logo)
 */

/* ============================================
   HERO SLIDER STYLES
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hero-slide {
    display: none;
    animation: fadeIn 1s ease;
}

.hero-slide.active {
    display: block;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 0;
}

.hero-slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.8s ease;
}

.hero-slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #FFC72C; /* AMARILLO en el borde */
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #FFC72C; /* AMARILLO Activo */
    transform: scale(1.3);
}

/* ============================================
   COURSE GRID ENHANCEMENTS
   ============================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card-hover-effect {
    position: relative;
    overflow: hidden;
}

.course-card-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* Gradiente Morado más sutil al pasar el ratón */
    background: linear-gradient(90deg, transparent, rgba(0,0,205,0.2), transparent); 
    transition: left 0.5s ease;
}

.course-card:hover .course-card-hover-effect::before {
    left: 100%;
}

.course-difficulty {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.course-difficulty.beginner {
    background: linear-gradient(135deg, #2ecc71, #27ae60); /* Se mantiene el verde para "Beginner" (Principiante) */
    color: white;
}

.course-difficulty.intermediate {
    /* Morado para "Intermediate" */
    background: linear-gradient(135deg, #0000CD, #0000A0); 
    color: white;
}

.course-difficulty.advanced {
    background: linear-gradient(135deg, #e74c3c, #c0392b); /* Se mantiene el rojo para "Advanced" (Avanzado/Riesgo) */
    color: white;
}

/* ============================================
   TESTIMONIALS CAROUSEL
   ============================================ */
.testimonials-carousel {
    position: relative;
    padding: 50px 0;
}

.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    margin: 0 15px;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 100px;
    color: #0000CD; /* Morado en la comilla grande */
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-rating {
    color: #FFC72C; /* Amarillo/Oro para las estrellas de rating */
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.testimonial-info span {
    font-size: 14px;
    color: #7f8c8d;
}

/* ============================================
   STATS COUNTER
   ============================================ */
.stats-section {
    /* Gradiente morado/púrpura con base en el logo */
    background: linear-gradient(135deg, #4b0082 0%, #0000CD 100%); 
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,96C1248,75,1344,53,1392,42.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.stat-counter {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* ============================================
   PRICING TABLES
   ============================================ */
.pricing-table {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-table:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.pricing-table.featured {
    border: 3px solid #0000CD; /* Borde Morado para la tabla destacada */
}

.pricing-table.featured::before {
    content: 'Más Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #FFC72C; /* Etiqueta AMARILLA para "Más Popular" */
    color: #2c3e50; /* Texto oscuro para el fondo amarillo */
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: #0000CD; /* Precio en Morado */
    margin: 20px 0;
}

.pricing-price span {
    font-size: 1rem;
    color: #7f8c8d;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: #2ecc71; /* Se mantiene el verde para las características incluidas (éxito) */
}

.pricing-features li.disabled {
    opacity: 0.4;
}

.pricing-features li.disabled i {
    color: #e74c3c;
}

/* ============================================
   TEAM MEMBERS
   ============================================ */
.team-member {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.team-member-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.team-member-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.1);
}

.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.team-member:hover .team-member-overlay {
    opacity: 1;
}

.team-social-links {
    display: flex;
    gap: 10px;
}

.team-social-links a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0000CD; /* Íconos sociales Morados */
    transition: all 0.3s ease;
}

.team-social-links a:hover {
    background: #FFC72C; /* Fondo AMARILLO al pasar el ratón */
    color: #2c3e50; /* Texto oscuro sobre fondo amarillo */
    transform: translateY(-3px);
}

.team-member-info {
    padding: 20px;
    background: white;
    margin-top: -10px;
    border-radius: 0 0 12px 12px;
}

.team-member-info h4 {
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.team-member-info p {
    color: #7f8c8d;
    margin: 0;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.skill-bar {
    margin-bottom: 25px;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.skill-bar-progress {
    height: 10px;
    background: #ecf0f1;
    border-radius: 20px;
    overflow: hidden;
}

.skill-bar-fill {
    /* Gradiente Morado a Amarillo/Verde */
    background: linear-gradient(90deg, #0000CD, #FFC72C); 
    border-radius: 20px;
    transition: width 1s ease;
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0000CD; /* Línea central Morada */
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: #0000CD; /* Marcador Morado */
    border: 4px solid white;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px #0000CD;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-40px);
    background: #FFC72C; /* Fondo de fecha AMARILLO */
    color: #2c3e50; /* Texto oscuro sobre fondo amarillo */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   ACCORDION CUSTOM
   ============================================ */
.custom-accordion .accordion-item {
    border: 2px solid #ecf0f1;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background: white;
    font-weight: 600;
    padding: 20px;
    color: #2c3e50;
}

.custom-accordion .accordion-button:not(.collapsed) {
    /* Gradiente Morado/Amarillo para el botón de acordeón abierto */
    background: linear-gradient(135deg, #0000CD, #FFC72C); 
    color: white;
}

.custom-accordion .accordion-button::after {
    filter: brightness(0) invert(1);
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: none;
}

/* ============================================
   IMAGE GALLERY
   ============================================ */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* ============================================
   VIDEO PLAYER CUSTOM
   ============================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0,0,0,0.7);
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0000CD; /* Botón de Play en Morado */
    transition: transform 0.3s ease;
}

.video-overlay:hover .video-play-button {
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 992px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-date {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .hero-slide-title {
        font-size: 2rem;
    }
    
    .hero-slide-subtitle {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DARK MODE SUPPORT (Opcional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .dark-mode-enabled body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .dark-mode-enabled .card,
    .dark-mode-enabled .course-card,
    .dark-mode-enabled .pricing-table {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .dark-mode-enabled .navbar {
        background: #2a2a2a;
    }
}