/* ===== COMPONENTES ESPECÍFICOS ===== */

/* ===== EFECTOS GLASSMORPHISM ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-button {
    background: rgba(68, 229, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(68, 229, 255, 0.3);
    color: var(--course-primary);
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(68, 229, 255, 0.2);
    border-color: var(--course-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(68, 229, 255, 0.3);
}

/* ===== TARJETAS DE CARACTERÍSTICAS ===== */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(68, 229, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

/* ===== TESTIMONIOS ===== */
.testimonial-card {
    position: relative;
    transition: all 0.5s ease;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(68, 229, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: -1;
}

.testimonial-card:hover::after {
    width: 120%;
    height: 120%;
}

/* ===== NAVEGACIÓN MEJORADA ===== */
.hero-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.hero-nav.scrolled {
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ===== PARTÍCULAS MEJORADAS ===== */
.particle {
    border-radius: 50%;
    pointer-events: none;
}

.particle:nth-child(odd) {
    background: var(--course-primary);
    animation-duration: 12s;
}

.particle:nth-child(even) {
    background: var(--course-secondary);
    animation-duration: 18s;
    animation-delay: -5s;
}

.particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    background: rgba(68, 229, 255, 0.5);
    animation-duration: 25s;
}

/* ===== INDICADORES DE SCROLL ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--course-primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

/* ===== ELEMENTOS DE PROGRESO ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== TOOLTIPS ===== */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===== BADGES Y ETIQUETAS ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.badge-secondary {
    background: rgba(68, 229, 255, 0.1);
    color: var(--course-primary);
    border: 1px solid rgba(68, 229, 255, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--course-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ===== ELEMENTOS INTERACTIVOS ===== */
.interactive-element {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.interactive-element:active {
    transform: scale(0.98);
}

/* ===== ELEMENTOS DE CARGA ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(68, 229, 255, 0.3);
    border-top: 3px solid var(--course-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ELEMENTOS DE RETROALIMENTACIÓN ===== */
.feedback-positive {
    color: var(--course-success);
    animation: bounce 0.5s ease;
}

.feedback-negative {
    color: var(--course-error);
    animation: shake 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== ELEMENTOS DE NAVEGACIÓN ===== */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--course-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--course-primary);
    background: rgba(68, 229, 255, 0.1);
}

/* ===== ELEMENTOS DECORATIVOS ===== */
.decoration-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(circle, var(--course-primary) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 10s ease-in-out infinite;
}

.decoration-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        linear-gradient(45deg, var(--course-primary) 1px, transparent 1px),
        linear-gradient(-45deg, var(--course-primary) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ===== ELEMENTOS DE ACCESIBILIDAD ===== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.focus-visible {
    outline: 2px solid var(--course-primary);
    outline-offset: 2px;
}

/* ===== ELEMENTOS MODERNOS ===== */
.modern-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(68, 229, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover::before {
    opacity: 1;
}

/* ===== ELEMENTOS DE GRID ===== */
.grid-container {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}