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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    color: #3498db;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.hero p {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 500;
}

.auth {
    max-width: 450px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: none;
}

.auth form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth input, .auth button {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.auth button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.auth button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: bold;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-credentials {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

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

.course-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.course-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.blog-posts {
    margin-top: 2rem;
}

.blog-post {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.blog-post h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blog-post small {
    color: #666;
}

.profile-info {
    margin-top: 2rem;
}

.profile-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    max-width: 500px;
}

.profile-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.profile-card p {
    margin-bottom: 0.5rem;
}

.profile-card button {
    margin-top: 1rem;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.profile-card button:hover {
    background: #c0392b;
}

.course-card.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.course-meta span {
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.course-lessons {
    margin: 0.5rem 0;
    font-weight: bold;
    color: #2c3e50;
}

.course-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background 0.2s;
}

.course-btn:hover {
    background: #2980b9;
}

.course-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 2rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.course-details h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.course-description {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: #555;
}

.lesson-item {
    background: #f8f9fa;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.lesson-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.lesson-item p {
    color: #666;
    margin: 0;
}

.enroll-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 2rem;
    transition: background 0.2s;
}

.enroll-btn:hover {
    background: #229954;
}

/* New sections for homepage */
.stats-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 15px;
}

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

.stat-card {
    background: rgba(255,255,255,0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

.features-section {
    margin: 3rem 0;
    text-align: center;
}

.features-section h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

.feature-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
}

/* Enhanced Profile Styles */
.profile-dashboard {
    margin-top: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.profile-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.stats-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
}

.stat-item {
    background: rgba(255,255,255,0.9);
    padding: 1rem;
    border-radius: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.progress-section {
    margin: 3rem 0;
}

.progress-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.course-progress-item {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 2rem;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.course-info p {
    color: #666;
    margin: 0;
}

.progress-bar {
    background: rgba(255,255,255,0.8);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #2c3e50;
    font-weight: bold;
    text-align: center;
}

.achievements-section {
    margin: 3rem 0;
}

.achievements-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.achievement-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

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

.achievement-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}

/* Enhanced Blog Styles */
.blog-categories {
    margin: 2rem 0;
    text-align: center;
}

.blog-categories h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-tag {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #2c3e50;
    border: 2px solid transparent;
}

.category-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.blog-post {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.blog-post.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 3px solid #ffd700;
}

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

.post-category {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category.desarrollo {
    background: #27ae60;
    color: white;
}

.post-category.liderazgo {
    background: #e74c3c;
    color: white;
}

.post-category.emprendimiento {
    background: #f39c12;
    color: white;
}

.post-category.tecnologia {
    background: #9b59b6;
    color: white;
}

.post-date {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-post.featured .post-date {
    color: #ffd700;
}

.blog-post h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.blog-post.featured h3 {
    color: white;
}

.blog-post p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.blog-post.featured p {
    color: #f0f0f0;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.read-time {
    color: #666;
    font-size: 0.9rem;
}

.blog-post.featured .read-time {
    color: #ddd;
}

.read-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.blog-post.featured .read-more-btn {
    background: #ffd700;
    color: #2c3e50;
}

.blog-post.featured .read-more-btn:hover {
    background: #ffed4e;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .course-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .courses {
        grid-template-columns: 1fr;
    }
}