:root {
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --primary-dark: #1a252f;
    --accent-color: #e74c3c;
    --accent-light: #ec7063;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --danger-color: #e74c3c;
    --sidebar-width: 150px;
    --header-height: 46px;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --sidebar-bg: #2c3e50;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    --border-color: #dee2e6;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    /* Botones de acciones */
    --btn-ver: #6c757d;
    --btn-ver-light: #868e96;
    --btn-editar: #3498db;
    --btn-editar-light: #5dade2;
    --btn-eliminar: #e74c3c;
    --btn-eliminar-light: #ec7063;
    --btn-aceptar: #27ae60;
    --btn-aceptar-light: #2ecc71;
    --btn-copiar: #8b5cf6;
    --btn-copiar-light: #a78bfa;
    --btn-imprimir: #17a2b8;
    --btn-imprimir-light: #3dbdd1;
    /* Botones de formularios */
    --btn-form-guardar: #10b981;
    --btn-form-guardar-light: #34d399;
    --btn-form-cancelar: #6b7280;
    --btn-form-cancelar-light: #9ca3af;
    --btn-form-nuevo: #0d2e7a;
    --btn-form-nuevo-light: #1a4bbd;
    --btn-form-font-size-guardar: 12px;
    --btn-form-font-weight-guardar: 600;
    --btn-form-font-size-cancelar: 12px;
    --btn-form-font-weight-cancelar: 600;
    --btn-form-font-size-nuevo: 12px;
    --btn-form-font-weight-nuevo: 700;
    --btn-form-volver: #475569;
    --btn-form-volver-light: #64748b;
    --btn-form-font-size-volver: 12px;
    --btn-form-font-weight-volver: 600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: var(--transition);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: var(--text-white);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 7px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
}

.app-title {
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Animación para modal de nómina */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   ESTILOS RESPONSIVE GLOBALES
   ============================================ */

/* Tablet (max 992px) */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 130px;
    }

    .top-header {
        padding: 0 15px;
    }

    .header-left {
        gap: 12px;
    }

    .header-right {
        gap: 12px;
    }

    .app-title {
        font-size: 0.7rem;
    }
}

/* Móvil (max 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 50px;
    }

    .top-header {
        padding: 0 10px;
    }

    .header-left {
        gap: 8px;
    }

    .header-right {
        gap: 8px;
    }

    .app-title {
        font-size: 0.65rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-toggle {
        padding: 8px 10px;
        font-size: 1rem;
    }
}

/* Móvil pequeño (max 480px) */
@media (max-width: 480px) {
    .app-title {
        font-size: 0.6rem;
        max-width: 120px;
    }

    .top-header {
        padding: 0 8px;
    }
}

/* Mejoras para touch */
@media (pointer: coarse) {
    .menu-toggle,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}