/* ===== RESET GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #444;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== MENÚ LATERAL ===== */
#menuLateral {
    width: 240px;
    background-color: #1a1d29;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 100;
    padding-top: 20px;
}

#menuLateral.oculto {
    width: 70px;
}

#menuLateral .logo {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #165DFF;
    margin-bottom: 30px;
}

#menuLateral ul {
    list-style: none;
}

#menuLateral .enlace-menu {
    display: flex;
    align-items: center;
    color: #b0b3c0;
    text-decoration: none;
    padding: 14px 20px;
    transition: all 0.2s;
    font-size: 15px;
}

#menuLateral .enlace-menu:hover {
    background-color: #252a3b;
    color: white;
    border-left: 4px solid #165DFF;
}

#menuLateral .enlace-menu ion-icon {
    font-size: 20px;
    margin-right: 12px;
}

/* ===== SUBMENÚS ===== */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #141721;
}

.submenu-abierto .submenu {
    max-height: 300px;
}

.submenu a {
    padding-left: 50px !important;
    font-size: 14px !important;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.contenido-principal {
    flex: 1;
    margin-left: 240px;
    transition: all 0.3s ease;
    padding: 20px;
}

.contenido-principal.menu-oculto {
    margin-left: 70px;
}

/* ===== BARRA SUPERIOR ===== */
.barra-superior {
    background-color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.izquierda-barra {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-menu {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #444;
}

.info-usuario {
    display: flex;
    align-items: center;
    gap: 10px;
}

.boton-cerrar {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e53e3e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.boton-cerrar:hover {
    color: #c53030;
}

/* ===== TARJETAS DE MÓDULOS ===== */
.titulo-pagina {
    font-size: 28px;
    margin-bottom: 25px;
    color: #2d3748;
}

.grid-modulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tarjeta-modulo {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 5px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tarjeta-modulo:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.tarjeta-modulo ion-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.tarjeta-modulo h3 {
    font-size: 17px;
    margin-bottom: 5px;
}

.tarjeta-modulo p {
    font-size: 13px;
    color: #718096;
}

/* COLORES POR MÓDULO */
.tarjeta-modulo.productos {
    border-color: #165DFF;
    color: #165DFF;
}
.tarjeta-modulo.compras {
    border-color: #00B42A;
    color: #00B42A;
}
.tarjeta-modulo.personas {
    border-color: #F7BA1E;
    color: #F7BA1E;
}

/* ===== TARJETA RESUMEN ===== */
.tarjeta {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.tarjeta h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.tarjeta p {
    color: #718096;
}

/* ✅ ESTILO BOTONES DE ACCIÓN (IGUAL QUE TU IMAGEN) */
.btn-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #F2994A; /* Naranja */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    text-decoration: none;
    margin: 3px;
    transition: background 0.3s;
}

.btn-accion:hover {
    background-color: #EB7920; /* Naranja oscuro al pasar mouse */
}

/* Botón Eliminar ROJO */
.btn-eliminar {
    background-color: #EB5757;
}
.btn-eliminar:hover {
    background-color: #D32F2F;
}