/*
 * TEMPLATE CLASSIC - CURSO STYLES (MEJORADO)
 * Diseño limpio y clásico para cursos
 * Compatible con Font Awesome 4.4.0 y variables CSS del sistema
 */

/* === VARIABLES CSS (USANDO LAS DEL SISTEMA) === */
:root {
    --classic-primary: var(--main-color2, #4b80ff);
    --classic-secondary: var(--main-color3, #698bf9);
    --classic-accent: var(--main-color6, #4b80ff);
    --classic-success: #28a745;
    --classic-warning: #ffc107;
    --classic-danger: #dc3545;
    --classic-light: var(--main-color4, #efebff);
    --classic-dark: var(--main-color9, #525252);
    --classic-gray: var(--main-color8, #999999);
    --classic-border: #e9ecef;
    --classic-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --classic-radius: 12px;
    --classic-radius-small: 8px;
    
    /* Variables específicas para mapas (colores del tenant) */
    --tenant-primary: var(--main-color2, #4b80ff);
    --tenant-primary-dark: var(--main-color6, #3d6bcc);
    --tenant-green: var(--main-color13, #075e54);
    --tenant-green-dark: #064239;
    --tenant-whatsapp: var(--main-color14, #25d366);
    --tenant-orange: var(--main-color15, #f77225);
}

/* === RESET Y BASE === */
* {
    box-sizing: border-box;
}

/* === CONTENEDOR PRINCIPAL === */
.classic-course-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* === NAVEGACIÓN === */
.classic-breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--classic-gray);
    border-bottom: 1px solid var(--classic-border);
    margin-bottom: 1.5rem;
}

.classic-breadcrumb a {
    color: var(--classic-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.classic-breadcrumb a:hover {
    color: var(--classic-secondary);
    text-decoration: underline;
}

.classic-breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--classic-gray);
}

/* === BANNER DE URGENCIA MEJORADO === */
.classic-urgency-banner {
    color: white;
    padding: 1.5rem;
    border-radius: var(--classic-radius-small);
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1000;
}

.classic-urgency-banner.animated {
    animation: urgencyPulse 2s infinite;
}

.classic-urgency-banner.top-urgency {
    position: relative;
}

.classic-urgency-banner.sticky-urgency {
    position: sticky;
    top: 0;
    z-index: 1001;
}

.classic-urgency-banner.bottom-urgency {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    margin-bottom: 0;
    border-radius: 0;
}

.classic-urgency-banner.floating-urgency {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 300px;
    max-width: calc(100vw - 40px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    animation: floatIn 0.5s ease-out;
    margin-bottom: 0;
}

.classic-urgency-banner.floating-urgency .urgency-content-classic {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.classic-urgency-banner.floating-urgency .urgency-text-classic {
    text-align: center;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Botón de cerrar para banners flotantes */
.urgency-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.urgency-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.classic-urgency-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: urgencyShimmer 3s infinite;
}

@keyframes urgencyShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.urgency-content-classic {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.urgency-icon-classic {
    font-size: 1.5em;
    animation: urgencyPulse 2s infinite;
}

.urgency-text-classic {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.urgency-text-classic strong {
    font-size: 1.2em;
    display: block;
}

@keyframes urgencyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.urgency-countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1em;
}

.countdown-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 6px;
    min-width: 50px;
}

.countdown-label {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.urgency-spots {
    margin-top: 0.5rem;
}

.spots-remaining {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* === LAYOUT PRINCIPAL === */
.classic-main-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 968px) {
    .classic-main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .classic-sidebar {
        order: -1;
    }
}

/* === CONTENIDO PRINCIPAL === */
.classic-content {
    background: white;
    border-radius: var(--classic-radius);
    box-shadow: var(--classic-shadow);
    overflow: hidden;
}

/* === HEADER DEL CURSO === */
.classic-course-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid var(--classic-border);
}

.classic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background: var(--classic-success);
    color: white;
}

.badge.featured {
    background: var(--classic-warning);
    color: #333;
}

.badge.offer {
    background: var(--classic-danger);
    color: white;
}

.badge.certificate {
    background: var(--classic-primary);
    color: white;
}

.classic-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--classic-dark);
    line-height: 1.2;
}

.classic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--classic-gray);
}

.classic-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.classic-meta i {
    color: var(--classic-primary);
    width: 16px;
}

.classic-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

/* === SECCIÓN DE MEDIA === */
.classic-media-section {
    padding: 0;
}

.classic-image {
    padding: 0;
}

.course-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* === VIDEO PLAYER === */
.classic-video-player {
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--classic-primary);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.video-play-button:hover {
    transform: scale(1.1);
    background: white;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    z-index: 1;
}

.video-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.video-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* === GALERÍA === */
.classic-gallery {
    padding: 2rem;
    border-top: 1px solid var(--classic-border);
}

.classic-gallery h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--classic-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.classic-gallery h3 i {
    color: var(--classic-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--classic-radius-small);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background: #28a745;
    color: white;
}

.badge.featured {
    background: #ffc107;
    color: #333;
}

.badge.offer {
    background: #dc3545;
    color: white;
}

.classic-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    line-height: 1.2;
}

.classic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.classic-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.classic-meta i {
    color: #007bff;
    width: 16px;
}

.classic-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

/* === IMAGEN PRINCIPAL === */
.classic-image {
    padding: 0;
}

.course-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* === SECCIONES === */
.classic-section {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.classic-section:last-child {
    border-bottom: none;
}

.classic-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.classic-section h2 i {
    color: #007bff;
    font-size: 1.2em;
}

/* === LISTA DE APRENDIZAJE === */
.learning-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.learning-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

.learning-item i {
    color: #28a745;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* === TEMARIO === */
.classic-temario {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.temario-item {
    border-bottom: 1px solid #eee;
}

.temario-item:last-child {
    border-bottom: none;
}

.module-header {
    padding: 1.25rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-header:hover {
    background: #e9ecef;
}

.module-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.module-header i {
    color: #007bff;
}

.toggle-icon {
    transition: transform 0.3s;
}

.module-header.active .toggle-icon {
    transform: rotate(180deg);
}

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--classic-bg-soft);
    border-radius: 0 0 8px 8px;
}

.module-content.active {
    max-height: 2000px; /* Incrementado para contenido más largo */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejorar el header del módulo */
.module-header {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.module-header:hover {
    background: var(--classic-bg-alt);
}

.module-header.active {
    background: var(--classic-primary);
    color: white;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.lesson-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-item i {
    color: #666;
    margin-right: 0.75rem;
}

.lesson-item small {
    color: #999;
    font-size: 0.85rem;
}

/* === TEXTO DE CONTENIDO === */
.content-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* === SIDEBAR === */
.classic-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.classic-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.classic-card h3 {
    background: #f8f9fa;
    margin: 0;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.classic-card h3 i {
    color: #007bff;
}

.instructor-info,
.classic-card > div:not(h3) {
    padding: 1.25rem;
}

.instructor-info h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
}

.instructor-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* === PRECIO === */
.classic-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-original {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.price-original span:first-child {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
}

.discount {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-current {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
}

.currency {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.savings {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    font-weight: 600;
    font-size: 0.95rem;
}

/* === ACCIONES DE COMPRA === */
.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-classic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-classic.primary {
    background: var(--tenant-primary, #007bff);
    color: white;
}

.btn-classic.primary:hover {
    background: var(--tenant-primary-dark, #0056b3);
    transform: translateY(-1px);
}

.btn-classic.success {
    background: var(--tenant-green, #28a745);
    color: white;
}

.btn-classic.success:hover {
    background: var(--tenant-green-dark, #1e7e34);
    transform: translateY(-1px);
}

.btn-classic.outline {
    background: transparent;
    color: var(--tenant-primary, #007bff);
    border: 2px solid var(--tenant-primary, #007bff);
}

.btn-classic.outline:hover {
    background: var(--tenant-primary, #007bff);
    color: white;
}

/* === PRECIO GRATIS === */
.price-free-badge {
    display: inline-block;
    background: var(--tenant-green, #28a745);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }
}

.free-course-description {
    text-align: center;
    color: var(--classic-text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

/* === BENEFICIOS === */
.course-benefits h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.course-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #666;
}

.course-benefits i {
    color: #28a745;
    width: 16px;
    flex-shrink: 0;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .classic-course-page {
        padding: 0.5rem;
    }
    
    .classic-course-header {
        padding: 1.5rem;
    }
    
    .classic-title {
        font-size: 1.8rem;
    }
    
    .classic-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .classic-section {
        padding: 1.5rem;
    }
    
    .learning-list {
        grid-template-columns: 1fr;
    }
    
    .amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .classic-title {
        font-size: 1.5rem;
    }
    
    .classic-section h2 {
        font-size: 1.3rem;
    }
    
    .amount {
        font-size: 1.8rem;
    }
}

/* === ANIMACIONES === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.classic-section {
    animation: fadeIn 0.5s ease-out;
}

/* === UTILIDADES === */
.text-center {
    text-align: center;
}

.text-muted {
    color: #666 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 1rem !important;
}

/* ===== HEADER BACKGROUND GRADIENT ===== */
.course-classic-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: var(--classic-gradient-light);
    border-radius: 50%;
    z-index: 1;
}

.course-classic-header > * {
    position: relative;
    z-index: 2;
}

/* ===== BREADCRUMB MEJORADO ===== */
.course-classic-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--classic-text-muted);
    margin-bottom: var(--classic-spacing);
    padding: 0.875rem 1.25rem;
    background: rgba(44, 90, 160, 0.06);
    border-radius: var(--classic-radius);
    border-left: 4px solid var(--classic-primary);
}

.breadcrumb-item a {
    color: var(--classic-primary);
    text-decoration: none;
    transition: var(--classic-transition);
    font-weight: 500;
    position: relative;
}

.breadcrumb-item a:hover {
    color: var(--classic-primary-dark);
    text-decoration: none;
}

.breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--classic-primary);
    transition: width 0.3s ease;
}

.breadcrumb-item a:hover::after {
    width: 100%;
}

.breadcrumb-separator {
    color: var(--classic-border);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== BADGES Y ETIQUETAS MODERNIZADOS ===== */
.course-classic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--classic-spacing);
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.125rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--classic-transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s;
}

.course-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.course-badge:hover::before {
    left: 100%;
}

.course-badge.new {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.course-badge.featured {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #2c3e50;
    font-weight: 700;
}

.course-badge.offer {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.course-badge.level {
    background: var(--classic-gradient);
    color: white;
}

.course-badge.type {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

/* ===== TÍTULO Y META INFORMACIÓN ===== */
.course-classic-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--classic-primary);
    margin: 1rem 0 1.5rem 0;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}

.course-classic-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--classic-gradient);
    border-radius: 2px;
}

.course-classic-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(44, 90, 160, 0.04);
    border-radius: var(--classic-radius);
    border: 1px solid var(--classic-border-light);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--classic-text-light);
    padding: 0.75rem;
    background: white;
    border-radius: var(--classic-radius-sm);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    transition: var(--classic-transition);
}

.course-meta-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.course-meta-item i {
    color: var(--classic-primary);
    font-size: 1.1rem;
    width: 18px;
    text-align: center;
}

.course-meta-item strong {
    color: var(--classic-text);
    font-weight: 600;
}

/* ===== GALERÍA DE MEDIOS MODERNIZADA ===== */
.course-classic-media {
    background: white;
    border-radius: var(--classic-radius-lg);
    box-shadow: var(--classic-shadow);
    margin-bottom: var(--classic-spacing-lg);
    overflow: hidden;
    border: 1px solid var(--classic-border-light);
}

.course-media-tabs {
    display: flex;
    background: var(--classic-bg-soft);
    border-bottom: 1px solid var(--classic-border);
    position: relative;
}

.course-media-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--classic-border);
}

.media-tab {
    flex: 1;
    padding: 1.125rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--classic-text-light);
    transition: var(--classic-transition);
    border-bottom: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.media-tab i {
    font-size: 1rem;
    opacity: 0.7;
    transition: var(--classic-transition);
}

.media-tab.active {
    color: var(--classic-primary);
    background: white;
    border-bottom-color: var(--classic-primary);
    position: relative;
    z-index: 2;
}

.media-tab.active i {
    opacity: 1;
    color: var(--classic-primary);
}

.media-tab:hover:not(.active) {
    background: rgba(44, 90, 160, 0.05);
    color: var(--classic-primary-light);
}

.media-tab:hover:not(.active) i {
    opacity: 1;
}

.media-tab-content {
    display: none;
    padding: 0;
    position: relative;
}

.media-tab-content.active {
    display: block;
    animation: fadeInContent 0.4s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTENIDO DE IMAGEN PRINCIPAL ===== */
.course-main-image,
.course-image-slider {
    height: 450px;
    overflow: hidden;
    position: relative;
    background: var(--classic-bg-soft);
}

.classic-main-image,
.course-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.classic-main-image:hover,
.course-image-slide img:hover {
    transform: scale(1.02);
}

/* ===== CONTROLES DE SLIDER MODERNIZADOS ===== */
.image-slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--classic-transition);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-dot.active,
.slider-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* ===== NAVEGACIÓN DE SLIDER ===== */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--classic-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* ===== VIDEO PLAYER MODERNIZADO ===== */
.course-video-player {
    position: relative;
    height: 450px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    text-align: center;
}

.video-placeholder i {
    font-size: 4rem;
    opacity: 0.7;
}

.video-placeholder p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* ===== TABS DE INFORMACIÓN MODERNIZADOS ===== */
.course-info-tabs {
    background: white;
    border-radius: var(--classic-radius-lg);
    box-shadow: var(--classic-shadow);
    margin-bottom: var(--classic-spacing-lg);
    overflow: hidden;
    border: 1px solid var(--classic-border-light);
}

.info-tabs-header {
    display: flex;
    background: var(--classic-bg-soft);
    border-bottom: 1px solid var(--classic-border);
    position: relative;
}

.info-tab-btn {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--classic-text-light);
    transition: var(--classic-transition);
    border-bottom: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-tab-btn i {
    font-size: 1.1rem;
    opacity: 0.7;
    transition: var(--classic-transition);
}

.info-tab-btn.active {
    color: var(--classic-primary);
    background: white;
    border-bottom-color: var(--classic-primary);
    position: relative;
    z-index: 2;
}

.info-tab-btn.active i {
    opacity: 1;
    color: var(--classic-primary);
}

.info-tab-btn:hover:not(.active) {
    background: rgba(44, 90, 160, 0.05);
    color: var(--classic-primary-light);
}

.info-tab-btn:hover:not(.active) i {
    opacity: 1;
}

/* Indicador de tab activo */
.info-tabs-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: var(--classic-gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

.info-tab-content {
    display: none;
    padding: var(--classic-spacing-lg);
    animation: fadeInContent 0.4s ease;
}

.info-tab-content.active {
    display: block;
}

/* ===== DESCRIPCIÓN MEJORADA ===== */
.course-description {
    line-height: 1.8;
    color: var(--classic-text);
    font-size: 1.05rem;
}

.course-description h3,
.course-description h4 {
    color: var(--classic-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.course-description ul,
.course-description ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.course-description li {
    margin: 0.5rem 0;
    position: relative;
}

.course-description ul li::marker {
    color: var(--classic-primary);
}

/* ===== TEMARIO ACCORDION MODERNIZADO ===== */
.course-temario-classic {
    margin: 2rem 0;
}

.course-temario-classic h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--classic-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.course-temario-classic h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--classic-gradient);
    border-radius: 2px;
}

.course-temario-classic h3 i {
    color: var(--classic-primary);
    font-size: 1.3rem;
}

.temario-accordion-classic {
    background: white;
    border-radius: var(--classic-radius);
    box-shadow: var(--classic-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--classic-border-light);
}

.temario-module-classic {
    border-bottom: 1px solid var(--classic-border-light);
    transition: var(--classic-transition);
}

.temario-module-classic:last-child {
    border-bottom: none;
}

.temario-module-classic:hover {
    background: var(--classic-bg-soft);
}

.module-header-classic {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--classic-transition);
    background: white;
    border-left: 4px solid transparent;
    user-select: none;
}

.module-header-classic:hover {
    background: var(--classic-bg-soft);
    border-left-color: var(--classic-primary-light);
}

.temario-module-classic.active .module-header-classic {
    background: rgba(44, 90, 160, 0.05);
    border-left-color: var(--classic-primary);
}

.module-info-classic h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--classic-text);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.module-info-classic h4 i {
    color: var(--classic-primary);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.module-meta-classic {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--classic-text-light);
}

.module-meta-classic span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.module-meta-classic i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.module-toggle-classic {
    color: var(--classic-text-light);
    font-size: 1.3rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(44, 90, 160, 0.1);
}

.temario-module-classic.active .module-toggle-classic {
    transform: rotate(180deg);
    color: var(--classic-primary);
    background: rgba(44, 90, 160, 0.15);
}

.module-description-classic {
    padding: 0 1.5rem 1rem 1.5rem;
    color: var(--classic-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.module-lessons-classic {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem 0 1.5rem;
    background: rgba(44, 90, 160, 0.02);
}

.temario-module-classic.active .module-lessons-classic {
    padding: 1.5rem;
    max-height: 800px;
}

/* ===== LECCIONES INDIVIDUALES ===== */
.lesson-item-classic {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--classic-radius-sm);
    margin-bottom: 0.75rem;
    transition: var(--classic-transition);
    background: white;
    border: 1px solid var(--classic-border-light);
}

.lesson-item-classic:last-child {
    margin-bottom: 0;
}

.lesson-item-classic:hover {
    background: var(--classic-bg-soft);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lesson-icon-classic {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 90, 160, 0.1);
    border-radius: 50%;
    color: var(--classic-primary);
}

.lesson-content-classic {
    flex: 1;
}

.lesson-content-classic h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--classic-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.lesson-content-classic p {
    font-size: 0.85rem;
    color: var(--classic-text-light);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.lesson-meta-classic {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--classic-text-muted);
}

.lesson-meta-classic span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lesson-meta-classic i {
    font-size: 0.75rem;
}

.lesson-free-classic {
    color: var(--classic-success) !important;
    font-weight: 600;
}

/* ===== RESUMEN DEL TEMARIO ===== */
.temario-summary-classic {
    background: var(--classic-gradient-soft);
    border-radius: var(--classic-radius);
    padding: 1.5rem;
    border: 1px solid var(--classic-border-light);
    margin-top: 1.5rem;
}

.summary-stats-classic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item-classic {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--classic-text);
    padding: 0.75rem;
    background: white;
    border-radius: var(--classic-radius-sm);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.stat-item-classic i {
    color: var(--classic-primary);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* ===== INSTRUCTOR Y TESTIMONIOS ===== */
.instructor-section-classic,
.testimonials-section-classic {
    background: white;
    border-radius: var(--classic-radius-lg);
    box-shadow: var(--classic-shadow);
    padding: var(--classic-spacing-lg);
    margin-bottom: var(--classic-spacing-lg);
    border: 1px solid var(--classic-border-light);
}

.instructor-card-classic {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.instructor-avatar-classic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--classic-primary);
}

.instructor-info-classic h4 {
    color: var(--classic-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.instructor-info-classic p {
    color: var(--classic-text-light);
    line-height: 1.6;
}

/* ===== SIDEBAR FLOTANTE CLÁSICO ===== */
.classic-sidebar-float {
    position: fixed;
    top: 50%;
    right: -320px;
    transform: translateY(-50%);
    width: 320px;
    background: white;
    box-shadow: var(--classic-shadow-lg);
    border-radius: var(--classic-radius-lg);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--classic-border-light);
    overflow: hidden;
}

.classic-sidebar-float.active {
    right: 20px;
}

.sidebar-toggle-classic {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--classic-gradient);
    color: white;
    border: none;
    width: 50px;
    height: 60px;
    border-radius: var(--classic-radius) 0 0 var(--classic-radius);
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--classic-shadow);
    transition: var(--classic-transition);
}

.sidebar-toggle-classic:hover {
    transform: translateY(-50%) scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .course-classic-wrapper {
        padding: 1rem;
    }
    
    .course-classic-header {
        padding: 1.5rem;
    }
    
    .course-classic-title {
        font-size: 1.75rem;
    }
    
    .course-classic-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-media-tabs {
        flex-direction: column;
    }
    
    .course-main-image,
    .course-image-slider,
    .course-video-player {
        height: 250px;
    }
    
    .info-tabs-header {
        flex-direction: column;
    }
    
    .module-header-classic {
        padding: 1rem;
    }
    
    .lesson-item-classic {
        padding: 0.75rem;
    }
    
    .classic-sidebar-float {
        width: 280px;
        right: -300px;
    }
    
    .classic-sidebar-float.active {
        right: 10px;
    }
    
    .summary-stats-classic {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .course-classic-wrapper {
        padding: 0.5rem;
    }
    
    .course-classic-header {
        padding: 1rem;
    }
    
    .course-classic-title {
        font-size: 1.5rem;
    }
    
    .instructor-card-classic {
        flex-direction: column;
        text-align: center;
    }
    
    .instructor-avatar-classic {
        width: 60px;
        height: 60px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes urgencyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-0 { padding: 0; }

/* ===== ACCESIBILIDAD ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== MODO OSCURO (OPCIONAL) ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --classic-text: #e9ecef;
        --classic-text-light: #adb5bd;
        --classic-bg: #212529;
        --classic-bg-alt: #343a40;
        --classic-bg-soft: #2c3237;
        --classic-border: #495057;
    }
}

/* ===== SISTEMA DE RESEÑAS MEJORADO ===== */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid var(--classic-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.reviews-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--classic-gradient);
}

.overall-rating {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.rating-stars .fa-star {
    color: #f39c12;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.rating-stars .fa-star-o {
    color: #bdc3c7;
    font-size: 1.5rem;
}

.rating-count {
    font-size: 1.1rem;
    color: #34495e;
    font-weight: 600;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 1rem;
}

.star-label {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star-label .fa-star {
    color: #f39c12;
    font-size: 0.9rem;
}

.progress-bar {
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid #d5dbdb;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 5px;
    transition: width 0.8s ease;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-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%); }
}

.rating-bar .count {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 700;
    text-align: right;
}

/* Lista de Reseñas */
.reviews-list {
    display: grid;
    gap: 1.5rem;
}

.review-card {
    background: #ffffff;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--classic-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--classic-primary);
}

.review-card:hover::before {
    transform: scaleX(1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--classic-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges de colores para avatares */
.reviewer-avatar.badge-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.reviewer-avatar.badge-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.reviewer-avatar.badge-purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.reviewer-avatar.badge-orange {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.reviewer-avatar.badge-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.reviewer-avatar.badge-teal {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.reviewer-avatar.badge-pink {
    background: linear-gradient(135deg, #e91e63, #ad1457);
}

.reviewer-avatar.badge-indigo {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.reviewer-details h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.review-rating {
    display: flex;
    gap: 0.15rem;
}

.review-rating .fa-star {
    color: #f39c12;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(243, 156, 18, 0.3);
}

.review-rating .fa-star-o {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
    background: #f8f9fa;
    padding: 0.35rem 0.85rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.review-content {
    line-height: 1.7;
}

.review-content p {
    margin: 0;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Paginación de Reseñas */
.reviews-pagination {
    text-align: center;
    margin-top: 2rem;
}

.reviews-pagination .btn-classic {
    padding: 0.85rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: var(--classic-primary);
    border: 2px solid var(--classic-primary);
}

.reviews-pagination .btn-classic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: var(--classic-primary);
    color: white;
}

.reviews-pagination .btn-classic i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.reviews-pagination .btn-classic:hover i {
    transform: translateY(2px);
}

/* Estados de vacío */
.reviews-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
    background: #ffffff;
    border-radius: 12px;
    border: 2px dashed #d5dbdb;
}

.reviews-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    color: #bdc3c7;
}

.reviews-empty h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.reviews-empty p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #7f8c8d;
}

/* Responsive Design para Reseñas */
@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .rating-number {
        font-size: 3rem;
    }
    
    .rating-bar {
        grid-template-columns: 70px 1fr 30px;
        gap: 0.75rem;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .reviewer-info {
        gap: 0.75rem;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .review-date {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .reviews-summary {
        padding: 1rem;
    }
    
    .rating-breakdown {
        gap: 0.75rem;
    }
    
    .review-card {
        padding: 0.75rem;
    }
    
    .reviewer-info {
        gap: 0.5rem;
    }
    
    .reviewer-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ========================================
   SECCIÓN DE MAPAS PARA CURSOS PRESENCIALES
   ======================================== */

.location-address {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-dark);
}

.location-address i {
    color: var(--primary-color);
    font-size: 16px;
}

.location-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    font-size: 14px;
    color: #856404;
}

.location-note i {
    color: #f39c12;
    font-size: 16px;
}

.course-location-maps {
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.course-location-maps h4 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-location-maps h4 i {
    color: var(--primary-color);
    font-size: 20px;
}

.location-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-location.waze {
    background: var(--tenant-green, #075e54);
    color: white;
    box-shadow: 0 3px 10px rgba(7, 94, 84, 0.25);
    border: 1px solid rgba(7, 94, 84, 0.3);
}

.btn-location.waze:hover {
    background: var(--tenant-green-dark, #064239);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 94, 84, 0.35);
    color: white;
    text-decoration: none;
}

.btn-location.waze:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(7, 94, 84, 0.4);
}

.btn-location.google-maps {
    background: var(--tenant-primary, #4b80ff);
    color: white;
    box-shadow: 0 3px 10px rgba(75, 128, 255, 0.25);
    border: 1px solid rgba(75, 128, 255, 0.3);
}

.btn-location.google-maps:hover {
    background: var(--tenant-primary-dark, #3d6bcc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 128, 255, 0.35);
    color: white;
    text-decoration: none;
}

.btn-location.google-maps:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(75, 128, 255, 0.4);
}

/* Focus states para accesibilidad */
.btn-location:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Iconos dentro de los botones */
.btn-location i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Estados de carga (opcional) */
.btn-location.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.btn-location.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-location i {
    font-size: 16px;
}

.embedded-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.embedded-map iframe {
    display: block;
    border-radius: 8px;
}

/* Responsive para mapas */
@media (max-width: 768px) {
    .location-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-location {
        width: 100%;
        min-width: auto;
    }
    
    .course-location-maps {
        padding: 15px;
    }
    
    .embedded-map iframe {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .course-location-maps h4 {
        font-size: 16px;
    }
    
    .btn-location {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .embedded-map iframe {
        height: 160px;
    }
}

/* === SIDEBAR FLOTANTE MÓVIL === */
.classic-sidebar-float {
    position: fixed;
    top: 50%;
    right: -300px;
    transform: translateY(-50%);
    width: 280px;
    max-height: 70vh;
    background: var(--classic-bg-secondary);
    border-radius: var(--classic-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: none;
}

.classic-sidebar-float.show {
    right: 20px;
}

.classic-sidebar-float nav {
    padding: 1.5rem;
}

.classic-sidebar-float ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.classic-sidebar-float li {
    margin-bottom: 0.5rem;
}

.classic-sidebar-float a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--classic-text);
    text-decoration: none;
    border-radius: var(--classic-radius-small);
    transition: all 0.3s ease;
    font-weight: 500;
}

.classic-sidebar-float a:hover {
    background: var(--classic-primary);
    color: white;
    transform: translateX(5px);
}

/* Mostrar solo en dispositivos móviles */
@media (max-width: 768px) {
    .classic-sidebar-float {
        display: block;
    }
}

/* Ocultar en desktop */
@media (min-width: 769px) {
    .classic-sidebar-float {
        display: none !important;
    }
}

/* Final del archivo CSS */
