/* --- ESTILOS MODERNOS Y PROFESIONALES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    margin: 0;
    padding: 0;
    display: flex;
}

/* MENÚ LATERAL MODERNIZADO */
.menu {
    width: 260px;
    background: #0f172a; /* Fondo azul oscuro elegante */
    color: #f8fafc;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    box-sizing: border-box;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.menu h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.menu p {
    color: #38bdf8 !important; /* Azul brillante moderno */
    font-size: 13px !important;
    text-align: center;
    margin: 0 0 2px 0;
}

.menu span {
    color: #94a3b8 !important;
    font-size: 11px !important;
    text-align: center;
    margin-bottom: 25px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu a:hover {
    background-color: #1e293b;
    color: #ffffff;
    transform: translateX(4px);
}

/* CONTENEDOR PRINCIPAL */
.contenido {
    margin-left: 260px;
    padding: 35px;
    flex: 1;
    box-sizing: border-box;
    max-width: calc(100vw - 260px);
}

h1 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    letter-spacing: -0.5px;
}

p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* TARJETAS Y CONTENEDORES MODERNOS */
.formulario-caja, .seccion-tarjeta, .kpi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formulario-caja:hover, .seccion-tarjeta:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* TABLAS MODERNAS */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8fafc;
}

/* FORMULARIOS Y BOTONES */
input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    margin: 6px 0 16px 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: #f8fafc;
    transition: border-color 0.2s, background-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #38bdf8;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

button {
    background-color: #0ea5e9; /* Azul moderno vibrante */
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
}

button:hover {
    background-color: #0284c7;
}

button:active {
    transform: scale(0.99);
}