* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 55px;
    height: 55px;
    object-fit: contain; /* Evita recortes y distorsión */
    image-rendering: auto;
}

/* Texto del logo */
.logo-text h1 {
    color: #2d3748;
    font-size: 1.7rem;
    margin: 0;
    line-height: 1;
}

.logo-text p {
    color: #718096;
    font-size: 0.85rem;
    margin: 0;
    margin-top: 2px;
}

/* NAV */
nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

nav a:hover {
    color: #667eea;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav {
        gap: 1rem;
    }
}


/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h2 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-section p {
    color: #718096;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Module Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.module-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.module-header {
    height: 8px;
}

.module-content {
    padding: 2rem;
}

.module-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 30px;
}

.module-content h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.module-content p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.module-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.module-btn:hover {
    opacity: 0.9;
}

/* Colors for modules */
.blue { background: #4299e1; }
.green { background: #48bb78; }
.purple { background: #9f7aea; }
.orange { background: #ed8936; }
.pink { background: #ed64a6; }
.indigo { background: #667eea; }
.teal { background: #38b2ac; }

.blue-light { background: rgba(66, 153, 225, 0.1); color: #4299e1; }
.green-light { background: rgba(72, 187, 120, 0.1); color: #48bb78; }
.purple-light { background: rgba(159, 122, 234, 0.1); color: #9f7aea; }
.orange-light { background: rgba(237, 137, 54, 0.1); color: #ed8936; }
.pink-light { background: rgba(237, 100, 166, 0.1); color: #ed64a6; }
.indigo-light { background: rgba(102, 126, 234, 0.1); color: #667eea; }
.teal-light { background: rgba(56, 178, 172, 0.1); color: #38b2ac; }

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h4 {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-info p {
    color: #2d3748;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section p, .footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }
}
