/* ==============================================
   StudyCode Pro - Unified CSS
   ============================================== */

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

/* CSS Variables */
:root {
    /* Colors */
    --primary-bg: #0f172a;
    --secondary-bg: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.5);
    --border-color: rgba(51, 65, 85, 0.5);
    --accent-blue: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-green: #22c55e;
    --accent-orange: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #e2e8f0;
    
    /* Frontend track colors */
    --frontend-primary: #22c55e;
    --frontend-light: #4ade80;
    
    /* Backend track colors */
    --backend-primary: #f59e0b;
    --backend-light: #fbbf24;
    
    /* Full-stack track colors */
    --fullstack-primary: #8b5cf6;
    --fullstack-light: #a78bfa;
    
    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 20px;
    --section-padding: 80px 0;
    
    /* Border radius */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    
    /* Shadows */
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5rem;
}

em {
    font-style: italic;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Links */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--accent-purple);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background var(--transition-normal);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Active state for nav */
.nav-links a.active {
    color: var(--accent-blue);
}

/* Buttons */
.cta-button {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-small);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    color: white;
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-medium);
}

.cta-button.secondary {
    background: #4b5563;
    color: white;
}

.cta-button.secondary:hover {
    background: #374151;
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 2rem;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-large);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

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

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat {
    text-align: center;
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: var(--section-padding);
}

/* Hamburguesa y menú móvil */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle-icon {
    display: block;
}
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        background: rgba(15,23,42,0.98);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 1.5rem 0;
        z-index: 999;
    }
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
    .cta-button {
        width: 100%;
        margin-top: 1rem;
        font-size: 1.1rem;
    }
    .header {
        position: relative;
    }
}

/* Menú responsive para móvil */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        background: rgba(15,23,42,0.98);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 1.5rem 0;
        z-index: 999;
    }
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
    .cta-button {
        width: 100%;
        margin-top: 1rem;
        font-size: 1.1rem;
    }
    .header {
        position: relative;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Sections */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-primary), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Breadcrumbs */
#breadcrumb-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    padding-top: 100px;
}

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

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    background: rgba(51, 65, 85, 0.5);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

.feature-list li.disabled::before {
    content: "✗";
    color: #6b7280;
}

.feature-list li.disabled {
    color: #6b7280;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-large);
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.hidden {
    display: none;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 25px;
    height: 25px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInUp-delay-1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fadeInUp-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 1rem 15px;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.w-full { width: 100%; }
.h-full { height: 100%; }