/* Estilos para la página de detalle de curso */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Hero del curso */
.course-hero {
    padding: 120px 0 60px;
    background-color: var(--light-color);
}

.course-hero-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.course-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.course-breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.course-breadcrumb a:hover {
    color: var(--secondary-color);
}

.course-hero-text h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.course-hero-text p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 25px;
    margin-bottom: 10px;
}

.meta-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 8px;
}

.course-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.course-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    margin-right: 15px;
    margin-bottom: 10px;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 10px;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.course-hero-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.course-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Pestañas del curso */
.course-tabs {
    padding: 60px 0;
    background-color: #fff;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active:after {
    width: 100%;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Descripción general */
.course-overview {
    max-width: 800px;
    margin: 0 auto;
}

.overview-section {
    margin-bottom: 40px;
}

.overview-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.objectives-list, 
.requirements-list {
    list-style: none;
}

.objectives-list li, 
.requirements-list li {
    display: flex;
    margin-bottom: 15px;
}

.objectives-list li i, 
.requirements-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 0.95rem;
}

/* Plan de estudios */
.course-curriculum {
    max-width: 800px;
    margin: 0 auto;
}

.curriculum-info {
    margin-bottom: 30px;
    color: var(--text-light);
}

.module-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.module-header {
    background-color: var(--light-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.module-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.module-toggle i {
    transition: var(--transition);
}

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.module-item.active .module-content {
    max-height: 1000px;
}

.lessons-list {
    list-style: none;
    padding: 0 20px 20px;
}

.lessons-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.lessons-list li:last-child {
    border-bottom: none;
}

.lesson-icon {
    margin-right: 15px;
    color: var(--secondary-color);
}

/* Instructor */
.course-instructor {
    max-width: 800px;
    margin: 0 auto;
}

.instructor-profile {
    display: flex;
    margin-bottom: 40px;
}

.instructor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    border: 5px solid var(--light-color);
    flex-shrink: 0;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.instructor-title {
    color: var(--text-light);
    margin-bottom: 15px;
}

.instructor-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.instructor-rating i {
    color: var(--warning-color);
    margin-right: 3px;
}

.instructor-rating span {
    margin-left: 5px;
    color: var(--text-light);
}

.instructor-stats {
    display: flex;
}

.instructor-stats .stat-item {
    margin-right: 20px;
}

.instructor-bio h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.instructor-bio p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Opiniones */
.course-reviews {
    max-width: 800px;
    margin: 0 auto;
}

.reviews-summary {
    display: flex;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.rating-overall {
    flex: 1;
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid #eee;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-stars i {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.rating-breakdown {
    flex: 2;
    padding-left: 30px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-label {
    width: 100px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--warning-color);
}

.rating-percent {
    width: 50px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-light);
}

.review-item {
    display: flex;
    margin-bottom: 30px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 500;
    color: var(--primary-color);
}

.review-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.review-rating {
    margin-bottom: 10px;
}

.review-rating i {
    color: var(--warning-color);
}

.review-text {
    color: var(--text-light);
    line-height: 1.7;
}

.reviews-cta {
    text-align: center;
    margin-top: 30px;
}

/* Cursos relacionados */
.related-courses {
    padding: 60px 0;
    background-color: var(--light-color);
}

/* CTA de curso */
.course-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background-color: var(--light-color);
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .course-hero-content {
        grid-template-columns: 1fr;
    }
    
    .course-hero-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .reviews-summary {
        flex-direction: column;
    }
    
    .rating-overall {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    
    .rating-breakdown {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 50%;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .instructor-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .instructor-image {
        margin: 0 auto 20px;
    }
    
    .instructor-stats {
        justify-content: center;
    }
    
    .review-item {
        flex-direction: column;
    }
    
    .review-avatar {
        margin: 0 auto 15px;
    }
    
    .review-content {
        text-align: center;
    }
    
    .review-header {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .course-hero {
        padding: 100px 0 40px;
    }
    
    .course-hero-text h1 {
        font-size: 2rem;
    }
    
    .course-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .course-price {
        margin-bottom: 15px;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}