/*
 * TEMPLATE MODERN - CSS CORREGIDO SIGUIENDO REGLAS DE HUBBDISITE
 * Compatible con Font Awesome 4.4.0 y sistema de carrito unificado
 * Fixes: Acordeón, controles de carrito, badges con emojis
 */

/* ========================================
   VARIABLES CSS DINÁMICAS DEL SISTEMA
======================================== */
:root {
    --modern-primary: var(--main-color2, #3498db);
    --modern-secondary: var(--secondary-color, #2c3e50);
    --modern-accent: var(--accent-color, #e74c3c);
    --modern-success: var(--success-color, #27ae60);
    --modern-warning: var(--warning-color, #f39c12);
    --modern-text: var(--text-color, #2c3e50);
    --modern-text-light: #6b7280;
    --modern-bg: #ffffff;
    --modern-bg-alt: #f9fafb;
    --modern-border: #e5e7eb;
    --modern-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --modern-shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --modern-radius: 12px;
    --modern-radius-sm: 6px;
    --modern-transition: all 0.3s ease;
}

/* ========================================
   BANNER DE URGENCIA MEJORADO
   ======================================== */
.modern-urgency-banner {
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.modern-urgency-banner.animated {
    animation: urgencyPulse 2s infinite;
}

.modern-urgency-banner.top-urgency {
    position: relative;
}

.modern-urgency-banner.sticky-urgency {
    position: sticky;
    top: 0;
    z-index: 1001;
}

.modern-urgency-banner.bottom-urgency {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    margin-bottom: 0;
    border-radius: 0;
}

.modern-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;
}

.modern-urgency-banner.floating-urgency .urgency-content-modern {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.modern-urgency-banner.floating-urgency .urgency-text-modern {
    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);
}

.modern-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-modern {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.urgency-icon-modern {
    font-size: 1.5em;
    animation: urgencyPulse 2s infinite;
}

.urgency-text-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.urgency-text-modern strong {
    font-size: 1.2em;
    display: block;
}

.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-timer-simple {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* Responsive para banner de urgencia */
@media (max-width: 768px) {
    .modern-urgency-banner.floating-urgency {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        top: auto;
        width: auto;
        max-width: none;
        transform: none;
        border-radius: 8px;
    }
    
    .urgency-content-modern {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .urgency-countdown {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-part {
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 1.4rem;
        padding: 0.3rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .modern-urgency-banner {
        padding: 1rem;
    }
    
    .urgency-text-modern strong {
        font-size: 1rem;
    }
    
    .urgency-countdown {
        gap: 0.3rem;
    }
    
    .countdown-number {
        font-size: 1.2rem;
        padding: 0.2rem;
        min-width: 35px;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

/* ========================================
   HERO SECTION - ULTRA MODERN
   ======================================== */
.course-modern-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--modern-text);
    background: var(--modern-bg);
}

.course-modern-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        var(--modern-primary) 0%, 
        var(--modern-primary-dark) 35%, 
        var(--modern-secondary) 100%);
    overflow: hidden;
    padding: 2rem 0;
}

/* Animación de partículas de fondo */
.course-modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.hero-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: brightness(0.4) !important;
    z-index: 1 !important;
}

.hero-gradient-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--modern-primary) 0%, 
        var(--modern-primary-dark) 35%, 
        var(--modern-secondary) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.95) 0%, 
        rgba(79, 70, 229, 0.95) 35%, 
        rgba(236, 72, 153, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badges del curso - USANDO COLORES DEL TENANT */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(20px);
    transition: var(--modern-transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
}

.modern-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.25);
}

.modern-badge.new {
    background: linear-gradient(135deg, var(--modern-success), #1ea268);
    border-color: var(--modern-success);
    color: white;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.3);
}

.modern-badge.featured {
    background: linear-gradient(135deg, var(--modern-warning), #d4ac0d);
    border-color: var(--modern-warning);
    color: white;
    box-shadow: 0 8px 32px rgba(243, 156, 18, 0.3);
}

.modern-badge.offer {
    background: linear-gradient(135deg, var(--modern-accent), #c0392b);
    border-color: var(--modern-accent);
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.4);
}

.modern-badge.free {
    background: linear-gradient(135deg, var(--modern-success), #1ea268);
    border-color: var(--modern-success);
    color: white;
    animation: freeGlow 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes freeGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(39, 174, 96, 0.3); }
    50% { box-shadow: 0 12px 40px rgba(39, 174, 96, 0.5); }
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 900;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.category-modern,
.level-modern,
.type-modern {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(15px);
    transition: var(--modern-transition);
    text-transform: capitalize;
}

.category-modern:hover,
.level-modern:hover,
.type-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: var(--modern-transition);
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.meta-item i {
    font-size: 1.3rem;
    opacity: 0.95;
    width: 20px;
    text-align: center;
}

/* ========================================
   HERO CTA SECTION - ULTRA MODERN
======================================== */
.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.price-hero {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: var(--modern-radius);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.price-hero-old {
    font-size: 1.4rem;
    text-decoration: line-through;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.price-hero-current {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.currency-hero {
    font-size: 1.8rem;
    font-weight: 600;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--modern-radius);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--modern-transition);
    box-shadow: var(--modern-shadow);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--modern-shadow-lg);
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--modern-warning) 0%, #f97316 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-btn.primary:hover {
    background: linear-gradient(135deg, #f97316 0%, var(--modern-warning) 100%);
}

.hero-btn.success {
    background: linear-gradient(135deg, var(--modern-success) 0%, #059669 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-btn.success:hover {
    background: linear-gradient(135deg, #059669 0%, var(--modern-success) 100%);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   URGENCIA FLOTANTE
======================================== */
.modern-urgency-float {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: urgencyPulse 2s infinite;
}

.urgency-modern-content {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.urgency-bolt {
    animation: bounce 1s infinite;
}

/* ========================================
   NAVEGACIÓN STICKY
======================================== */
.modern-nav-sticky {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-sticky-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-item {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* ========================================
   CONTENIDO PRINCIPAL
======================================== */
.modern-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
}

/* ========================================
   NAVEGACIÓN STICKY MODERNA
======================================== */
.modern-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--modern-border);
    margin-bottom: 3rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-sticky-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
}

.nav-item {
    padding: 1.2rem 0;
    text-decoration: none;
    color: var(--modern-text-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: var(--modern-transition);
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--modern-primary);
    border-bottom-color: var(--modern-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--modern-primary), var(--modern-secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* ========================================
   CONTENIDO PRINCIPAL ULTRA MODERNO
======================================== */
.modern-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.modern-main-content {
    min-width: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    margin-bottom: 5rem;
    scroll-margin-top: 120px;
    opacity: 0;
    animation: fadeInSection 0.6s ease-out forwards;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--modern-primary), var(--modern-secondary));
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--modern-text);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 0;
    background: linear-gradient(135deg, var(--modern-text) 0%, var(--modern-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header i {
    color: var(--modern-primary);
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--modern-primary), var(--modern-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SECCIÓN OVERVIEW MODERNA
======================================== */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.overview-main {
    background: var(--modern-bg);
    padding: 3rem;
    border-radius: var(--modern-radius);
    box-shadow: var(--modern-shadow);
    border: 1px solid var(--modern-border);
}

.description-modern {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--modern-text-light);
    margin-bottom: 3rem;
    text-align: justify;
}

.learning-modern h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--modern-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.learning-modern h3 i {
    color: var(--modern-accent);
}

.learning-grid {
    display: grid;
    gap: 1.5rem;
}

.learning-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: var(--modern-radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--modern-transition);
}

.learning-item:hover {
    transform: translateX(10px);
    box-shadow: var(--modern-shadow);
    border-color: var(--modern-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.learning-item i {
    color: var(--modern-success);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.learning-item span {
    font-size: 1rem;
    color: var(--modern-text);
    font-weight: 500;
    line-height: 1.6;
}

/* ========================================
   TEMARIO MODERNO
======================================== */

.learning-item i {
    color: #27ae60;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.overview-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 2rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   CONTENIDO MULTIMEDIA
======================================== */
.media-modern-container {
    display: grid;
    gap: 3rem;
}

.videos-modern h3,
.gallery-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.videos-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-modern-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.video-modern-card:hover {
    transform: translateY(-5px);
}

.video-modern-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-modern-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-overlay i {
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-modern-info {
    padding: 1.5rem;
}

.video-modern-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.video-modern-info p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   GALERÍA MODERNA
======================================== */
.gallery-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-modern-item {
    position: relative;
    padding-bottom: 70%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-modern-item:hover {
    transform: scale(1.05);
}

.gallery-modern-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modern-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

/* ========================================
   MATERIALES Y REQUISITOS
======================================== */
.requirements-materials-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.materials-modern,
.requirements-modern {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f3f4;
}

.materials-modern h3,
.requirements-modern h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.materials-content-modern,
.requirements-content-modern {
    color: #5a6c7d;
    line-height: 1.8;
}

/* ========================================
   INSTRUCTOR MODERNO
======================================== */
.instructor-modern {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
}

.instructor-modern-avatar {
    text-align: center;
}

.instructor-modern-avatar img,
.instructor-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
}

.instructor-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    font-size: 4rem;
}

.instructor-modern-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.instructor-modern-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.instructor-badge {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instructor-modern-bio {
    color: #5a6c7d;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.instructor-modern-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.instructor-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-weight: 600;
}

.instructor-stat i {
    color: #667eea;
    font-size: 1.2rem;
}

/* ========================================
   UBICACIÓN MODERNA
======================================== */
.location-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.location-modern-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.location-modern-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.location-btn.waze {
    background: #33ccff;
    color: white;
}

.location-btn.maps {
    background: #4285f4;
    color: white;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.location-modern-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 15px;
}

/* ========================================
   RESEÑAS MODERNAS
======================================== */
.reviews-modern {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.reviews-summary {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f3f4;
}

.rating-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rating-number {
    font-size: 4rem;
    font-weight: 900;
    color: #f39c12;
}

.rating-stars {
    display: flex;
    gap: 0.3rem;
}

.rating-stars i {
    font-size: 1.5rem;
    color: #f39c12;
}

.rating-count {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.reviews-list {
    display: grid;
    gap: 2rem;
}

.review-card {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .avatar-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background:  var(--modern-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} */

.reviewer-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.review-rating {
    display: flex;
    gap: 0.2rem;
}

.review-rating i {
    color: #f39c12;
    font-size: 1rem;
}

.review-card p {
    color: #5a6c7d;
    line-height: 1.7;
    font-style: italic;
}

/* ========================================
   SIDEBAR FLOTANTE - MEJORADO
======================================== */
.modern-sidebar-float {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 320px;
    z-index: 1000;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1200px) {
    .modern-main-content {
        margin-left: 0 !important;
        max-width: none !important;
    }
    
    .modern-content-wrapper {
        margin-left: 0 !important;
    }
}

@media (max-width: 1200px) {
    .modern-content-wrapper {
        margin-left: 0 !important;
    }
}

/* Toggle button para sidebar flotante móvil */
.float-toggle {
    display: none; /* Oculto por defecto, se muestra en móvil */
}

.float-content {
    /* Contenido por defecto visible en desktop */
    display: block;
}

.sidebar-float-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.course-modern-purchase {
    margin-bottom: 0;
}

.price-modern-container {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.price-modern-original {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.original-price-modern {
    font-size: 18px;
    color: #6b7280;
    text-decoration: line-through;
}

.discount-modern {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.price-modern-current {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price-modern {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.currency-modern {
    font-size: 18px;
    color: #6b7280;
}

.savings-modern {
    margin-top: 8px;
    color: #059669;
    font-weight: 600;
    font-size: 14px;
}

.purchase-actions-modern {
    margin: 20px 0;
}

.btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
    width: 100%;
}

.btn-modern.primary {
    background: #3b82f6;
    color: white;
}

.btn-modern.primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-modern.success {
    background: #059669;
    color: white;
}

.btn-modern.outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-modern.outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.course-features-sidebar {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #4b5563;
    font-size: 14px;
}

.feature-item i {
    color: #6b7280;
    width: 16px;
    text-align: center;
}

.price-modern-original {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.original-price-modern {
    font-size: 1.3rem;
    text-decoration: line-through;
    color: #95a5a6;
}

.discount-modern {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.price-modern-current {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.current-price-modern {
    font-size: 3rem;
    font-weight: 900;
    color: #2c3e50;
}

.currency-modern {
    font-size: 1.3rem;
    color: #7f8c8d;
    font-weight: 600;
}

.savings-modern {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ========================================
   CONTROLES DE CARRITO CORREGIDOS - HUBBDISITE
======================================== */
.modern-cart {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* CORRECCIÓN: Clases estándar del carrito */
.cartbutton {
    border: 2px solid var(--modern-primary) !important;
    background: var(--modern-primary) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: var(--modern-radius-sm) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--modern-transition) !important;
    font-size: 14px !important;
    min-width: 35px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cartbutton:hover {
    background: #2980b9 !important;
    border-color: #2980b9 !important;
    transform: translateY(-1px) !important;
}

/* Campos de cantidad */
.qty,
.kitqty {
    width: 50px !important;
    text-align: center !important;
    background: white !important;
    color: var(--modern-text) !important;
    border: 2px solid var(--modern-border) !important;
    border-radius: var(--modern-radius-sm) !important;
    padding: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin: 0 5px !important;
}

.qty:focus,
.kitqty:focus {
    outline: none !important;
    border-color: var(--modern-primary) !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

/* Botones de eliminar */
.cartdelete,
.kitdelete {
    background: var(--modern-accent) !important;
    border-color: var(--modern-accent) !important;
}

.cartdelete:hover,
.kitdelete:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}

/* Contenedor de controles en sidebar */
.course-cart-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 15px 0;
}

/* Contenedor de controles en hero */
.hero-cart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-cart-controls .cartbutton {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.hero-cart-controls .cartbutton:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.hero-cart-controls .qty,
.hero-cart-controls .kitqty {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--modern-text) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Estilos legacy mantenidos por compatibilidad */
.modern-quantity-controls {
    display: flex;
    border: 2px solid var(--modern-primary);
    border-radius: 50px;
    overflow: hidden;
}

.modern-cart-btn {
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modern-cart-btn.minus,
.modern-cart-btn.plus {
    width: 50px;
    height: 50px;
    background: var(--modern-primary);
    color: white;
}

.modern-cart-btn.minus:hover,
.modern-cart-btn.plus:hover {
    background: #2980b9;
}

.modern-qty {
    border: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--modern-text);
    background: white;
    width: 60px;
    padding: 0 0.5rem;
}

.modern-cart-btn.delete {
    background: var(--modern-accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
}

.modern-cart-btn.primary {
    background: linear-gradient(45deg, var(--modern-primary), #2980b9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-cart-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ========================================
   GARANTÍAS MODERNAS
======================================== */
.modern-guarantees {
    display: grid;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f3f4;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #5a6c7d;
    font-weight: 600;
}

.guarantee-item i {
    color: #27ae60;
    font-size: 1.2rem;
}

/* ========================================
   MODAL DE VIDEO
======================================== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.video-modal-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-modal-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   ANIMACIONES
======================================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes urgencyPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .modern-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modern-sidebar-float {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        z-index: 1000;
        top: auto;
        left: auto;
        max-height: none;
        overflow: visible;
    }
    
    .sidebar-float-content {
        border-radius: 50%;
        width: 60px;
        height: 60px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        background: var(--modern-primary);
        cursor: pointer;
    }
    
    .float-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }
    
    .float-content {
        display: none;
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 320px;
        max-width: calc(100vw - 40px);
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: 20px;
    }
    
    .float-content.show {
        transform: translateY(0);
        opacity: 1;
    }
    
    .course-modern-purchase {
        margin-bottom: 0;
    }
    
    .price-modern-container {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .purchase-actions-modern {
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .btn-modern {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .course-features-sidebar {
        gap: 8px;
    }
    
    .feature-item {
        padding: 8px 0;
        font-size: 13px;
    }
    
    /* Navegación flotante en móvil */
    .float-nav {
        border-top: 1px solid var(--modern-border);
        padding-top: 15px;
        margin-top: 15px;
    }
    
    .float-nav h6 {
        color: var(--modern-text);
        font-size: 13px;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .float-nav-item {
        display: block;
        padding: 8px 0;
        color: var(--modern-primary);
        text-decoration: none;
        font-size: 13px;
        border-bottom: 1px solid var(--modern-border);
        transition: color 0.3s ease;
    }
    
    .float-nav-item:last-child {
        border-bottom: none;
    }
    
    .float-nav-item:hover,
    .float-nav-item.active {
        color: var(--modern-accent);
        font-weight: 600;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .requirements-materials-modern {
        grid-template-columns: 1fr;
    }
    
    .instructor-modern {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .location-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-sticky-content {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 1rem;
    }
    
    .nav-sticky-content::-webkit-scrollbar {
        height: 3px;
    }
    
    .nav-sticky-content::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 3px;
    }
    
    .videos-modern-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-modern-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .modern-content-wrapper {
        padding: 2rem 1rem;
    }
    
    .modern-urgency-float {
        position: static;
        margin: 1rem;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .current-price-modern {
        font-size: 2.5rem;
    }
    
    .location-modern-actions {
        flex-direction: column;
    }
    
    .instructor-modern-stats {
        justify-content: center;
    }
}

/* ========================================
   VIDEO PROMOCIONAL - MODERN
======================================== */
.course-modern-promo-video {
    background: white;
    padding: 60px 2rem;
    margin: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.promo-video-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.promo-video-container h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.promo-video-container h2 i {
    color: #667eea;
    font-size: 2.2rem;
}

.video-promo-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16/9;
}

.modern-video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}

.modern-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-promo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.modern-video-thumb:hover img {
    transform: scale(1.05);
}

.modern-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-video-thumb:hover .modern-video-overlay {
    opacity: 1;
}

.play-button-modern {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-button-modern:hover {
    transform: scale(1.1);
    background: white;
}

.play-button-modern i {
    font-size: 2rem;
    color: #667eea;
    margin-left: 4px; /* Ajuste visual para centrar el icono de play */
}

.video-info-modern {
    text-align: center;
    color: white;
}

.video-info-modern h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.video-info-modern p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.video-error-modern {
    padding: 40px;
    text-align: center;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.video-error-modern i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.video-error-modern p {
    margin: 0;
    font-size: 1.1rem;
}

/* Responsive para video promocional */
@media (max-width: 768px) {
    .course-modern-promo-video {
        padding: 40px 0;
    }
    
    .promo-video-container {
        padding: 0 20px;
    }
    
    .promo-video-container h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .play-button-modern {
        width: 60px;
        height: 60px;
    }
    
    .play-button-modern i {
        font-size: 1.5rem;
    }
    
    .video-info-modern h4 {
        font-size: 1.2rem;
    }
    
    .video-info-modern p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .video-promo-wrapper {
        border-radius: 12px;
    }
    
    .promo-video-container h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   CONTENIDO MULTIMEDIA ADICIONAL
======================================== */

/* Videos adicionales */
.videos-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-modern-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.video-modern-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.video-modern-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-play-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;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 3rem;
}

.video-modern-thumbnail:hover .video-play-overlay {
    opacity: 1;
}

.video-modern-thumbnail:hover img {
    transform: scale(1.05);
}

.video-modern-info {
    padding: 1.5rem;
}

.video-modern-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.video-modern-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Galería de imágenes */
.gallery-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-modern-item {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-modern-item:hover {
    transform: scale(1.02);
}

.gallery-modern-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-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;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.gallery-modern-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-modern-item:hover img {
    transform: scale(1.1);
}

/* Material y requisitos */
.requirements-materials-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.materials-modern, .requirements-modern {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.materials-modern h3, .requirements-modern h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.materials-content-modern, .requirements-content-modern {
    color: #666;
    line-height: 1.6;
}

/* Responsivo adicional */
@media (max-width: 768px) {
    .videos-modern-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-modern-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.8rem;
    }
    
    .requirements-materials-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-modern-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .materials-modern, .requirements-modern {
        padding: 1.5rem;
    }
}

/* ========================================
   TEMARIO DEL CURSO - ACORDEÓN CORREGIDO
======================================== */
.course-temario-modern {
    margin: 3rem 0;
}

.course-temario-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--modern-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-temario-modern h3 i {
    color: var(--modern-primary);
}

/* ACORDEÓN CORREGIDO */
.temario-accordion {
    background: white;
    border-radius: var(--modern-radius);
    box-shadow: var(--modern-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--modern-border);
}

.temario-module {
    border-bottom: 1px solid var(--modern-border);
}

.temario-module:last-child {
    border-bottom: none;
}

.module-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--modern-transition);
    background: white;
    border-left: 4px solid transparent;
    user-select: none;
    position: relative;
}

.module-header:hover {
    background: var(--modern-bg-alt);
    border-left-color: var(--modern-primary);
}

.temario-module.active .module-header {
    background: var(--modern-primary);
    color: white;
    border-left-color: var(--modern-accent);
}

.temario-module.active .module-header h4,
.temario-module.active .module-header .module-meta {
    color: white !important;
}

.temario-module.active .module-header .module-meta span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.module-info {
    flex: 1;
}

.module-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--modern-text);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--modern-transition);
}

.module-info h4 i {
    color: var(--modern-primary);
    font-size: 1rem;
}

.temario-module.active .module-info h4 i {
    color: white;
}

.module-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--modern-text-light);
    flex-wrap: wrap;
}

.module-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.module-meta i {
    font-size: 0.8rem;
}

.module-toggle {
    color: var(--modern-text-light);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.temario-module.active .module-toggle {
    transform: rotate(180deg);
    color: white;
}

/* ACORDEÓN DEL TEMARIO - VERSIÓN COMPLETAMENTE FUNCIONAL */
.temario-accordion {
    background: white;
    border-radius: var(--modern-radius);
    box-shadow: var(--modern-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--modern-border);
}

.temario-module {
    border-bottom: 1px solid var(--modern-border);
    background: white;
    position: relative;
}

.temario-module:last-child {
    border-bottom: none;
}

/* HEADER DEL MÓDULO - CLICKEABLE */
.module-header {
    padding: 1.5rem;
    cursor: pointer !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: white;
    border-left: 4px solid transparent;
    user-select: none;
    position: relative;
    z-index: 1;
}

.module-header:hover {
    background: var(--modern-bg-alt) !important;
    border-left-color: var(--modern-primary);
}

.temario-module.active .module-header {
    background: var(--modern-primary) !important;
    color: white !important;
    border-left-color: var(--modern-accent);
}

.temario-module.active .module-header h4,
.temario-module.active .module-header .module-meta,
.temario-module.active .module-header .module-meta span {
    color: white !important;
}

.temario-module.active .module-header .module-info h4 i {
    color: white !important;
}

/* INFO DEL MÓDULO */
.module-info {
    flex: 1;
}

.module-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--modern-text);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.module-info h4 i {
    color: var(--modern-primary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.module-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--modern-text-light);
    flex-wrap: wrap;
    transition: color 0.3s ease;
}

.module-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.module-meta i {
    font-size: 0.8rem;
}

/* TOGGLE ARROW - ROTACIÓN FUNCIONAL */
.module-toggle {
    color: var(--modern-text-light);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.temario-module.active .module-toggle {
    transform: rotate(180deg) !important;
    color: white !important;
}

/* DESCRIPCIÓN DEL MÓDULO - OCULTA POR DEFECTO */
.module-description {
    padding: 1rem 1.5rem;
    color: var(--modern-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    background: var(--modern-bg-alt);
    border-top: 1px solid var(--modern-border);
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.temario-module.active .module-description {
    display: block !important;
    opacity: 1 !important;
    max-height: 300px !important;
}

/* LECCIONES DEL MÓDULO - OCULTAS POR DEFECTO */
.module-lessons {
    background: white;
    border-top: 1px solid var(--modern-border);
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.temario-module.active .module-lessons {
    display: block !important;
    opacity: 1 !important;
    max-height: 1500px !important;
}

/* ESTILOS PARA ELEMENTOS INTERNOS DE LECCIONES */
.lesson-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--modern-border);
    transition: background-color 0.2s ease;
    align-items: flex-start;
}

.lesson-item:first-child {
    border-top: none;
}

.lesson-item:hover {
    background: var(--modern-bg-alt);
}

.lesson-icon {
    color: var(--modern-primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.lesson-content {
    flex: 1;
}

.lesson-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--modern-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.lesson-content p {
    font-size: 0.875rem;
    color: var(--modern-text-light);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.lesson-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--modern-text-light);
}

.lesson-duration i {
    font-size: 0.75rem;
}

.lesson-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--modern-border);
    transition: var(--modern-transition);
    align-items: flex-start;
}

.lesson-item:hover {
    background: var(--modern-bg-alt);
}

.lesson-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--modern-bg-alt);
    border-radius: 50%;
    color: var(--modern-primary);
    margin-top: 2px;
}

.lesson-content {
    flex: 1;
}

.lesson-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--modern-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.lesson-content p {
    font-size: 0.85rem;
    color: var(--modern-text-light);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #95a5a6;
    flex-wrap: wrap;
}

.lesson-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lesson-duration i {
    color: var(--modern-primary);
}

/* Responsive del acordeón */
@media (max-width: 768px) {
    .module-header {
        padding: 1rem;
    }
    
    .module-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lesson-item {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lesson-icon {
        align-self: flex-start;
    }
}

/* Estilos adicionales para lesson-meta */
.lesson-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lesson-meta i {
    font-size: 0.75rem;
}

.lesson-free {
    color: var(--modern-success) !important;
    font-weight: 600;
}

.temario-summary {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 1.5rem;
}

.summary-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.stat-item i {
    color: #667eea;
    font-size: 1rem;
}

/* Responsive para temario */
@media (max-width: 768px) {
    .module-header {
        padding: 1rem;
    }
    
    .module-info h4 {
        font-size: 1rem;
    }
    
    .module-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .module-lessons {
        padding: 0 1rem 1rem 1rem;
    }
    
    .lesson-item {
        padding: 0.75rem;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .course-temario-modern h3 {
        font-size: 1.25rem;
    }
    
    .module-description,
    .module-lessons {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .lesson-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lesson-icon {
        align-self: flex-start;
    }
}

/* ========================================
   NUEVAS FUNCIONALIDADES AGREGADAS
======================================== */

/* SISTEMA DE URGENCIA MEJORADO */
.modern-urgency-super-float {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: urgencyFloat 3s ease-in-out infinite;
}

.urgency-modern-mega {
    position: relative;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 50%, #ff2f2f 100%);
    border: 3px solid #ffffff;
    border-radius: 25px;
    padding: 20px 30px;
    box-shadow: 0 10px 40px rgba(255, 71, 87, 0.6);
    overflow: hidden;
    min-width: 400px;
    text-align: center;
}

.urgency-pulse-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: urgencyPulse 2s ease-in-out infinite;
}

.urgency-content-mega {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.urgency-bolt-mega {
    font-size: 24px;
    color: #ffd700;
    animation: urgencyBolt 1s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.urgency-mega-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.urgency-main {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.urgency-detail {
    font-size: 14px;
    color: #ffeeee;
    font-weight: 600;
}

.urgency-timer-mega {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.timer-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 5px 8px;
    min-width: 45px;
}

.timer-number {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.timer-label {
    font-size: 10px;
    color: #ffeeee;
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes urgencyFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes urgencyBolt {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

/* BADGES DE SEGURIDAD EN HERO */
.security-badges-hero {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--modern-transition);
}

.security-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.security-badge i {
    font-size: 0.9rem;
    color: var(--modern-success);
}

/* BADGE GRATIS - USANDO COLORES DEL TENANT */
.modern-badge.free {
    background: linear-gradient(135deg, var(--modern-success), #1ea268);
    border-color: var(--modern-success);
    color: white;
    animation: freeGlow 2s ease-in-out infinite;
}

@keyframes freeGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(39, 174, 96, 0.3); }
    50% { box-shadow: 0 12px 40px rgba(39, 174, 96, 0.5); }
}

/* PRECIO GRATIS EN HERO - USANDO COLORES DEL TENANT */
.price-hero-free {
    font-size: 3rem;
    font-weight: 900;
    color: var(--modern-success);
    text-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.price-modern-free {
    text-align: center;
    padding: 1rem 0;
}

.free-text {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.free-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--modern-text-light);
    font-weight: 500;
}

/* VIDEO PLAY BUTTON EN HERO */
.hero-video-cta {
    margin: 2rem 0;
}

.video-play-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--modern-transition);
    backdrop-filter: blur(20px);
}

.video-play-hero:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.play-icon-bg {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff4757, #ff3838);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.play-icon-bg i {
    font-size: 20px;
    margin-left: 3px;
}

/* NAVEGACIÓN DE CONTENIDO */
.course-modern-nav {
    background: var(--modern-bg);
    border-bottom: 1px solid var(--modern-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: var(--modern-text-light);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: var(--modern-transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--modern-primary);
    border-bottom-color: var(--modern-primary);
}

.nav-link i {
    font-size: 1rem;
}

/* SECCIONES DE CONTENIDO */
.content-section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2rem;
    text-align: left;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--modern-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2 i {
    color: var(--modern-primary);
    font-size: 1.8rem;
}

/* HORARIOS MODERNOS */
.schedules-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.schedule-modern-card {
    background: var(--modern-bg);
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius);
    padding: 1.5rem;
    box-shadow: var(--modern-shadow);
    transition: var(--modern-transition);
    position: relative;
    overflow: hidden;
}

.schedule-modern-card.featured {
    border-color: var(--modern-primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.schedule-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--modern-shadow-lg);
}

.schedule-featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--modern-primary), var(--modern-primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-bottom-left-radius: var(--modern-radius);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-featured-badge i {
    margin-right: 0.3rem;
}

.schedule-modern-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.schedule-date {
    background: linear-gradient(135deg, var(--modern-primary), var(--modern-primary-dark));
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: var(--modern-radius);
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.schedule-day {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.2rem;
    color: var(--main-color);
}

.schedule-month {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
    color: var(--main-color);
}

.schedule-info {
    flex: 1;
}

.schedule-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--modern-text);
    margin: 0 0 1rem 0;
}

.schedule-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--modern-text-light);
}

.schedule-detail i {
    color: var(--modern-primary);
    width: 16px;
    text-align: center;
}

.schedule-availability {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    text-align: center;
}

.availability-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
}

/* TEMARIO MEJORADO */
.temario-stats-header {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--modern-bg-alt);
    border-radius: var(--modern-radius);
    border: 1px solid var(--modern-border);
}

.temario-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--modern-text);
}

.temario-stat i {
    color: var(--modern-primary);
    font-size: 1.1rem;
}

/* VIDEOS MEJORADOS */
.videos-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-modern-card {
    background: var(--modern-bg);
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius);
    overflow: hidden;
    box-shadow: var(--modern-shadow);
    transition: var(--modern-transition);
}

.video-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--modern-shadow-lg);
}

.video-modern-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.video-modern-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--modern-transition);
}

.video-modern-thumbnail:hover img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--modern-transition);
}

.video-modern-thumbnail:hover .video-play-overlay {
    background: rgba(0,0,0,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.video-modern-info {
    padding: 1rem;
}

.video-modern-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--modern-text);
}

.video-modern-info p {
    font-size: 0.9rem;
    color: var(--modern-text-light);
    margin: 0;
    line-height: 1.5;
}

/* INSTRUCTOR MEJORADO */
.instructor-modern {
    display: flex;
    gap: 2rem;
    background: var(--modern-bg-alt);
    padding: 2rem;
    border-radius: var(--modern-radius);
    border: 1px solid var(--modern-border);
}

.instructor-modern-avatar {
    flex-shrink: 0;
}

.instructor-avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--modern-primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.instructor-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--modern-primary), var(--modern-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 900;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.instructor-initials {
    font-size: 2.5rem;
    font-weight: 900;
}

.instructor-modern-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--modern-text);
    margin: 0 0 1rem 0;
}

.instructor-modern-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.instructor-badge {
    background: var(--modern-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.instructor-modern-bio {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--modern-text-light);
}

.instructor-modern-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.instructor-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--modern-text);
}

.instructor-stat i {
    color: var(--modern-primary);
}

/* UBICACIÓN MEJORADA */
.location-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--modern-bg-alt);
    padding: 2rem;
    border-radius: var(--modern-radius);
    border: 1px solid var(--modern-border);
}

.location-modern-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--modern-text);
    margin: 0 0 0.5rem 0;
}

.location-modern-info p {
    color: var(--modern-text-light);
    margin-bottom: 1.5rem;
}

.location-modern-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    border-radius: var(--modern-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--modern-transition);
}

.location-btn.waze {
    background: #318CE7;
    color: white;
}

.location-btn.maps {
    background: #4285f4;
    color: white;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--modern-shadow);
}

.location-modern-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: var(--modern-radius-sm);
}

/* RESEÑAS MEJORADAS */
.avatar-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--modern-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* CURSOS RELACIONADOS */
.related-courses-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-course-card {
    background: var(--modern-bg);
    border: 1px solid var(--modern-border);
    border-radius: var(--modern-radius);
    overflow: hidden;
    box-shadow: var(--modern-shadow);
    transition: var(--modern-transition);
}

.related-course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--modern-shadow-lg);
}

.related-course-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--modern-transition);
}

.related-course-card:hover .related-course-image img {
    transform: scale(1.05);
}

.related-course-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--modern-bg-alt), var(--modern-border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--modern-text-light);
    font-size: 3rem;
}

.related-course-content {
    padding: 1.5rem;
}

.related-course-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.related-course-content h4 a {
    text-decoration: none;
    color: var(--modern-text);
    transition: var(--modern-transition);
}

.related-course-content h4 a:hover {
    color: var(--modern-primary);
}

.related-course-content p {
    color: var(--modern-text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.related-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-price {
    font-weight: 700;
    color: var(--modern-primary);
    font-size: 1.1rem;
}

.related-level {
    background: var(--modern-bg-alt);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--modern-text-light);
}

/* UPSELLS */
.upsells-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.upsell-card {
    background: var(--modern-bg-alt);
    border: 2px solid var(--modern-primary);
    border-radius: var(--modern-radius);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--modern-shadow);
    transition: var(--modern-transition);
}

.upsell-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--modern-shadow-lg);
}

.upsell-badge {
    position: absolute;
    top: -1px;
    left: 1rem;
    background: var(--modern-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--modern-radius-sm) var(--modern-radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.upsell-content h4 {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--modern-text);
}

.upsell-content p {
    color: var(--modern-text-light);
    margin-bottom: 1rem;
}

.upsell-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.upsell-price-special {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--modern-primary);
}

.upsell-price-regular {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--modern-text-light);
}

.upsell-price-current {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--modern-primary);
}

.upsell-cta {
    width: 100%;
    padding: 1rem;
    background: var(--modern-primary);
    color: white;
    border: none;
    border-radius: var(--modern-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--modern-transition);
}

.upsell-cta:hover {
    background: var(--modern-primary-dark);
    transform: translateY(-1px);
}

/* MODAL DE VIDEO */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    height: 80%;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

.video-modal-close:hover {
    opacity: 0.7;
}

.video-modal-iframe-container {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: var(--modern-radius);
    overflow: hidden;
}

.video-modal-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    .modern-urgency-super-float {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 1rem;
    }
    
    .urgency-modern-mega {
        min-width: auto;
        margin: 0 1rem;
    }
    
    .urgency-content-mega {
        flex-direction: column;
        gap: 10px;
    }
    
    .urgency-timer-mega {
        gap: 5px;
    }
    
    .timer-part {
        min-width: 35px;
        padding: 3px 5px;
    }
    
    .security-badges-hero {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .schedules-modern-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-modern-card {
        flex-direction: column;
        text-align: center;
    }
    
    .instructor-modern {
        flex-direction: column;
        text-align: center;
    }
    
    .location-modern {
        grid-template-columns: 1fr;
    }
    
    .related-courses-modern {
        grid-template-columns: 1fr;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 1.2rem 1rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-subtitle {
        flex-direction: column;
        gap: 1rem;
    }
    
    .price-hero-current {
        font-size: 2.5rem;
    }
    
    .urgency-main {
        font-size: 16px;
    }
    
    .urgency-detail {
        font-size: 12px;
    }
}
