/* styles.css */
:root {
    --primary: #00D9FF;
    --primary-dark: #00B8D9;
    --accent: #00FF88;
    --bg-dark: #0A0E27;
    --bg-card: #1A1F3A;
    --bg-card-hover: #252B4A;
    --text-primary: #FFFFFF;
    --text-secondary: #B4B9D3;
    --border: #2A3154;
    --success: #00FF88;
    --warning: #FFB800;
    --error: #FF4757;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar styles moved to topbar.css for better organization */

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

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

.cta-button {
    padding: 1rem 2.5rem;
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    min-height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 15%;
    right: 8%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 25%;
    left: 8%;
    animation-delay: 2s;
}

.floating-card.card-4 {
    bottom: 20%;
    right: 5%;
    animation-delay: 1.5s;
}

.card-icon {
    font-size: 2rem;
}

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

.card-text .accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Progress Section */
.progress-section {
    padding: 2rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.progress-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.progress-info p {
    color: var(--text-secondary);
}

.progress-percent {
    color: var(--accent);
    font-weight: 700;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: var(--bg-dark);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 50px;
    transition: width 0.5s ease;
}

/* Modules Section */
.modules-section {
    padding: 100px 0;
}

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Module Card */
.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.module-card:hover {
    border-color: var(--primary);
}

.module-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    cursor: pointer;
}

.module-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    min-width: 80px;
}

.module-info {
    flex: 1;
}

.module-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.module-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.module-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.meta-item .icon {
    font-size: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.locked {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
}

.status-badge.completed {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
}

.status-badge.in-progress {
    background: rgba(255, 184, 0, 0.1);
    color: var(--warning);
}

.expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
}

.expand-btn:hover {
    color: var(--primary);
}

.expand-btn.active {
    transform: rotate(180deg);
}

.chevron {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Module Content */
.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.module-content.active {
    max-height: 1000px;
    padding: 1rem 2rem 2rem;
}

/* Lesson Item */
.lesson-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.lesson-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateX(5px);
}

.lesson-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    stroke-width: 2;
}

.lesson-info {
    flex: 1;
}

.lesson-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.lesson-duration {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lesson-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lesson-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.lesson-btn.locked {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.lesson-btn.locked:hover {
    transform: none;
    box-shadow: none;
}

.lesson-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Resources Section */
.resources-section {
    padding: 100px 0;
    background: var(--bg-card);
}

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

.resource-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.resource-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.resource-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.resource-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.resource-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

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

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */

/* Tablets y pantallas medianas */
@media (max-width: 1200px) {
    .floating-card {
        padding: 1.25rem;
    }
    
    .floating-card.card-1 {
        top: 15%;
        left: 3%;
    }
    
    .floating-card.card-2 {
        top: 10%;
        right: 5%;
    }
    
    .floating-card.card-3 {
        bottom: 30%;
        left: 5%;
    }
    
    .floating-card.card-4 {
        bottom: 25%;
        right: 3%;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .card-icon {
        font-size: 1.75rem;
    }
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

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

    /* Navbar responsive styles moved to topbar.css */

    .progress-container {
        flex-direction: column;
        text-align: center;
    }

    .module-header {
        flex-wrap: wrap;
    }

    .module-number {
        min-width: auto;
    }

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

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .module-info h3 {
        font-size: 1.25rem;
    }

    .lesson-item {
        flex-wrap: wrap;
    }

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

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

.module-card {
    animation: fadeInUp 0.6s ease backwards;
}

.module-card:nth-child(1) { animation-delay: 0.1s; }
.module-card:nth-child(2) { animation-delay: 0.2s; }
.module-card:nth-child(3) { animation-delay: 0.3s; }
.module-card:nth-child(4) { animation-delay: 0.4s; }
.module-card:nth-child(5) { animation-delay: 0.5s; }
.module-card:nth-child(6) { animation-delay: 0.6s; }
.module-card:nth-child(7) { animation-delay: 0.7s; }
.module-card:nth-child(8) { animation-delay: 0.8s; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}