/* =============================================== */
/* ESTILOS GENERALES */
/* =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 50%, #0a0e27 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* =============================================== */
/* NAVEGADOR PRINCIPAL STICKY */
/* =============================================== */

.navbar-main {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideDown 0.8s ease-out;
}

.navbar-main.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo-link:hover {
    transform: scale(1.05);
}

.nav-logo {
    width: 160px;
    height: 60px;
    object-fit: contain; /* Mantiene las proporciones de tu imagen */
    filter: drop-shadow(0 0 15px rgba(100, 200, 255, 0.6));
    animation: pulse-glow 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.nav-logo-link:hover .nav-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(100, 200, 255, 0.9));
}

/* Si tu logo es más ancho que alto, ajusta el width */
.nav-logo.wide-logo {
    width: auto;
    max-width: 150px;
    height: 45px;
}

/* Efecto de brillo adicional para la imagen */
@keyframes logo-shine {
    0% {
        filter: drop-shadow(0 0 15px rgba(100, 200, 255, 0.6)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(100, 200, 255, 1)) brightness(1.2);
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(100, 200, 255, 0.6)) brightness(1);
    }
}

.nav-logo {
    animation: logo-shine 3s ease-in-out infinite;
}

.nav-brand-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
    display: none;
}

/* Responsive para el logo */
@media (max-width: 768px) {
    .nav-logo {
        width: 40px;
        height: 40px;
    }
    
    /* Si es un logo horizontal */
    .nav-logo.wide-logo {
        max-width: 120px;
        height: 35px;
    }
}

@media (min-width: 1024px) {
    .nav-brand-text {
        display: block;
    }
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.3), transparent);
    transition: all 0.5s;
    transform: translate(-50%, -50%);
}

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

.nav-link:hover {
    color: #64c8ff;
    background: rgba(100, 200, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(100, 200, 255, 0.3);
}

/* Mobile Menu Toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 2px;
    background: #64c8ff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
        gap: 0.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-brand-text {
        display: none;
    }
}

/* Si quieres ocultar el logo grande del centro en index.html */
.logo-container.hide-on-nav {
    display: none;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(100, 200, 255, 0.8);
    border-radius: 50%;
    animation: float 20s infinite linear;
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Grid Background */
.grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(100, 200, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 200, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* =============================================== */
/* ESTILOS ESPECÍFICOS PARA PÁGINA PRINCIPAL */
/* =============================================== */

.header {
    padding: 2rem 0;
    padding-top: 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.logo {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(100, 200, 255, 0.8));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 30px rgba(100, 200, 255, 0.8));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(100, 200, 255, 1));
    }
}

h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(100, 200, 255, 0.8);
    letter-spacing: 2px;
    animation: text-glow 3s ease-in-out infinite;
}

@keyframes text-glow {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(100, 200, 255, 0.8);
    }

    50% {
        text-shadow: 0 0 50px rgba(100, 200, 255, 1), 0 0 80px rgba(100, 200, 255, 0.5);
    }
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 3rem;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-out;
    animation-fill-mode: both;
    cursor: pointer;
}

.category-card:nth-child(1) {
    animation-delay: 0.1s;
}

.category-card:nth-child(2) {
    animation-delay: 0.2s;
}

.category-card:nth-child(3) {
    animation-delay: 0.3s;
}

.category-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(100, 200, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.category-card:hover::before {
    animation: shine 0.5s ease;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translate(-100%, -100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(100%, 100%);
        opacity: 0;
    }
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(100, 200, 255, 0.3);
    border-color: rgba(100, 200, 255, 0.5);
}

.category-header {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.category-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.course-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #64c8ff, transparent);
    animation: scan 3s infinite;
    animation-delay: var(--delay);
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.course-item:hover {
    background: rgba(100, 200, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(100, 200, 255, 0.3);
}

.course-icon-wrapper {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 200, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.course-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-item:hover .course-icon-wrapper::after {
    opacity: 1;
}

.course-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.5));
    z-index: 1;
    position: relative;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.course-name {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

.course-badge-2 {
    display: inline-block;
    background: linear-gradient(135deg, #20e16d, #0e60ec);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Contact Section */
.contact-section {
    margin-top: 4rem;
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.5), transparent);
    transition: all 0.5s;
    transform: translate(-50%, -50%);
}

.contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 200, 255, 0.4);
}

.contact-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 10px currentColor);
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(100, 200, 255, 0.3);
    border-top-color: #64c8ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Holographic Effect */
.hologram {
    position: relative;
    background: linear-gradient(45deg,
            rgba(255, 0, 150, 0.1),
            rgba(0, 255, 255, 0.1),
            rgba(255, 255, 0, 0.1),
            rgba(255, 0, 150, 0.1));
    background-size: 400% 400%;
    animation: holographic 10s ease infinite;
}

@keyframes holographic {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* =============================================== */
/* ESTILOS ESPECÍFICOS PARA PÁGINA DE CURSOS */
/* =============================================== */

/* Navigation Bar */
.navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.3);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.1), rgba(100, 200, 255, 0.05));
    border: 1px solid rgba(100, 200, 255, 0.3);
    color: #64c8ff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.3), transparent);
    transition: all 0.5s;
    transform: translate(-50%, -50%);
}

.back-button:hover::before {
    width: 200px;
    height: 200px;
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(100, 200, 255, 0.4);
    border-color: #64c8ff;
}

.nav-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.8);
    letter-spacing: 1px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    /* Reset button styles */
    font-family: inherit;
    font-size: inherit;
}

.filter-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.3), transparent);
    transition: left 0.5s;
}

.filter-tab:hover::after {
    left: 100%;
}

.filter-tab.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(100, 200, 255, 0.4);
}

.filter-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 200, 255, 0.3);
}

/* Course Sections */
.course-section {
    margin-bottom: 4rem;
    animation: slideUp 0.8s ease-out;
}

.section-title {
    color: #64c8ff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid #64c8ff;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.6);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #64c8ff, transparent);
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Course Card */
.course-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #64c8ff, transparent);
    animation: scan-card 4s infinite;
    animation-delay: var(--card-delay, 0s);
}

@keyframes scan-card {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(100, 200, 255, 0.3);
    border-color: rgba(100, 200, 255, 0.5);
}

/* Course Image Container */
.course-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a237e, #0f172a);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

/* Placeholder for image */
.image-placeholder {
    color: rgba(100, 200, 255, 0.5);
    font-size: 3rem;
    text-align: center;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Course Content (para las tarjetas de curso) */
.course-card .course-content {
    padding: 1.5rem;
}

.course-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Course Tags */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-tutorizado {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.tag-autoinstruccion {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.tag-especialidad {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.tag-mandatorio {
    background: linear-gradient(135deg, #d5113f, #780216);
    color: white;
}

.tag-deseable {
    background: linear-gradient(135deg, #70d9e3, #035b73);
    color: white;
}

.tag-transversal {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Course Info */
.course-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(100, 200, 255, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: #64c8ff;
}

.info-value {
    font-weight: 600;
    color: #64c8ff;
}

/* Course Actions */
.course-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-primary {
    flex: 1;
    padding: 0.75rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    padding: 0.75rem 1rem;
    background: rgba(100, 200, 255, 0.1);
    color: #64c8ff;
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(100, 200, 255, 0.2);
    border-color: #64c8ff;
    transform: translateY(-2px);
}

a.btn-primary,
a.btn-secondary {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    line-height: .7;
    font-family: inherit;
}

a.btn-primary:hover,
a.btn-secondary:hover {
    text-decoration: none;
}

/* Responsive para página de cursos */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .nav-title {
        display: none;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .course-info {
        grid-template-columns: 1fr;
    }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg,
            rgba(100, 200, 255, 0.1) 25%,
            rgba(100, 200, 255, 0.2) 50%,
            rgba(100, 200, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Animación de ripple para botones */
@keyframes ripple {
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}