/* CONFIGURACIÓN GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* 1. CABECERA (HEADER) */
.main-header {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left .logo {
    height: 40px;
    max-width: 150px;
    object-fit: contain;
}

.header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f8f9fa;
    outline: none;
}

.search-form input:focus {
    border-color: #0056b3;
    background-color: #fff;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #777;
}

.header-right {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    color: #0056b3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover {
    background-color: #f0f4f8;
}

/* 2. BARRA DE ACCESOS DIRECTOS */
.shortcut-bar {
    background-color: #ffffff;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #e8ecef;
}

.shortcut-bar a {
    text-decoration: none;
    color: #0056b3;
    font-size: 13px;
    font-weight: 500;
}

.shortcut-bar a:hover {
    text-decoration: underline;
}

/* CONTENEDOR PRINCIPAL */
.main-container {
    display: flex;
    min-height: calc(100vh - 110px);
}

/* 3. MENÚ LATERAL (SIDEBAR) */
.sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding-top: 10px;
}

.menu-list {
    list-style: none;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Reacción al pasar el cursor (Hover) */
.menu-item a:hover {
    background-color: #f0f4f8;
    color: #0056b3;
    padding-left: 25px; /* Efecto leve de desplazamiento */
}

.menu-item.active > a {
    color: #0056b3;
    background-color: #e6effa;
    border-left: 4px solid #0056b3;
}

.menu-item a span {
    margin-right: 10px;
}

.menu-item .arrow {
    margin-left: auto;
    margin-right: 0;
    transition: transform 0.3s;
}

/* SUBCATEGORÍAS (Ocultas por defecto) */
.submenu {
    list-style: none;
    background-color: #f8f9fa;
    display: none;
    padding-left: 20px;
}

.submenu a {
    padding: 10px 20px;
    font-size: 13px;
    color: #666;
}

/* Cuando se abre la subcategoría */
.menu-item.open .submenu {
    display: block;
}

.menu-item.open .arrow {
    transform: rotate(90deg);
}

/* 4. CUERPO CENTRAL (CONTENIDO) */
.content-area {
    flex: 1;
    padding: 30px;
}

.welcome-section {
    margin-bottom: 25px;
}

.welcome-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111;
}

.welcome-section p {
    color: #666;
    margin-top: 5px;
}

/* GRID DE CUADROS INFORMATIVOS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-image-placeholder img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-weight: bold; /* Título en negrita como solicitaste */
    font-size: 16px;
    color: #222;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}