* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

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

/* Cabecera */
.main-header {
    background-color: #1e293b;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid #0ea5e9;
}

.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
}

/* Sección Intro */
.intro-section {
    text-align: center;
    margin: 40px 0 30px 0;
}

.intro-section h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.intro-section p {
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* Grilla de Módulos */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Tarjeta de Módulo */
.module-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #0ea5e9;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 20px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h3 {
    font-size: 1.3rem;
    color: #1e293b;
}

/* Badges de Estado */
.status-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background-color: #f1f5f9;
    color: #64748b;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-body p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #475569;
}

/* Contenedor de Carátula / Imagen del Módulo */
.card-image-container {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.module-card:hover .card-image-container img {
    transform: scale(1.05);
}

.card-footer {
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: #0ea5e9;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0284c7;
}

.btn-disabled {
    display: inline-block;
    background-color: #cbd5e1;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: not-allowed;
}

/* Footer General */
.footer-bottom {
    margin-top: 50px;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid #334155;
    border-bottom: none;
}
/* Estilo para la cabecera con logo */
.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    text-align: left; /* Alineamos el texto a la izquierda junto al logo */
}

.logo-img {
    height: 70px; /* Puedes ajustar la altura según prefieras */
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.header-text h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}