@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Paleta inspirada en neurociencia */
    --neural-blue: #2563eb;
    --synapse-purple: #7c3aed;
    --cognitive-teal: #0891b2;
    --memory-green: #059669;
    --emotion-rose: #e11d48;
    --wisdom-amber: #d97706;
    
    /* Gradientes cerebrales */
    --brain-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --synapse-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --neural-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --cognitive-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    
    /* Tonos base */
    --bg-primary: #fafbfc;
    --bg-secondary: #f1f5f9;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.2);
    
    /* Efectos */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.15);
    --shadow-neural: 0 15px 35px rgba(124, 58, 237, 0.1);
    --glow-blue: 0 0 20px rgba(37, 99, 235, 0.3);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fondo dinámico con partículas neuronales */
.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.neuron {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neural-blue);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.neuron::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(transparent, var(--neural-blue), transparent);
    top: -10px;
    left: 1px;
    animation: pulse 2s ease-in-out infinite;
}

.synapse {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--synapse-purple);
    border-radius: 50%;
    box-shadow: var(--glow-purple);
    animation: spark 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(10px) rotate(90deg); }
    50% { transform: translateY(-10px) translateX(-5px) rotate(180deg); }
    75% { transform: translateY(-30px) translateX(-10px) rotate(270deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.5); }
}

@keyframes spark {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); box-shadow: var(--glow-purple); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header con efecto glassmorphism */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--brain-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.logo a::after {
    content: '🧠';
    margin-left: 0.5rem;
    animation: brain-pulse 2s ease-in-out infinite;
}

@keyframes brain-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

/* NUEVA ANIMACIÓN DEL MENÚ - MUCHO MÁS SIMPLE Y EFECTIVA */
.nav-menu a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.8rem 1.6rem;
    border-radius: 25px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    background: var(--brain-gradient);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(124, 58, 237, 0.4),
        0 0 0 1px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background: var(--neural-blue);
}

/* Hero section CORREGIDO */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--brain-gradient);
    overflow: hidden;
    margin: 0 -2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:0" /></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad1)"/><circle cx="800" cy="300" r="150" fill="url(%23grad1)"/><circle cx="500" cy="700" r="200" fill="url(%23grad1)"/></svg>');
    opacity: 0.3;
    animation: neural-flow 20s linear infinite;
}

@keyframes neural-flow {
    0% { transform: translateX(-10%) rotate(0deg); }
    100% { transform: translateX(10%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    color: white;
}

/* HIGHLIGHT WORD CORREGIDO */
.highlight-word {
    background: var(--synapse-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow-text 2s ease-in-out infinite alternate;
    position: relative;
}

@keyframes glow-text {
    from { 
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
        transform: scale(1);
    }
    to { 
        filter: drop-shadow(0 0 20px rgba(255,255,255,1));
        transform: scale(1.02);
    }
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    font-weight: 400;
    color: white;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--surface);
    color: var(--neural-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cognitive-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(67, 233, 123, 0.3);
}

.cta-button:hover::before {
    left: 0;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--neural-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--synapse-purple);
    text-decoration: underline;
}

/* Course Header */
.course-header {
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.course-badge {
    display: inline-block;
    background: var(--brain-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    box-shadow: var(--shadow-neural);
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.course-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.course-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neural);
    color: var(--neural-blue);
}

/* Courses section CORREGIDO */
.courses {
    padding: 4rem 0;
}

.courses h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--brain-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.courses h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--synapse-gradient);
    border-radius: 2px;
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { width: 100px; opacity: 1; }
    50% { width: 150px; opacity: 0.7; }
}

.courses-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* GRID 2x2 CORREGIDO Y FUNCIONAL */
.courses-grid-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.course-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--neural-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
    background: var(--surface-hover);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--brain-gradient);
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    animation: course-rotate 10s linear infinite;
}

@keyframes course-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.course-card:hover .course-number {
    animation-play-state: paused;
    transform: scale(1.1);
    box-shadow: var(--glow-blue);
}

.course-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.course-stats-inline {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-inline {
    background: rgba(37, 99, 235, 0.1);
    color: var(--neural-blue);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.subjects-preview {
    list-style: none;
    margin-top: auto;
}

.subjects-preview li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.subjects-preview li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 0.4rem;
    font-size: 0.8rem;
    animation: spark-pulse 1.5s ease-in-out infinite;
}

@keyframes spark-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.subjects-preview li:hover {
    color: var(--neural-blue);
    transform: translateX(5px);
}

.subjects-preview li.more {
    color: var(--synapse-purple);
    font-weight: 600;
}

/* Semester Sections */
.semester-section {
    margin: 4rem 0;
}

.semester-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, var(--neural-blue), var(--synapse-purple)) no-repeat bottom;
    background-size: 200px 3px;
    font-weight: 600;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.subject-card {
    background: var(--surface);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
    border-color: var(--neural-blue);
}

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

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(37, 99, 235, 0.1);
    color: var(--neural-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subject-card:hover .subject-code {
    background: var(--neural-blue);
    color: white;
    transform: scale(1.05);
}

.subject-credits {
    background: var(--memory-green);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.subject-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
}

.subject-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-basic {
    background: rgba(16, 185, 129, 0.15);
    color: var(--memory-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-required {
    background: rgba(37, 99, 235, 0.15);
    color: var(--neural-blue);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-default {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.semester-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* Resources section */
.resources-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.section-header-simple {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-simple h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header-simple p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.resource-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
    background: var(--surface-hover);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.resource-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Elementos flotantes decorativos */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.brain-wave {
    position: absolute;
    width: 200px;
    height: 2px;
    background: var(--cognitive-gradient);
    border-radius: 1px;
    opacity: 0.3;
    animation: wave-float 8s ease-in-out infinite;
}

.brain-wave:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.brain-wave:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; }
.brain-wave:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }

@keyframes wave-float {
    0%, 100% { 
        transform: translateY(0) scaleX(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-30px) scaleX(1.2); 
        opacity: 0.6; 
    }
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--synapse-purple);
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float 12s linear infinite;
}

@keyframes particle-float {
    0% { 
        transform: translateY(100vh) translateX(0) scale(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
        transform: scale(1); 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-100px) translateX(100px) scale(0); 
        opacity: 0; 
    }
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brain-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive design CORREGIDO */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-soft);
        border-radius: 0 0 16px 16px;
    }

    .nav-menu.active {
        display: flex;
    }

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

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

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

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

    .hero {
        margin: 0 -1rem;
        min-height: 60vh;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* MOBILE: 1 COLUMNA */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .course-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .subject-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-card,
    .subject-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .course-stats-inline {
        flex-direction: column;
        gap: 0.5rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .course-card,
    .subject-card,
    .resource-card {
        padding: 1rem;
    }

    .course-header h1 {
        font-size: 2rem;
    }

    .courses h2 {
        font-size: 2rem;
    }
}

/* Tablet landscape - mantener 2 columnas */
@media (min-width: 769px) and (max-width: 1024px) {
    .courses-grid {
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .course-card {
        min-height: 360px;
    }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.course-card,
.subject-card,
.resource-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Estados de hover mejorados */
.course-card:hover .course-number {
    transform: scale(1.1);
}

/* Cursors personalizados */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%232563eb" opacity="0.3"/><circle cx="10" cy="10" r="3" fill="%232563eb"/></svg>'), auto;
}

a, button, .course-card, .subject-card, .resource-card {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%237c3aed" opacity="0.5"/><circle cx="10" cy="10" r="3" fill="%237c3aed"/></svg>'), pointer;
}


/*Estilos para asignaturas */

/* Estilos para el contenido de asignaturas */
.subject-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.subject-overview {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--neural-blue);
    box-shadow: var(--shadow-soft);
}

.subject-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.subject-meta span {
    background: rgba(37, 99, 235, 0.1);
    color: var(--neural-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.content-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.content-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.objectives-list {
    list-style: none;
    padding: 0;
}

.objectives-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.objectives-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--memory-green);
    font-weight: bold;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.topic-item {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.topic-item h4 {
    color: var(--synapse-purple);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.topic-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lab-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lab-item {
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.lab-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.lab-item h4 {
    color: var(--memory-green);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.eval-item {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eval-type {
    font-weight: 500;
    color: var(--text-primary);
}

.eval-weight {
    background: var(--neural-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

.bibliography {
    list-style: none;
    padding: 0;
}

.bibliography li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.bibliography li:last-child {
    border-bottom: none;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.resource-item {
    background: rgba(6, 145, 178, 0.05);
    border: 1px solid rgba(6, 145, 178, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 145, 178, 0.1);
}

.resource-item h4 {
    color: var(--cognitive-teal);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.competencies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.competency-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(217, 119, 6, 0.05);
    border: 1px solid rgba(217, 119, 6, 0.1);
    border-radius: 8px;
}

.competency-code {
    background: var(--wisdom-amber);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.8rem;
    min-width: 40px;
    text-align: center;
}

.competency-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive para contenido de asignaturas */
@media (max-width: 768px) {
    .subject-content {
        padding: 1rem;
    }
    
    .topics-grid,
    .lab-activities,
    .evaluation-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .subject-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .competency-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}